I have a few test cases that are in unittest.Testcase class. I skip a couple of them. At the end of the run, can I get a list of those skipped tests?
If you are running the tests at the command line, say, as:
python3 -m unittest
then you can use the -v verbose option to list the result of each test, and look for the skipped ones.
python3 -m unittest -v
If the list is long, you can just grep for 'skipped' in the output. E.g.
python3 -m unittest -v | grep skipped
Is there a method/property/var to get a list of skipped tests in python3 unittest?