If you don't have the test classes in the default location maven is
looking, src/test/java, then you have to give the location.
<build>
    <testSourceDirectory>src/test</testSourceDirectory>
The includes are relative to that location, I think.

Upul

On Wed, Nov 11, 2009 at 8:44 PM, MrPotatoe <[email protected]> wrote:
>
>
> Hi,
>
> I have set up maven to run my test.
>
> <plugin>
>        <groupId>org.apache.maven.plugins</groupId>
>        <artifactId>maven-surefire-plugin</artifactId>
>        <version>2.4.3</version>
>        <configuration>
>                <includes>
>                        <include>${basedir}/src/**/Test*.java</include>
>                </includes>
>        </configuration>
> </plugin>
>
> I have several tests, inherited from TestCase
>
> public class TestToy extends TestCase {
>        public void testPrueba(){
> ...
>
> But when I run mvn test I get:
>
> [WARNING] Not decrypting password for server 'gmr-central' due to exception
> in s
> ecurity handler.
> Ensure that you have configured your master password file (and relocation if
> app
> ropriate)
> See the installation instructions for details.
> Cause: ***.m2\settings-security.xml (El sistem
> a no puede hallar el archivo especificado)
> [WARNING] Not decrypting password for server 'subversion' due to exception
> in se
> curity handler.
> Ensure that you have configured your master password file (and relocation if
> app
> ropriate)
> See the installation instructions for details.
> Cause: ***.m2\settings-security.xml (El sistem
> a no puede hallar el archivo especificado)
> [INFO] Scanning for projects...
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Building
> [INFO]    task-segment: [test]
> [INFO]
> ------------------------------------------------------------------------
> [INFO] [resources:resources {execution: default-resources}]
> [WARNING] Using platform encoding (Cp1252 actually) to copy filtered
> resources,
> i.e. build is platform dependent!
> [INFO] Copying 5 resources
> [INFO] [compiler:compile {execution: default-compile}]
> [INFO] Nothing to compile - all classes are up to date
> [INFO] [resources:testResources {execution: default-testResources}]
> [WARNING] Using platform encoding (Cp1252 actually) to copy filtered
> resources,
> i.e. build is platform dependent!
> [INFO] skip non existing resourceDirectory
> ***workspace\Proyecto\src\test\resources
> [INFO] [compiler:testCompile {execution: default-testCompile}]
> [INFO] No sources to compile
> [INFO] [surefire:test {execution: default-test}]
> [INFO] Surefire report directory: ***\Proyecto\target\surefire-reports
>
> -------------------------------------------------------
>  T E S T S
> -------------------------------------------------------
> There are no tests to run.
>
> Results :
>
> Tests run: 0, Failures: 0, Errors: 0, Skipped: 0
>
> [INFO]
> ------------------------------------------------------------------------
> [INFO] BUILD SUCCESSFUL
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Total time: 1 minute 16 seconds
> [INFO] Finished at: Wed Nov 11 14:59:09 GMT 2009
> [INFO] Final Memory: 16M/30M
> [INFO]
> ------------------------------------------------------------------------
>
> Thanks
> --
> View this message in context: 
> http://old.nabble.com/There-are-no-tests-to-run-tp26302586p26302586.html
> Sent from the Maven - Users mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>
>



-- 
http://upulgodage.com

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to