Pycharm and unittest does not work

Although this wasn't the case with the original poster, I'd like to note that another thing that will cause this are test functions that don't begin with the word 'test.'

class TestSet(unittest.TestCase):

    def test_will_work(self):
        pass

    def will_not_work(self):
        pass

This is probably because you did not set your testing framework correctly in the settings dialogue.

enter image description here


Definitely a pycharm thingy, repeating from above,

  • Run --> Edit Configurations.
  • select the instances of the test, and press the red minus button.