Skip to content

Commit

Permalink
Remove referenes to nose from README and docker-compose
Browse files Browse the repository at this point in the history
  • Loading branch information
aucampia committed Oct 24, 2021
1 parent 3b72c76 commit dacd663
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 25 deletions.
11 changes: 6 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -165,16 +165,16 @@ Multiple other projects are contained within the RDFlib "family", see <https://g

### Running the tests on the host

Run the test suite with `nose`.
Run the test suite with `pytest`.
```shell
nosetests
pytest
```

### Running test coverage on the host with coverage report

Run the test suite and generate a HTML coverage report with `nose` and `coverage`.
Run the test suite and generate a HTML coverage report with `pytest` and `pytest-cov`.
```shell
nosetests --with-timer --timer-top-n 42 --with-coverage --cover-tests --cover-package=rdflib
pytest --cov
```

There is also a script, `run_tests.py` to run everything.
Expand All @@ -199,7 +199,8 @@ make coverage

Once tests have produced HTML output of the coverage report, view it by running:
```shell
python -m http.server --directory=cover
pytest --cov --cov-report term --cov-report html
python -m http.server --directory=htmlcov
```

## Contributing
Expand Down
7 changes: 5 additions & 2 deletions docker-compose.tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,20 +5,23 @@ services:
dockerfile: test/Dockerfile
volumes:
- .:/rdflib
command: ["/rdflib/run_tests.sh"]
working_dir: /rdflib
command: ["pytest"]

test-runner-coverage:
build:
context: .
dockerfile: test/Dockerfile
volumes:
- .:/rdflib
command: ["/rdflib/run_tests_with_coverage_report.sh"]
working_dir: /rdflib
command: ["pytest", "--cov"]

check-types:
build:
context: .
dockerfile: test/Dockerfile
volumes:
- .:/rdflib
working_dir: /rdflib
command: ["python", "-m", "mypy", "--show-error-context", "--show-error-codes" ,"/rdflib/rdflib"]
9 changes: 0 additions & 9 deletions run_tests.sh

This file was deleted.

9 changes: 0 additions & 9 deletions run_tests_with_coverage_report.sh

This file was deleted.

0 comments on commit dacd663

Please sign in to comment.