Since there doesn’t seem to be a way to describe several environments at once like [testenv:py32,py33] or just [testenv:py3] (please correct me if I’m wrong :)) I would like to substitute commands but when I do this:
[testenv:py32]
commands = py.test --cov structlog --cov-config=.coveragerc.py3
[testenv:py33]
commands = {[testenv:py32]commands}
I’ll get
ERROR: InvocationError: could not find executable 'py.test --cov structlog --cov-config=.coveragerc.py3'
If I copy and paste the command line, it works fine.
My guess is that it tries to treat the whole command line as the executable instead of just py.test and splitting the rest as arguments?
Since there doesn’t seem to be a way to describe several environments at once like
[testenv:py32,py33]or just[testenv:py3](please correct me if I’m wrong :)) I would like to substitute commands but when I do this:I’ll get
If I copy and paste the command line, it works fine.
My guess is that it tries to treat the whole command line as the executable instead of just
py.testand splitting the rest as arguments?