Commit 882c612
test_runner: move coverage collection to root.postRun()
This commit moves code coverage collection from the test
harness exit handler to the postRun() function of the root
test.
This is necessary preparatory work for supporting
code coverage with --test. The reason is that --test is
implemented on top of run(), and that function calls the root
test's postRun() function, which outputs the test summary. This
happens before the harness exit handler.
PR-URL: #47651
Reviewed-By: Moshe Atlow <moshe@atlow.co.il>
Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>1 parent 6535ab9 commit 882c612Copy full SHA for 882c612
File tree
Expand file treeCollapse file tree
2 files changed
+6
-4
lines changedOpen diff view settings
Filter options
- lib/internal/test_runner
Expand file treeCollapse file tree
2 files changed
+6
-4
lines changedOpen diff view settings
Collapse file
lib/internal/test_runner/harness.js
Copy file name to clipboardExpand all lines: lib/internal/test_runner/harness.js+2-2Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
1 | 1 | |
2 | 2 | |
3 | 3 | |
| 4 | + |
4 | 5 | |
5 | 6 | |
6 | 7 | |
| ||
138 | 139 | |
139 | 140 | |
140 | 141 | |
141 | | - |
142 | 142 | |
143 | 143 | |
144 | 144 | |
| ||
165 | 165 | |
166 | 166 | |
167 | 167 | |
168 | | - |
| 168 | + |
169 | 169 | |
170 | 170 | |
171 | 171 | |
|
Collapse file
lib/internal/test_runner/test.js
Copy file name to clipboardExpand all lines: lib/internal/test_runner/test.js+4-2Lines changed: 4 additions & 2 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
644 | 644 | |
645 | 645 | |
646 | 646 | |
647 | | - |
648 | | - |
| 647 | + |
| 648 | + |
| 649 | + |
| 650 | + |
649 | 651 | |
650 | 652 | |
651 | 653 | |
|
0 commit comments