Identify in a unit test if Jetbrains IntelliJ IDEA 8 or 9 is running
Posted
by Ran Biron
on Stack Overflow
See other posts from Stack Overflow
or by Ran Biron
Published on 2010-03-22T11:59:20Z
Indexed on
2010/03/22
12:01 UTC
Read the original article
Hit count: 729
I need to know, in a context of a unit test, if Jetbrains IntelliJ idea is the test initiator and if it is, which version is running (or at least if it's "9" or earlier).
I don't mind doing dirty tricks (reflection, filesystem, environment...) but I do need this to work "out-of-the-box" (without each developer having to setup something special).
I've tried some reflection but couldn't find a unique identifier I could latch onto.
Any idea?
Oh - the language is Java.
© Stack Overflow or respective owner