Skip to content

Commit

Permalink
Merge pull request #50 from avishayp/pytest_as_module
Browse files Browse the repository at this point in the history
Support running a single test
  • Loading branch information
DentonGentry authored Feb 27, 2020
2 parents 0ce3a84 + e026cf3 commit 88b7292
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,9 @@ target takes over an hour to finish.
```
(solutions) $ make test
(solutions) $ make alltests
# to run a specific test, call tox directly:
(solutions) $ tox -- tools/tests/test_vma_xls_extract.py::test_read_xls
```

The main user interface is a Jupyter Notebook:
Expand Down
6 changes: 3 additions & 3 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -10,16 +10,16 @@ deps =
-rrequirements.txt

commands =
pytest -m "not slow" {posargs}
python -m pytest -m "not slow" {posargs}

[testenv:all]
commands =
pytest --cov=. --cov-report term-missing {posargs}
python -m pytest --cov=. --cov-report term-missing {posargs}

# runs on github workflow
[testenv:ci]
commands =
pytest --cov=. --cov-report term --cov-report=xml
python -m pytest --cov=. --cov-report term --cov-report=xml

[pytest]
addopts = -v -W ignore::DeprecationWarning --strict-markers
Expand Down

0 comments on commit 88b7292

Please sign in to comment.