Remember that tests are not always run in the order in which they appear in the source. My guess is that your tests are not independent, and that if they run in a certain order, an earlier test leaves some state that causes a later test to fail.
From: jenkinsci-users@googlegroups.com [mailto:jenkinsci-users@googlegroups.com] On Behalf Of Alexandra Sandulescu Sent: 07 August 2013 11:01 To: jenkinsci-users@googlegroups.com Subject: Jenkins wrong output and failures When running my tests on jenkins they fail RANDOMLY. I made some research and I found out that the tests which fail are those which are contained by classes with MORE THAN 4 testcases. my test suites look like this: class FooTest extends GenericTest { @Test public void Test1{ /* stuff*/} @Test public void Test1{ /* stuff*/} @Test public void Test1{ /* stuff*/} @Test public void Test1{ /* stuff*/} @Test public void Test1{ /* stuff*/} } i have 10 test classes (test suites) which contain 4 tests, one contains 5 and one 6 tests and the tests which fail are contained by the classes with more than 4 tests. If i remove 3 tests and all classes contain maximum 4 tests everything is ok. I want to know if is there any method to solve this problem avoiding creating a new suite for the tests which are over the 4 ones. Thank you, Alexandra Sandulescu -- You received this message because you are subscribed to the Google Groups "Jenkins Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-users+unsubscr...@googlegroups.com<mailto:jenkinsci-users+unsubscr...@googlegroups.com>. For more options, visit https://groups.google.com/groups/opt_out. -- This e-mail and any attachments may contain confidential, copyright and or privileged material, and are for the use of the intended addressee only. If you are not the intended addressee or an authorised recipient of the addressee please notify us of receipt by returning the e-mail and do not use, copy, retain, distribute or disclose the information in or attached to the e-mail. Any opinions expressed within this e-mail are those of the individual and not necessarily of Diamond Light Source Ltd. Diamond Light Source Ltd. cannot guarantee that this e-mail or any attachments are free from viruses and we cannot accept liability for any damage which you may sustain as a result of software viruses which may be transmitted in or with the message. Diamond Light Source Limited (company no. 4375679). Registered in England and Wales with its registered office at Diamond House, Harwell Science and Innovation Campus, Didcot, Oxfordshire, OX11 0DE, United Kingdom -- You received this message because you are subscribed to the Google Groups "Jenkins Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-users+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.