# Running Tests

To run all tests, use the following command:

```shell
pytest
```

If `pytest` is not found:

```shell
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
```

## Running the linter

This project uses [flake8](https://flake8.pycqa.org/en/latest/) for linting. We currently use the following rules: `E303,W293,W291,W292,E305,E231,E302`. See the [flake8 rules](https://www.flake8rules.com/) for more information.

To run the linter:

```shell
flake8 .
```

Or:

```shell
python -m flake8 .
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://agpt.co/docs/classic/help-us-improve-autogpt/testing.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
