From: Tim Hiller <tim.hiller@nu...> - 2006-10-13 13:53:08
I am trying to run a beanshell script (bsh-2.0b4) containing the following
code. The intention is to allow JUnit test cases to be written/maintained
without compiling. I have tried this with JUnit 3.81 and 4.1. I am on Java
JUnit throws an AssertionError intentionally for the failed assert. I
believe it is expected to propagate its way up out of the test function but
it looks like Beanshell is intercepting it. Consequently I am seeing it as
an "Error" rather than a "Failure" on the test results. If I run the
equivalent code without beanshell it reports as a failure.
Any help would be appreciated.
public class MyTestCase
public void testFailure()
public class MyTestSuite
public static TestSuite suite()
TestSuite suite = new TestSuite();
public static void runTests()
View this message in context: http://www.nabble.com/Problem-running-JUnit-through-BeanShell-tf2437173.html#a6795981
Sent from the BeanShell - User mailing list archive at Nabble.com.