Skip to content

Commit

Permalink
Merge 64f0a07 into 42b5ce9
Browse files Browse the repository at this point in the history
  • Loading branch information
joshcareybrazen committed Sep 13, 2018
2 parents 42b5ce9 + 64f0a07 commit f3901e3
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 2 additions & 0 deletions README.md
Expand Up @@ -34,6 +34,8 @@ mayatest -m 2017
mayatest -m 2017 --pytest="test_sometest.py"
# to only run test_func
mayatest -m 2017 --pytest="test_sometest.py::test_func"
# to get verbose results, you can include pytest flags
mayatest -m 2017 --pytest="-vvv test_sometest.py"
```

For more information using pytest go to their [docs](https://docs.pytest.org/en/latest/usage.html).
Expand Down
5 changes: 3 additions & 2 deletions mayatest/runner.py
Expand Up @@ -4,6 +4,7 @@
"""
import os
import sys
import shlex

try:
import pytest
Expand Down Expand Up @@ -40,8 +41,8 @@ def pytest_sessionfinish(self):


def main():
pytest_args = sys.argv[2]
pytest.main([pytest_args], plugins=[PytestMayaPlugin()])
pytest_args = shlex.split(sys.argv[2])
pytest.main(pytest_args, plugins=[PytestMayaPlugin()])


if __name__ == '__main__':
Expand Down

0 comments on commit f3901e3

Please sign in to comment.