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

Add mark support #32

Open
sobolevn opened this issue Jul 25, 2020 · 3 comments
Open

Add mark support #32

sobolevn opened this issue Jul 25, 2020 · 3 comments
Labels
enhancement New feature or request help wanted Extra attention is needed

Comments

@sobolevn
Copy link
Member

Sometimes I want to run all FutureResult (or tests for any other type) related tests from returns.
It is a very complex task right now.

I need to:

  1. manually find all FutureResult inside tests
  2. manually copy all the paths from the query
  3. provide long list of arguments to pytest

All I want instead is:

- case: test_future_result
   marks:
     - future_result
  main: ...

And then pytest -m future_result to run this (and all other similarly marked tests).

@sobolevn sobolevn added enhancement New feature or request help wanted Extra attention is needed labels Jul 25, 2020
@kornicameister
Copy link
Contributor

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?

@sobolevn
Copy link
Member Author

sobolevn commented Aug 5, 2020

Any idea for possible syntax to support that?

No ideas! Do you have any?

@kornicameister
Copy link
Contributor

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): ...

?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted Extra attention is needed
Development

No branches or pull requests

2 participants