-
Notifications
You must be signed in to change notification settings - Fork 50
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
5 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
``` |