Jakub Pawlowicz wrote:
> Did you take a look at files in the
> 'target/surefire-reports' directory of
> your project?

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

Valerio Schiavoni wrote:
> we spotted out that our tests were based
> on the path of some resources only reachable
> within eclipse



Awesome! Thanks for the help everyone.
It WAS a path problem. And the surefire-
reports dir and -X flag let me track
it down.

So, the deal was that a Spring config-
uration file wasn't found. It is a one-
bean file that defines the data source.
For the testing DB server, I made a
specialized data source config. Because
it was a one-off and only used in testing,
I just put it in with the test sources.

That was the problem. Eclipse copies
resources from all source directories
to the classpath directories. Maven
only copies the resources from the
resources directory to there.

Thanks again all,

  -dub


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to