I just had the same experience as Laurel with Maven. The ImportTest class had one test failure under Maven 2.0.4. I recalled Laurel's message here and updated to 2.0.6 and now it passes correctly, along with all the rest.
If our Continuum isn't running 2.0.6 yet, we should upgrade. Note, I also had to run "mvn -U" to update all the dependencies before the test wood work. -t On Apr 20, 10:48 am, laurel <[EMAIL PROTECTED]> wrote: > I wanted to share some problems I've been having with running the PLR > tests and the solutions I found, in case others can benefit. > > I was trying to run the tests in both Eclipse and at the command line, > and neither worked. > > Problem 1: in Eclipse > > Result: The result is a stack trace within Eclipse in the junit view > which relates to pedraw: > java.lang.NoClassDefFoundError: org/telstech/pedraw/WDPanel > at java.lang.Class.getDeclaredMethods0(Native Method) > at java.lang.Class.privateGetDeclaredMethods(Class.java:2365) > at java.lang.Class.getMethod0(Class.java:2611) > at java.lang.Class.getMethod(Class.java:1579) > at sun.reflect.misc.MethodUtil.getMethod(MethodUtil.java:55) > ... > - note that this stack trace was different depending on the test, but > was a NoClassDefFoundError in all case. > > Solution: > Established that - there was a problem with the "build classpath > order" which was causing the problems within eclipse. > I had moved sail-core above Maven2 dependencies in the build order so > that I could see "cause and effect" - ie. changes in sail-core would > impact Pas Learner Runtime. > However, this causes the tests to fail as the classes are not found. > > Problem 2: at the command line using mvn test > > Result: Tests run: 0, Failures: 0, Errors: 0, Skipped: 0, Time > elapsed: 0.006 sec > - so zero tests were being run (not very useful) > I believe that this was because the Junit4 annotations ie. @Test were > being used in some test files. These were the tests that did not run. > > Solution: Yesterday I updated my version ofMavenon my laptop to > 2.0.6 - to solve another problem we were having with the pas portal > and coincidentally this seems to have solved the problem of the tests > not running. > > I hope that this info will be useful to others. > > Laurel --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "SAIL-Dev" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/SAIL-Dev?hl=en -~----------~----~----~----~------~----~------~--~---
