forked from splintered-reality/py_trees_ros
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[tests] readme instructions and configured in setup.py (splintered-re…
- Loading branch information
Showing
2 changed files
with
8 additions
and
14 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
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,21 +1,15 @@ | ||
# Tests | ||
|
||
Make sure you source the virutal environment in all cases to run | ||
tests in this way (if you are using a colcon environment, the | ||
same commands will eventually hold once ros2's rosdep becomes | ||
functional). | ||
Make sure you source the environment to run tests. | ||
|
||
## Executing Tests | ||
|
||
Always run tests from the root directory, since that is where | ||
it will pick up the nosetests configuration in `setup.cfg`. | ||
|
||
``` | ||
# All Tests via SetupTools (indirectly) | ||
$ python3 setup.py nosetests | ||
# All Tests via Nosetest (directly) | ||
$ nosetests ./tests | ||
# A single test | ||
$ nosetests tests/test_oneshot.py | ||
# run all tests will full stdout | ||
$ python3 -m unittest discover | ||
# run a single test | ||
$ cd tests && python3 ./test_exchange.py | ||
# step back and run from setup.py (what colcon does) | ||
$ python3 setup.py test | ||
``` | ||
|