AutoGPT/tests.py

22 lines
438 B
Python
Raw Normal View History

import unittest
2023-04-17 20:41:42 +00:00
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("./tests")
# Run the tests
unittest.TextTestRunner().run(suite)
# Stop coverage collection
cov.stop()
cov.save()
# Report the coverage
cov.report(show_missing=True)