:thinking_face: Would it be possible for the Intel...
# testballoon
p
🤔 Would it be possible for the IntelliJ plugin to highlight green/blue code by editor background colour?
o
AFAIK, not in a reliable way: You could always write your own
TestConfig
wrapper with a green-code lambda. Such a wrapper can have an arbitrary signature for the lambda and its green code character could be only identified by the function it invokes at some point (like
aroundEachTest
). This would be too heavy for an IDE plugin to analyze.
Same with signatures of custom
test
functions.
p
Custom test functions have a
@TestRegistered
annotation that could be used for highlighting the lambda content I thought but I hadn't considered TestConfig extensions
o
Actually, test functions don't need to have the annotation if they use the "standard" signature. But you're correct, that doesn't change the fact that these are easier to discover. The compiler is probably best suited to help with closure captures, so let's hope that KT-15514 will be addressed.
👍 1