Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update tox #677

Merged
merged 4 commits into from
Aug 5, 2017
Merged

Update tox #677

merged 4 commits into from
Aug 5, 2017

Conversation

mbukatov
Copy link
Contributor

@mbukatov mbukatov commented Aug 4, 2017

Changes in this pull request makes it possible to run unit tests via tox from command line again:

$ tox -e py27

while keeping the cover test environment working without changes (this is used in Travis CI).

Moreover, it's also possible to pass arguments to pytest via tox like this:

$ tox -e py27 -- tendrl/commons/tests/test_message.py -v

which will run pytest in tox maintained virtualenv with given agruments, so that it's easier to run just particular test cases or to run pytest in verbose mode (as shown in the example above).

Without additional arguments passed to tox from command line, tox will work
in the same was as before. But now, one can redefine pytest run like this:

  $ tox -e py27 -- tendrl/commons/tests/test_message.py -v

In this example, we specify only test_message.py tests to be run,
morevoer pytest will also produce verbose report.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants