blob: ef8176abfe5b2f440fe64834bca419361c0f9817 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
|
# 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 .
```
|