Open sobolevn opened 4 years ago
Can be done, but marks on its own can have parameters i.e. mode(mode_name)
where mode_name
is a placeholder.
Any idea for possible syntax to support that?
Also...pytest
warns if you use undefined mark; but I guess that has to stay. You define a mark and later on can use the mark either in yml
or py
test file, right?
Any idea for possible syntax to support that?
No ideas! Do you have any?
Dunno :P I guess something to resemble normal pytest should be most efficient:
- case: lol
mark:
- blockchain
- module(api)
pytest:ini
[pytest]
marks =
blockchain: ...
module(m): ...
?
Sometimes I want to run all
FutureResult
(or tests for any other type) related tests fromreturns
. It is a very complex task right now.I need to:
FutureResult
inside testspytest
All I want instead is:
And then
pytest -m future_result
to run this (and all other similarly marked tests).