I'm looking to create a plugin that will create a TestNG test configuration and execute an existing test with a small addition to its VM parameters, similar to the below. Unfortunately, TestNGConfiguration cannot be found. I would expect it to be located in com.intellij.execution.configuration or configurations, but it is not.
RunManager manager = RunManager.getInstance(e.getProject());
RunnerAndConfigurationSettings selectedConfiguration = manager.getSelectedConfiguration();
TestNGConfiguration configuration = (TestNGConfiguration) selectedConfiguration.getConfiguration();
The above code snippet was found here.
Is TestNGConfiguration no longer used?
Is there a better way to create a TestNG test programmatically?
Thanks in advance for any help you can provide.