hackebrot / pytest-tricks

:smirk: Tips and Tricks for the Python Testing Tool
http://hackebrot.github.io/pytest-tricks/
Other
198 stars 16 forks source link

Add markers programmatically #3

Open hackebrot opened 8 years ago

hackebrot commented 8 years ago

@The-Compiler @nicoddemus wanna jump in on this one? Thinking of something similar to what we did for qutebrowser with a gui marker. :grin:

The-Compiler commented 8 years ago

Can do so, but probably not this week - if you don't hear back in a week, can you ping me again? :wink:

hackebrot commented 8 years ago

Hmm not sure this ticket will still be open in a week :dash:

The-Compiler commented 8 years ago

Feel free to take it, I always have more things on my TODO-list than time anyways :laughing:

If you need some more examples, pip applies markers based on what subdir a test is in, and in qutebrowser I add skipif markers based on platform markers like @pytest.mark.windows.

hackebrot commented 8 years ago

Yeah tell me... :crying_cat_face:

Thank you for the examples! :+1:

nicoddemus commented 8 years ago

@The-Compiler cool examples. Your "platform markers" certainly could be made into a pytest-platform-markers plugin. :grin:

The-Compiler commented 8 years ago

@nicoddemus thanks for the suggestion - and so it happened :wink:

nicoddemus commented 8 years ago

cool

:grin:

hackebrot commented 8 years ago

Hmm that readme text sounds familiar :grin:

hackebrot commented 8 years ago

Guess this guy is still open :grin: Your turn @The-Compiler :hankey: