Posted By:
Mark_Meuer
Posted On:
Tuesday, October 28, 2003 11:31 AM
Is there a way for code being run by JUnit to detect the fact that a JUnit test is in progress? We have some error-handling code that really needs to behave differently under test than when it is run as part of our application.
Ideally, I was hoping to find a system property that is set by all of the test runners that indicate a test is under way. I didn't see anything about this in the documentation.
Any help you can give would be appreciated.
-mark