Eclipse's JUnit plugin has a nice feature that allows entire directories of test classes to be executed en-masse. Unfortunately, I'm discovering that when running it this way, it, somehow, thinks the net.sourceforge.jwebunit.WebTestCase is a test case that needs to be run. When Eclipse runs WebTestCase, it generates a failure with a warning that there are no test cases in the WebTestCase class!
Has anyone else run into this problem? If so, is there some way to prevent Eclipse from running this test and messing up an otherwise flawless run?
Details:
In Eclipse, selecting a class from the Project Explorer, Navigator or Outline view, right clicking on it and selecting "Run As" - "JUnit Test" will run all the test cases in that class. This works just fine with jWebUnit test cases too :) From the Project Explorer or the Outline view, it is even possible to do the same with a single method! The situation I am talking about is when the test package (or the test directory in the Navigator) is selected and run as a JUnit Test. In that case, Eclipse will run unit tests on all of the classes in the package and sub-packages. This is a wonderful feature, but for some reason it seems to think that net.sourceforge.jwebunit.WebTestCase is a separate class that also needs to be tested.
Eclipse's Run Dialogue for the test seems to have only a radio button pair to select all classes or just one specific class in a directory to run. There doesn't seem to be an obvious way to exclude a particular test class... especially one that isn't even in the directory!
------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________ Jwebunit-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/jwebunit-users
