How can I listen to test finished events in IntelliJ? I am writing a plugin that listens to all the tests that are run.
For each test run, I need the following information:
- fully qualified test name
- test result (success, error, failure)
- test run time
I have found that I can register listeners to JunitCore, but I cannot find a way to obtain a reference to that class via the IJ API.
I also found some hints of test events in the testing framework (com.intellij.execution.testframework), but I cannot figure out how to register the listeners.