You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm using karma and karma-coverage in a CI context, failing the CI job when a test fails or coverage is too low. I get this information from the exit code returned by karma.
However, I noticed that karma doesn't return an error for low coverage IF the text-summary reporter is placed before the html reporter.
Is this expected? I didn't find any documentation indicating that the order of the reporters array was important. I've fixed my own use-case by just changing my karma.conf.js to have
I'm using karma and karma-coverage in a CI context, failing the CI job when a test fails or coverage is too low. I get this information from the exit code returned by karma.
However, I noticed that karma doesn't return an error for low coverage IF the
text-summary
reporter is placed before thehtml
reporter.I've made a small repo showcasing this: https://github.com/mcdenhoed/karma-test
Is this expected? I didn't find any documentation indicating that the order of the reporters array was important. I've fixed my own use-case by just changing my
karma.conf.js
to haveinstead of
This doesn't seem to me like intended behavior, but if it is, a note in the docs about it would be nice.
The text was updated successfully, but these errors were encountered: