Skip to content

Commit

Permalink
fix: Running get_coverage() and rebuilding prompt. (#232)
Browse files Browse the repository at this point in the history
* Running get_coverage() and rebuilding prompt.

* Incrementing version.
  • Loading branch information
EmbeddedDevops1 authored Nov 22, 2024
1 parent 35e0c50 commit f768030
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion cover_agent/CoverAgent.py
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,8 @@ def run(self):
# Check if the desired coverage has been reached
if self.test_validator.current_coverage < (self.test_validator.desired_coverage / 100):
# Run the coverage tool again if the desired coverage hasn't been reached
self.test_validator.run_coverage()
failed_test_runs, language, test_framework, coverage_report = self.test_validator.get_coverage()
self.test_gen.build_prompt(failed_test_runs, language, test_framework, coverage_report)

# Log the final coverage
if self.test_validator.current_coverage >= (self.test_validator.desired_coverage / 100):
Expand Down
2 changes: 1 addition & 1 deletion cover_agent/version.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.2.6
0.2.7

0 comments on commit f768030

Please sign in to comment.