On 21/10/2013 16:40, Mickael Istria wrote: > On 10/21/2013 04:32 PM, Lorenzo Bettini wrote: >> Is anyone experiencing a similar problem? > I don't remember anything similar, but it looks like a Thread issue in > WorkbenchTestable. Have you looked in > /home/bettini/tmp/org.eclipse.swtbot/org.eclipse.swtbot.swt.finder.test/target/surefire-reports > to check whether a test actually failed, or if it is only the > WorkbenchTestable which is in error? Also, on the same machine, have you > tried other target platforms? > To save time, you can try the following: > $ mvn clean install -DskipTests # will make SWTBot bundles available > for further usage with Tycho > $ cd org.eclipse.swtbot.swt.finder.test # the "interesting" folder > $ mvn clean verify <options|profiles|...> # to run tests without > requiring to rebuild all SWTBot, which was previously "mvn install"ed >
Hi Mickael thanks for the suggestions! I looked in that folder and there's actually on test failing: ------------------------------------------------------------------------------- Test set: org.eclipse.swtbot.swt.finder.SWTBotTest ------------------------------------------------------------------------------- Tests run: 7, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 13.103 sec <<< FAILURE! getsAllShells(org.eclipse.swtbot.swt.finder.SWTBotTest) Time elapsed: 0.233 sec <<< FAILURE! java.lang.AssertionError: expected:<2> but was:<4> at org.junit.Assert.fail(Assert.java:88) at org.junit.Assert.failNotEquals(Assert.java:743) at org.junit.Assert.assertEquals(Assert.java:118) at org.junit.Assert.assertEquals(Assert.java:555) at org.junit.Assert.assertEquals(Assert.java:542) at org.eclipse.swtbot.swt.finder.SWTBotTest.getsAllShells(SWTBotTest.java:98) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:47) at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12) at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:44) at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17) at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:26) at org.eclipse.swtbot.swt.finder.RunUIThreadRule.runTestThread(RunUIThreadRule.java:52) at org.eclipse.swtbot.swt.finder.RunUIThreadRule.access$4(RunUIThreadRule.java:48) at org.eclipse.swtbot.swt.finder.RunUIThreadRule$2.run(RunUIThreadRule.java:42) at java.lang.Thread.run(Thread.java:662) doesNotWait5SecondsAndPassesForPassingCondition(org.eclipse.swtbot.swt.finder.SWTBotTest) Time elapsed: 0.034 secwaitsMoreThan5sWhenConditionDoesNotSwitchToFailing(org.eclipse.swtbot.swt.finder.SWTBotTest) Time elapsed: 5.036 secwaitsLessThan5sWhenConditionSwitchToFailing(org.eclipse.swtbot.swt.finder.SWTBotTest) Time elapsed: 2.551 secthrowsExceptionOnNegativeTimeOut(org.eclipse.swtbot.swt.finder.SWTBotTest) Time elapsed: 0.057 secfindsShellsById(org.eclipse.swtbot.swt.finder.SWTBotTest) Time elapsed: 0.064 secwaits5SecondsAndFailsForFailingCondition(org.eclipse.swtbot.swt.finder.SWTBotTest) Time elapsed: 5.036 sec > HTH > -- > Mickael Istria > Eclipse developer at JBoss, by Red Hat <http://www.jboss.org/tools> > My blog <http://mickaelistria.wordpress.com> - My Tweets > <http://twitter.com/mickaelistria> > > > _______________________________________________ > swtbot-dev mailing list > swtbot-dev@eclipse.org > https://dev.eclipse.org/mailman/listinfo/swtbot-dev > -- Lorenzo Bettini, PhD in Computer Science, DI, Univ. Torino HOME: http://www.lorenzobettini.it Xtext Book: http://www.packtpub.com/implementing-domain-specific-languages-with-xtext-and-xtend/book _______________________________________________ swtbot-dev mailing list swtbot-dev@eclipse.org https://dev.eclipse.org/mailman/listinfo/swtbot-dev