-
Notifications
You must be signed in to change notification settings - Fork 40
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[tests] shift from unittest to pytest
- Loading branch information
Showing
6 changed files
with
204 additions
and
238 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 |
---|---|---|
|
@@ -4,6 +4,7 @@ Changelog | |
|
||
Forthcoming | ||
----------- | ||
* [tests] moved from unittest to pytest | ||
* ... | ||
|
||
1.2.1 (2019-10-08) | ||
|
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,2 +1,5 @@ | ||
[pep8] | ||
max-line-length=299 | ||
|
||
[aliases] | ||
test=pytest |
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,15 +1,12 @@ | ||
# Tests | ||
|
||
Make sure you source the environment to run tests. | ||
|
||
## Executing Tests | ||
# Executing Tests | ||
|
||
```bash | ||
# run all tests will full stdout | ||
$ python3 -m unittest discover | ||
# run all tests in the current directory | ||
$ pytest-3 | ||
# run all tests with full stdout (-s / --capture=no) | ||
$ pytest-3 -s | ||
# run a single test | ||
$ cd tests && python3 ./test_action_client.py | ||
# step back and run from setup.py (what colcon does) | ||
$ pytest-3 -s test_alakazam.py | ||
# run using setuptools | ||
$ python3 setup.py test | ||
``` | ||
|
Oops, something went wrong.