hackebrot/pytest-tricks

Add markers programmatically

Opened this issue ยท 10 comments

Add markers programmatically

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

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

Hmm not sure this ticket will still be open in a week ๐Ÿ’จ

Feel free to take it, I always have more things on my TODO-list than time anyways ๐Ÿ˜†

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.

Yeah tell me... ๐Ÿ˜ฟ

Thank you for the examples! ๐Ÿ‘

@The-Compiler cool examples. Your "platform markers" certainly could be made into a pytest-platform-markers plugin. ๐Ÿ˜

@nicoddemus thanks for the suggestion - and so it happened ๐Ÿ˜‰

cool

๐Ÿ˜

Hmm that readme text sounds familiar ๐Ÿ˜

Guess this guy is still open ๐Ÿ˜ Your turn @The-Compiler ๐Ÿ’ฉ