Skip to content

Commit

Permalink
Update test documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
jadinm committed Jul 19, 2019
1 parent 6023613 commit 809f96d
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions ipmininet/tests/README.md
Original file line number Diff line number Diff line change
@@ -1,20 +1,20 @@
# Ipmininet tests
The [pytest](https://docs.pytest.org/en/latest/index.html) framework is used
for the testsuite and are [integrated within
for the test suite and are [integrated within
setuptools](https://docs.pytest.org/en/latest/goodpractices.html#integrating-with-setuptools-python-setup-py-test-pytest-runner).
Currently the suite has end-to-end tests that check if the daemons work as
expected. Therefore, the tests require an operating environment, i.e. daemons
have to be installed and must be in PATH.

## Run testsuite
To run the whole testsuite go the top level directory and run:
## Run test suite
To run the whole test suite go the top level directory and run:

```
sudo python setup.py test
sudo pytest
```

You can also run a single test by passing options to pytest:

```
python setup.py test --addopts "ipmininet/tests/test_sshd.py --fulltrace"
sudo pytest ipmininet/tests/test_sshd.py --fulltrace
```

0 comments on commit 809f96d

Please sign in to comment.