-
Notifications
You must be signed in to change notification settings - Fork 361
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
Support for Branch Coverage #196
Support for Branch Coverage #196
Conversation
PR Reviewer Guide 🔍(Review updated until commit 74a2e44)Here are some key observations to aid the review process:
|
PR Code Suggestions ✨Latest suggestions up to 74a2e44
Previous suggestionsSuggestions up to commit 74a2e44
|
@EmbeddedDevops1 Thanks again for working on this. I got it to run locally and I tested it: cover-agent increased line coverage to 100% and stopped there. Is there a new argument I should pass, like I'm going to try to make a small PR, to add some info to the README, for other devs. I'll ping you in it UPDATE: The README PR was reviewed and merged |
Persistent review updated to latest commit 74a2e44 |
@draialexis Currently there isn't. The previous implementation made it difficult to update and add new data points to the LLM without the potential of introducing a regression. Now that cover_agent is being refactored, it should be easier for cover_agent to ingest new data and we can include a |
Sweet! Thanks for the update. Refactoring is healthy, I congratulate yall. I re-read my previous comment and realized some of it was unclear -- rephrasing now in case that's useful: When I ran this branch of Cover Agent on a source file that already had around 70% line coverage, and around 50% branch coverage, Cover Agent maxed out line coverage and stopped early, leaving branch coverage well below the desired number. |
Heads up. I rebased and moved to a new PR: #228 |
PR Type
enhancement, tests
Description
Changes walkthrough 📝
CoverAgent.py
Add branch coverage logging and reporting
cover_agent/CoverAgent.py
CoverageProcessor.py
Extend coverage parsing to include branch coverage
cover_agent/CoverageProcessor.py
UnitTestGenerator.py
Track and report branch coverage in tests
cover_agent/UnitTestGenerator.py
build_and_test_with_coverage.sh
Enable branch coverage in C CLI tests
templated_tests/c_cli/build_and_test_with_coverage.sh
build_and_test_with_coverage.sh
Enable branch coverage in C++ CLI tests
templated_tests/cpp_cli/build_and_test_with_coverage.sh
test_CoverageProcessor.py
Add tests for branch coverage parsing
tests/test_CoverageProcessor.py
test_UnitTestGenerator.py
Validate branch coverage in unit tests
tests/test_UnitTestGenerator.py