-
-
Notifications
You must be signed in to change notification settings - Fork 421
Feature/update scala coverage metrics: Add validation checks for coverage minimums. #6011
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Feature/update scala coverage metrics: Add validation checks for coverage minimums. #6011
Conversation
… no coverage thresholds are set. ci: add test for validateCoverageMinimums failure with no minimums Co-authored-by: aider (ollama_chat/deepseek-r1:32b) <[email protected]>
…inimum isn't defined then don't succeed.
Co-authored-by: aider (ollama_chat/deepseek-r1:32b) <[email protected]>
|
I'm not sure how to improve the test case to actually run coverage on code in the test. So I'm not sure how to test this thoroughly. |
You might want to look at / extend the example under Run it with |
|
@lefou In the example where would I be able to run this new plugin functionality? Looks like the packaged functionality has something special setup that it s not clear whats going on there. Also, how would I force this to execute the tests before it as well? |
|
@monksy I'm not sure I understand what you're asking here. I try to explain nevertheless.
Please add a description of the added functionality to the PR description (first comment), otherwise it's reverse engineering and guess work. Assuming you want to exercise that the build fails if a minimal test coverage is not met, you might need to add that case to the example project, e.g. by adding a sub-module and then running the check task for that sub-module.
The example tests run against a local build which is all handled by Mill. You control everything via the
I don't know what you mean. |
Done.
That's what I was trying to do. I know how to update the linting example. However, I'm not sure how you would execute that particular example with a specific task (validateCoverageMinimums) under the new build. That is what I was trying to ask in the previous question. It is not clear how and what commands are executed for that example.
How is the configured and setup to review the documentation and execute those commands?
I'm asking, how would i make the |
…ics' into feature/UpdateScalaCoverage-Metrics
…ics' into feature/UpdateScalaCoverage-Metrics
This PR adds the ability for testing coverage minimums for your project, and gives you the ability to break the build when the test coverage falls below that.
It is reproducing the behavior granted by https://github.com/scoverage/sbt-scoverage guarenting coverage.