|How to use latest Junit with Eclipse ganymede? [message #554924]
||Tue, 24 August 2010 18:32
| Steven Chamberlin
Registered: July 2009
Sorry this isn't exactly related to SWT-Bot but has to do with my test environment (which I'm using to write SWT-Bot tests), and I know the people on this forum can be very helpful. |
I am on Eclipse ganymede 3.4.2, which includes Junit 4.3. I noticed that the new version of Junit, as of 4.8. supports categories. Details here:
I was able to add the @Category notations by importing the junit 4.8.2 jars into a new plugin in my workspace and putting that plugin as a dependency of my test plugin. Doing so, I was able to get it to compile; however when I try to actually execute the tests, I get the following error at runtime: junit.framework.AssertionFailedError: No tests found in com.ibm.datatools.swtbot.tests.ods.BVTTestsODS, even though my tests are clearly marked with @Test annotation.
I'm not sure if I'm on the right track here. I found this post here:
This guy was trying to do kind of a similar thing, with a similar error, and to fix it he finally ended up just upgrading his entire Eclipse. I'm hoping I won't have to do that, since we need to stay on this version of Eclipse because the product I'm testing is based off of this version. (Or could I use a different version of Eclipse for my testcase development as the 'target platform'? I don't think so right?).
Does anyone know how I can upgrade the version of Junit in Eclipse to Junit 4.8+ ?
Thanks in advance,
Powered by FUDForum
. Page generated in 0.01682 seconds