Files
AutoGPT/docs/content/classic/testing.md
Kaitlyn Barnard b9551db516 Updating docs nav structure to make Platform first class citizen v2 (#8448)
* docs updates

* text changes

* resolving merge conflicts

---------

Co-authored-by: Kaitlyn Barnard <kaitlynbarnard@Kaitlyns-MacBook-Pro-2.local>
Co-authored-by: Toran Bruce Richards <toran.richards@gmail.com>
2024-10-28 16:21:16 +00:00

798 B

Running tests

To run all tests, use the following command:

pytest

If pytest is not found:

python -m pytest

Running specific test suites

  • To run without integration tests:
pytest --without-integration
  • To run without slow integration tests:
pytest --without-slow-integration
  • To run tests and see coverage:
pytest --cov=autogpt --without-integration --without-slow-integration

Running the linter

This project uses flake8 for linting. We currently use the following rules: E303,W293,W291,W292,E305,E231,E302. See the flake8 rules for more information.

To run the linter:

flake8 .

Or:

python -m flake8 .