I am trying to generate a coverage report for my Angular tests using Karma.
I implemented a pipeline that simply runs ng test --watch=false --code-coverage=true
Every now and then, using the same VM, the same agent, etc., I get different results. Sometimes everything is fine:
Other times, no coverage folder/files are generated and I get this:
Does anyone have any idea what is happening and why sometimes it works and other times I get “Executed x of 0”?
Random seed is disabled
I tried changing the karma.conf.js
file, I used different templates that I found online, besides that I have no idea what is happening.
Rafael Lima is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
5