Files
Auto-GPT/docs/testing.md
Luke 7cd407b7b4 Use modern material theme for docs (#5035)
* Use modern material theme for docs

* Update mkdocs.yml

Added search plugin

Co-authored-by: James Collins <collijk@uw.edu>

* Updating mkdocs material theme config per recommendations to enable all markdown options

* Updated highlight extension settings
and codeblocks throughout the docs to align with mkdocs-material recommendations.

codehilite is deprecated in favor of the highlight extension:
https://squidfunk.github.io/mkdocs-material/setup/extensions/python-markdown-extensions/#highlight

---------

Co-authored-by: lc0rp <2609411+lc0rp@users.noreply.github.com>
Co-authored-by: James Collins <collijk@uw.edu>
Co-authored-by: Nicholas Tindle <nick@ntindle.com>
2023-08-01 10:17:33 -07: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 .