Repository navigation
Fix #145: add posargs in tox.ini (single test cases) - #146
Conversation
Without the posargs argument tox has to run the *complete* test suite. With this patch, you can pass a test file and a test function. That allows tox to only run this specific test function. For example: $ tox -e py36 test_semver.py::test_should_bump_major
|
Most of builds was broken. CI triggered again. |
|
Builds still failing |
The old spelling py.test will be deprecated in the future.
|
I believe it's caused by invoking tests by |
|
Hmn, this is strange. Seems there is a difference between the run with I've try a different approach now. |
|
@ppkt Ha, we almost posted at the same time with the same idea. 😆 I've replaced the call of |
This make consecutive calls a bit faster
|
I've also added a second line with caching pip dependencies. I think this is useful and described in https://docs.travis-ci.com/user/caching |
|
Oh, just another stupid comment before I forget: Please adjust the commit message when you squash the commits. I think it deviated a bit from the original idea. I would suggest to use something like this (adjust it to your needs): |
|
Thanks again @tomschr for your contribution |
This PR fixes #145
Without the posargs argument tox has to run the complete test suite. With this patch, you can
pass a test file and a test function. That allows tox to only run this specific test function. For example:
Keep in mind, it doesn't change the default behavior. It's just an additional feature if someone wants to run a single test function alone.
This may help to speed up the development a little bit. 😉