I want to make some unit tests, so I set up a list with values that all should be asserted true, just like this question. But I want it to run in PyCharm
(With pressing Alt
+Shift
+F10
)
If I just use the code from the answers, I just get No tests were found
You need to double check the settings for the tests run configuration:
By default PyCharm will inspect files that start with test
and that are subclasses of unittest.TestCase
, however you can control the Pattern and the subclasses option.
Change Pattern according to your test file names, it accepts Python regular expression.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With