Am working on a project and trying to make a script stop if the code Coverage don't meet the predetermined thresholds.
Just for testing reasons and to show the issue i set the threshold for statements to 100% in my karma.config.js
I would now expect the script that I run to fail/stop when it comes to the karma code coverage, but it just shows me an error that the thresholds are not met and then proceed with the next part of my script.
After doing some research I can see that the exit code of the code coverage is 0 no matter if it mets the predetermined threshold or not. I guess this should be 1 if the threshold is not met so it would fail, but it isnt.
Is there a workaround, configuration or any kind of solution for this problem?
Im working with "karma": "6.3.20" and karma-coverage": "2.2.0
Hey there im looking out for some support,
Am working on a project and trying to make a script stop if the code Coverage don't meet the predetermined thresholds.
Just for testing reasons and to show the issue i set the threshold for statements to 100% in my karma.config.js
I would now expect the script that I run to fail/stop when it comes to the karma code coverage, but it just shows me an error that the thresholds are not met and then proceed with the next part of my script.
After doing some research I can see that the exit code of the code coverage is 0 no matter if it mets the predetermined threshold or not. I guess this should be 1 if the threshold is not met so it would fail, but it isnt.
Is there a workaround, configuration or any kind of solution for this problem?
Im working with "karma": "6.3.20" and karma-coverage": "2.2.0
Any Help is appreciated