Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Custom markers #10

Open
sanjaykasi opened this issue Jul 28, 2014 · 1 comment
Open

Custom markers #10

sanjaykasi opened this issue Jul 28, 2014 · 1 comment

Comments

@sanjaykasi
Copy link

As discussed on stack overflow, this is a request for new feature to define custom markers.
We need to consider the trailing digits of the marker as the ordering.
E.g If I say @pytest.mark.custom1 or @pytest.mark.custom(order=1) , then 1 should be the order.
Thank you!

@ftobia
Copy link
Owner

ftobia commented Jul 28, 2014

This sounds sane and pretty straightforward. Any marker that ends in one or more digits will be considered orderable. It will create a group that is the marker's name minus the trailing digits.

Looking over my tests, I've punted so far on support for groups. See also #8.

Can you describe your use case with respect to that ticket and this one? I think it would help move the API in the right direction. Specifically, do you foresee cases where you'll have multiple groups? Or would you only ever want one group to be ordered?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants