If i get you right then i should add that i run LightIdeaTestCase with "-Didea.plugins.load=false" option declared (otherwise some of the plugins produces fatal error)
and in the setUp function i call a static method of my application component which loads the language support.
Actually i borrowed such a structure from Ruby plugin tests, maybe there's a better way to test psi parsing/reference resolve and actions...
Any chance this is possible?
I want to write test on psi reference resolve and many resolve implementations use cache at a project-component level.
Maybe there's a better way to test resolve ?
You could mock out the interface to IDEA OpenAPI and test without IdeaTestCase at all.
Could you explain it please ?
It's supposed that you don't change any aspect of IDEA runtime
configuration while running LightIdeaTestCase.
If i get you right then i should add that i run LightIdeaTestCase with "-Didea.plugins.load=false" option declared (otherwise some of the plugins produces fatal error)
and in the setUp function i call a static method of my application component which loads the language support.
Actually i borrowed such a structure from Ruby plugin tests, maybe there's a better way to test psi parsing/reference resolve and actions...