Open stianlagstad opened 2 months ago
I agree that pytest behaviour is not very useful here, as the asserts are much quicker than the workflow . I believe it prints when a workflow is done. Instead it could print the duration instead of just "done". That should be trivial to implement. I will add this to the list.
Hi, and thanks again for this very useful package.
I'd like pytest-workflow to display somehow how long each test case takes. If I add something like
--durations=0 --setup-show
as pytest options, then I do get information about how long each assertion took, but that does not include the runtime of the command.For example, take this pytest-workflow test:
Where
script.sh
looks like this:If I run this with
pytest --durations=0 --setup-show -vv
, what I get is this:I would like a report of some type that shows me that the test case "Test dummy" took 20.something seconds. Is this possible with pytest-workflow today?
My motivation for wanting this is to be able to separate slow tests and fast tests, so that I can run fast tests in pull request CI, and slow tests only after having merged changes in my codebase.