maven-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Anders Hammar <and...@hammar.net>
Subject Re: Surefire and testSourceDirectory
Date Tue, 05 Jan 2010 11:47:41 GMT
off topic:
If the testSourceDirectory param isn't set correctly, unit test source files
wouldn't be found and thus not run (as they cannot be compiled).

/Anders

On Tue, Jan 5, 2010 at 12:41, Marcin Kwapisz <mkwapisz@zsk.p.lodz.pl> wrote:

> > Well, the purpose is what the docs says:
> > "The test source directory containing test class sources."
> > And it does work, otherwise no unit tests would work/run for any Maven
> > project. As a convention, this param is defined in the Maven super pom.
>
> [Marcin Kwapisz]
> Source files are not run. You mean <testClassesDirectory>. This property
> must be set to directory where compiled test classes are placed.
> <testSourceDirectory> can be set in surefire configuration to whatever
> directory, and tests work properly.
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message