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

Specifying test(s) to run at verdi devel tests #2772

Closed
szoupanos opened this issue Apr 17, 2019 · 2 comments
Closed

Specifying test(s) to run at verdi devel tests #2772

szoupanos opened this issue Apr 17, 2019 · 2 comments

Comments

@szoupanos
Copy link
Contributor

This is a feature that would make the debugging much easier.
It would be nice to be able to specify when running verdi devel tests a set of tests that we would like to run (from the specified "family" of tests)

E.g.

verdi -p test_dj1 devel tests db.nodes

has 71 tests. I want to focus only on one and debug it but I don't want to run all the other since it takes time (to run them on every modification). It becomes even more cumbersome if the whole procedure is done via the debugger of an IDE with breakpoints etc.

This feature exists for unittests, we just have to "expose it'
https://stackoverflow.com/questions/15971735/running-single-test-from-unittest-testcase-via-command-line

@ltalirz
Copy link
Member

ltalirz commented Apr 17, 2019

This would be solved by #2771

@ltalirz
Copy link
Member

ltalirz commented Feb 3, 2020

And now it is solved - use e.g.

# tests from a module
pytest tests/path/to/test_mystuff.py

# single test
pytest tests/path/to/test_mystuff::test_func

And there's more

@ltalirz ltalirz closed this as completed Feb 3, 2020
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

4 participants