ember-cli-code-coverage icon indicating copy to clipboard operation
ember-cli-code-coverage copied to clipboard

TS files are not included in the coverage with `--path` option

Open max-konin opened this issue 4 years ago • 2 comments

Env:

"ember-cli-code-coverage": "1.0.3",
"ember-cli-typescript": "^4.2.1",

COVERAGE=true ember t works fine and generates accurate coverage reports. But I want to configure my CI workflow with pre-built dist and run tests with --path option.

COVERAGE=true ember b --environment=test
COVERAGE=true ember t --path ./dist

That generates reports w/o .ts files

Repro repo https://github.com/max-konin/coverage-with-path-and-ts-repro. I built a simple component https://github.com/max-konin/coverage-with-path-and-ts-repro/tree/master/app/components Test coverage report with --path option - https://github.com/max-konin/coverage-with-path-and-ts-repro/actions/runs/1692096928

max-konin avatar Jan 13 '22 10:01 max-konin

Can you test with the 2.0.0-beta.4 release? There is some additional setup overhead, but this workflow should work a bit better (because we no longer rely on knowing all the files from the build in order to handle coverage).

rwjblue avatar Jan 18 '22 17:01 rwjblue

Hey @rwjblue

2.0.0-beta.4 works fine.

Thank you!

max-konin avatar Jan 19 '22 08:01 max-konin