Skip to content

Commit

Permalink
updated pytest markers section in README.dev.md
Browse files Browse the repository at this point in the history
  • Loading branch information
jspaaks committed Sep 5, 2023
1 parent 6e64140 commit 5fea65d
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions README.dev.md
Original file line number Diff line number Diff line change
Expand Up @@ -73,13 +73,27 @@ Tests pertaining to a specific exporter have been marked accordingly with one of
6. `schemaorg`
7. `zenodo`

Additionally, there are markers for CLI tests and for library tests:

1. `cli`
2. `lib`

You can instruct `pytest` to run only the tests for one or some of these marked sets. As an example, if you want to run
only the tests related to exporting as Endnote, you should call `pytest` with the `-m` flag as follows:

```shell
pytest -m endnote
```

Markers can also be combined with `or` and `and` and `not`, e.g.

```shell
pytest -m 'endnote and lib'
pytest -m 'cli and not zenodo'
pytest -m 'schemaorg or codemeta'
# etc
```

## Linting

Running the linters requires that the development tools have been installed:
Expand Down

0 comments on commit 5fea65d

Please sign in to comment.