Ask Your Question

A previously skipped test does not appear in the testing tools

asked 2019-11-16 10:47:16 -0500

piscvau's avatar

updated 2019-11-18 09:11:37 -0500

Hello I am using testing tool to run a set of 3 testcases. At some point I decorated a test case with @unittest.skip . Then I removed the decorator and I cannot get that test to be shown again in the testing tool. I have tried to go to file and save the file again but it does not help.

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2019-11-18 09:14:01 -0500

updated 2019-11-18 09:14:33 -0500

Are you running or debugging tests? Running the whole module or parent class if a method should re-add it, although in fact it should never have been removed since having the @unittest.skip decorator should keep showing the test but show a skipped icon next to it. So I'm not certain if that will help.

One thing to note is Wing discovers tests only when you run them (not debug them or at any other time) so you do sometimes need to run a whole file again in order to discover new tests.

Please let us know if this does not help.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower


Asked: 2019-11-16 10:47:16 -0500

Seen: 591 times

Last updated: Nov 18 '19