How to add a custom test runner to a Jetbrains IDE

Pycharm (and the rest of the Jetbrains IDEs) comes with the ability to choose different testing frameworks for running unit tests within itself. I would like to create a custom test runner which will be capable of running tests in parallel, to speed things up when running independent tests.

  • How would I go about integrating this into Pycharm, to add it as an additional test runner?
  • Would I have to write a bunch of wrappers for one of the existing test runners like unittest?