Stencil version:
@stencil/[email protected]
I'm submitting a:
[ ] bug report
[x] feature request
[ ] support request
Current behavior:
stencil test --spec --e2e --coverageExpected behavior:
Steps to reproduce:
npm init stencilyarn run test --coverage and you'll see a coverage report generated..spec.ts and re run the same command.I think there might be a misunderstanding on my part, but the tests are running and the coverage is working for spec files. But the e2e tests running the actual, fully compiled app through puppeteer, rather than importing individual modules.
Morning!
The tests all run as expected and coverage is collected from spec files as expected. How can a developer get integration test coverage confidence though? The amount of testing that can be done at a unit level for components won't give the same level of confidence as the testing that can be done at a Component Test level (fully rendered).
Since the addition of Puppeteer I converted my former TestWindow tests to Puppeteer tests and kept my unit tests the same and our overall coverage dropped by a drastic amount due to this inability to collect an lcov that can be aggregated with the lcov generated from our (spec) unit tests.
I just filed https://github.com/ionic-team/stencil/issues/1219 which seems to be the same problem as what you have reported here @Bmahecha123
My issue was promptly closed after opening it even though I feel it's a valid issue/feature request.
This is a valid concern, and something that you can do with WCT already (although that's not running Puppeteer, but Selenium)
I'll try to come up with some workaround and post them here: https://github.com/mandric/testing-web-components Please let me know if you have any suggestions, thanks!
Most helpful comment
My issue was promptly closed after opening it even though I feel it's a valid issue/feature request.