Skip to content

Commit

Permalink
Add nose2 as optional development dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
xxyzz committed Apr 27, 2023
1 parent a78d844 commit 883db45
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 deletions.
11 changes: 6 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -324,13 +324,14 @@ This software requires Python 3.

### Running tests

This package includes tests written using the ``unittest`` framework.
They can be run using, for example, ``nose2``, which can be installed
using ``pip3 install nose2``.
This package includes tests written using the `unittest` framework.
They can be run using, for example, `nose2`, which can be installed
using `python -m pip install -e ".[dev]"`.

To run the tests, use the following command in the top-level directory:

To run the tests, just use the following command in the top-level directory:
```
nose2
make test
```

(Unfortunately the test suite for ``wiktextract`` is not yet very
Expand Down
3 changes: 3 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,9 @@ dependencies = [
"wikitextprocessor @ git+https://github.com/tatuylonen/wikitextprocessor.git",
]

[project.optional-dependencies]
dev = ["nose2[coverage_plugin]"]

[project.scripts]
wiktwords = "wiktextract.wiktwords:main"

Expand Down

0 comments on commit 883db45

Please sign in to comment.