I have a plugin that I created which is working to execute tests using a custom unit test runner. I wanted to also do something within the plug-in to enable better code completion. Basically what is happening is that the test runner is expecting a ruby script, which it reads as text and calls exec on. Because it is being executed in the context of the test runner class which is calling exec, I wanted to enable intellisense for that class, basically the equivalent of having a using statement in the ruby script: using MyClass
I can put the using statement in my script, and I then get code completion, however since it is not inside of a class or module, I get the 'NoMethodError: undefined method `include'' error at execution time.
So, what I am wondering is what is the correct tool to use to tell IntelliJ that any time it sees a test file for the test runner to act as though it has that include statement in it for code completion?