2

What I am trying to do is : create a tagging system for around 400 tests so I can run them selectively. For example, some tags may be UI_elements, production, staging etc. When a developer makes a change that affects a feature that I have a tag associated with, I want to run only those tests specifically.

I am currently trying to make pytest's tagging system to work but to no avail. http://pytest.org/latest/example/markers.html

I am using pytest 2.3.5 and it is difficult to upgrade it (if that is the case). I do exactly what the guide says but Pycharm does not recognize the .mark. bit. What am I doing wrong??

UPDATE: I updated pytest to it's latest version (pytest-2.6.4) but the problem remains.

3
  • Might not be an answer to your question, therefore as comment. Phyton 2.6 and later supports xunit through the pyunit module, and pyunit supports creating testsuites. So replace the tagging the test by adding the test to the respective testsuite Commented Aug 22, 2014 at 5:50
  • Is this question really about getting markers to work in pytest or about how to upgrade pytest?
    – ernie
    Commented Aug 22, 2014 at 16:34
  • I know how to upgrade pytest. I just dont want to, if it will be needed in order for the tagging to work, because there are other things depending on the pytest's version. Commented Aug 26, 2014 at 9:22

0

Browse other questions tagged or ask your own question.