Skip to content

Commit

Permalink
Fixed the documentation about how to run the tests
Browse files Browse the repository at this point in the history
  • Loading branch information
micheles committed Jan 21, 2025
1 parent d7dc242 commit 0fc9915
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions doc/contributing/testing.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,14 @@ The OpenQuake code is automatically tested by Continuous integration systems (Gi

## Manual testing

The full suite of tests for the OpenQuake Engine can be run using `pytest` from [**source code**](../getting-started/installation-instructions/development.rst):
The tests for the OpenQuake Engine can be run using `pytest` from [**source code**](../getting-started/installation-instructions/development.rst).
First of all you need to create the engine database:

```bash
$ oq engine --upgrade-db
$ pytest -v openquake
```

Python packages can also be specified to run only a subset of tests. Some examples are:
Then you can run the tests as follows:

```bash
# Hazardlib
Expand All @@ -22,10 +22,6 @@ $ pytest -vs openquake/hazardlib
# Calculators
$ oq dbserver start
$ pytest -vs openquake/calculators

# Engine server
$ oq dbserver start
$ pytest -vs openquake/server
```

See the `pytest` [documentation](https://docs.pytest.org/en/latest/contents.html) for further information and command options.
Expand Down

0 comments on commit 0fc9915

Please sign in to comment.