Search code examples
pythonpycharmpython-unittest

Run a corresponding unit test each time a file is saved


I have just switched over to using PyCharm as my primary Python editor, and am curious to know how I can configure it so that every time I save a file, that the unit-test corresponding to the modified file will be run? (after poking around the documentation, I have not found a clear explanation of how to do this)


Solution

  • You can try File Watchers plugin to execute task on files modification.

    example config: Config