You're not the only person reporting tests that pass in Eclipse but
not Maven. I'm not sure what's going on there, but I'm hoping someone
will eventually figure it out and let us all know what's going on
exactly. ;-)

Have you tried mvn -X, it reports a lot more data than -e. Perhaps
you'll see something strange with -X?

Also try adding this to your pom.xml to see the System.out and
System.err println()s reporting in your command line shell. But you
should really think about adding a logging system to your app and
getting rid of the System calls, its a really simple change.

  <build>
    <plugins>
      <plugin>
        <artifactId>maven-surefire-plugin</artifactId>
        <configuration>
          <useFile>false</useFile>
        </configuration>
      </plugin>

Wayne

On 4/13/06, gdub <[EMAIL PROTECTED]> wrote:
> I am trying to install a module that
> depends on Spring and Hibernate. All
> of those dependencies for the app
> are in that Maven project. The trouble
> is that the tests won't pass. They pass
> fine in Eclipse. All the rest of the
> modules for this  project pass their
> tests in both Maven and Eclipse.
>
> I can't see where the trouble is because
> nothing is reported back on the failures.
> The console shows INFO lines saying that
> Spring is loading the configuration
> files (which are all classpath resources,
> BTW) but no indication of how the tests
> are failing--only a message before
> maven exits saying that all the tests
> have failed.
>
> I sprinkled some printlns into some test
> methods to see if the test methods were
> even entered--they are not (well, at
> least I don't think they are, maybe
> the standard output is being shunted).
>
> The -e switch only reports the surefire
> exception that there were failed tests.
>
> I don't think module dependencies are
> the issue because I am using eclipse:
> eclipse to generate them for Eclipse--
> i.e. they are the same in both
> environments.
>
> How do I approach finding the source of
> this trouble? There doesn't appear to be
> enough information to track it down.
>
>   -dub
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

Reply via email to