I have implemented a custom PantsTestRunConfigurationProducer that extends RunConfigurationProducer.setupConfigurationFromContext, essentially what it does is that when user right clicks on a piece of test code, it offers the run/debug configuration.
The question is, how can I programatically test the run/debug configuration?
How I do something programatically like:
1. import the project (already doable)
2. open up a test file in an editor
3. right click in the middle of the method definition
4. verify the configuration
Or is there better ways to cover this section the code. I tried to find usage of "RunConfigurationProducer" in intellij-community but it did not seem to appear in any test.