New issue 340: Pytest: cannot use markers with tox.ini's posargs
https://bitbucket.org/hpk42/tox/issues/340/pytest-cannot-use-markers-with-toxinis
Jack Nicholson:
I have a custom marker in pytest registered as dev in my tox.ini
tox.ini excerpt:
```
[testenv]
commands =
find . -name '*.pyc' -delete
py.test -v -rsx --color=yes {posargs:tests/}
rm -rf *.egg-info
[pytest]
markers =
dev: tests for just the development environment
```
You can see pytest can see the marker
```
$ py.test --markers
@pytest.mark.dev: tests for just the development environment
```
I can use my marker using `py.test -m dev tests/` but I cannot use the marker
with `tox -- -m dev tests/`
```
pytest==2.9.0
tox==2.3.1
```
on Windows 8.1 with Python 2.7.11
_______________________________________________
pytest-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pytest-commit