I am fiddling a bit going through predicates to determine whether a certain PsiElement meets some conditions. Is there any way to write some small tests where I can play with instantiated PsiElements in order to inspect them and test my predicates?
s
shikasd
05/23/2020, 6:49 PM
IDEA has PsiViewer plugin, so that could be one.
You can also try testing with arrow meta, it allows you to write snippets as a string, compile them and test output.
💯 1
n
Nico
05/23/2020, 8:51 PM
That is exactly what I needed, thank you!
r
raulraja
05/24/2020, 3:09 PM
Also take a look at the Quotes tests in meta which test different element of the AST
👍 1
r
ragunathjawahar
06/02/2021, 3:50 PM
@Nico I spent a day to figure out what works for me. I have put it down as a blog post. Hope it helps.