Hello,
I'm looking for a meam to know the test result inside @BeforeClass or @AfterClass method.
I'm using junit4-4 (org.junit packages) with Eclipse 3.3. I'm using ant task to run my test campaing like that :
junit reloading="false" printsummary="on" showoutput="false"
classpath refid="test.classpath"
formatter type="xml"
batchtest fork="true" todir="${reportdir}"
fileset dir="${src}"
include name="com/company/test/test1/**/*.java"
exclude name="com/company/test/test1/**/All*.java"
fileset
batchtest
junit
and when I launch my junit test campaign through Eclipse I need to call special code when a test was failed before running next test, do you have any idea ?
Many thanks,
Manu