forked from Significant-Gravitas/AutoGPT
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adjust test_prompt_generator and add test report generation
- Loading branch information
1 parent
5dfdb2e
commit 0c1ff5d
Showing
2 changed files
with
50 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,20 @@ | ||
import unittest | ||
import coverage | ||
|
||
if __name__ == "__main__": | ||
# Start coverage collection | ||
cov = coverage.Coverage() | ||
cov.start() | ||
|
||
# Load all tests from the 'autogpt/tests' package | ||
suite = unittest.defaultTestLoader.discover("autogpt/tests") | ||
suite = unittest.defaultTestLoader.discover("./tests") | ||
|
||
# Run the tests | ||
unittest.TextTestRunner().run(suite) | ||
|
||
# Stop coverage collection | ||
cov.stop() | ||
cov.save() | ||
|
||
# Report the coverage | ||
cov.report(show_missing=True) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters