Skip to content

Commit 99b834a

Browse files
astronomersivaRobbieTheWagner
authored andcommitted
Add note about using the path flag (#205)
1 parent 59e6158 commit 99b834a

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

README.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,18 @@ and then:
3232

3333
When running with `parallel` set to true, the final reports can be merged by using `ember coverage-merge`. The final merged output will be stored in the `coverageFolder`.
3434

35+
If you intend to use `ember test` with the `--path` flag, you should generate the build
36+
with `coverageEnvVar` set as true. This is because the code is instrumented for
37+
coverage during the build.
38+
39+
For example:
40+
41+
`COVERAGE=true ember build --environment=test --output-path=dist`
42+
43+
followed by
44+
45+
`COVERAGE=true ember test --path=dist`
46+
3547
## TypeScript integration
3648

3749
Steps:

0 commit comments

Comments
 (0)