Files
Auto-GPT/docs/testing.md
Reinier van der Leer 76df14b831 Fix docs (#3336)
* Fix docs

* Add short section about testing to contribution guide

* Add back note for voice configuration

* Remove LICENSE symlink from docs/

* Fix site_url in mkdocs.yml
2023-04-26 19:14:14 +01:00

835 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:

      :::shell
      pytest --without-integration
    
  • To run without slow integration tests:

      :::shell
      pytest --without-slow-integration
    
  • To run tests and see coverage:

      :::shell
      pytest --cov=autogpt --without-integration --without-slow-integration
    

Runing 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 .