pytest-dev / pytest

The pytest framework makes it easy to write small tests, yet scales to support complex functional testing
https://pytest.org
MIT License
11.68k stars 2.6k forks source link

feat: add --fold-skipped=yes|no cli option #12567

Closed pbrezina closed 2 weeks ago

pbrezina commented 2 weeks ago

This controlls how the skipped tests are displayed in the short summary.

Resolves: https://github.com/pytest-dev/pytest/issues/9876

pbrezina commented 2 weeks ago

Please, let me know if you'd accept this change. If yes, I will include tests and documentation.

@nicoddemus

nicoddemus commented 2 weeks ago

Thanks @pbrezina!

I think it is reasonable, @The-Compiler @bluetech @RonnyPfannschmidt any objections?

pbrezina commented 2 weeks ago

Thank you. I added test, docs and changed option to --no-fold-skipped.

nicoddemus commented 2 weeks ago

@RonnyPfannschmidt would you like to take another look before we squash/merge?

nicoddemus commented 2 weeks ago

Thanks @pbrezina!