StubIndex testing
Answered
I would like drop the cache of StubIndex after each test case. How can I do it? Right now the index persists across all the tests. Can anyone help? Thanks.
Please sign in to leave a comment.
Why do you need to drop them?
I have separate test cases for different stubs. I'd like to test that they are indexed vi StubIndex. It is not like an insurmountable probable, I reworked a test a little bit, so I don't get conflicts. I can pick unique names an so on. But it'd be nice if I could drop the cache anyway. Is it possible to drop it? I could not quickly find an API for them. Seems like it it is dropped only after IDEA instance restart.
com.intellij.psi.stubs.StubIndex#forceRebuild (after removing all test data)