You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello,
first of all, thank you for this plugin and all of your other work.
Would you be OK to update the test name by padding the iteration number?
I foresee a benefit in consuming the reports.
For instance when used in conjunction with pytest-html, sorting the tests by name would happen properly in the HTML report.
Right now, if I repeat a test 10 times, sorting the tests by name would look like:
test_something.py::test_do_nothing[1-10]
test_something.py::test_do_nothing[10-10] # this is out of order
test_something.py::test_do_nothing[2-10]
test_something.py::test_do_nothing[3-10]
# [...]
By padding wih either 0 or ' ', simple sorting would work
I think it might be cool to have this as an option.
Maybe --repeat-pad would add a space, and --repeat-pad=0 would add a 0, or something like that.
If you're still interested in submitting a PR, it might be worth considering
Activity
okken commentedon Feb 16, 2025
I think it might be cool to have this as an option.
Maybe
--repeat-padwould add a space, and--repeat-pad=0would add a 0, or something like that.If you're still interested in submitting a PR, it might be worth considering