Hi,
mvn gwt:testGwt passed a test doom to fail, and according to the
output message "OK (0 tests)" I believe it didn't even run the test.
Can anyone help please?
@Environment
=============
Ubuntu Hardy Heron
Maven version: 2.0.9
Java version: 1.6.0_06
@Console message
==================
louis@abulafia:~/programming/code/manual/mygwt$ mvn gwt:compile
gwt:testGwt
[INFO] Scanning for projects...
[INFO] Searching repository for plugin with prefix: 'gwt'.
[INFO]
------------------------------------------------------------------------
[INFO] Building mygwt Maven Webapp
[INFO] task-segment: [gwt:compile, gwt:testGwt]
[INFO]
------------------------------------------------------------------------
[INFO] [gwt:compile]
Override:
Output will be written into /home/louis/programming/code/manual/mygwt/
target/mygwt/idv.louis.MyGwt
Compilation succeeded
[INFO] [gwt:testGwt]
OK (0 tests)
[INFO]
------------------------------------------------------------------------
[INFO] BUILD SUCCESSFUL
[INFO]
------------------------------------------------------------------------
[INFO] Total time: 8 seconds
[INFO] Finished at: Sat May 17 07:09:42 CST 2008
[INFO] Final Memory: 5M/82M
[INFO]
------------------------------------------------------------------------
louis@abulafia:~/programming/code/manual/mygwt$
@Directory Layout
==========================
src
|-- main
| |-- java
| | `-- idv
| | `-- louis
| | |-- MyGwt.gwt.xml
| | |-- client
| | | |-- IMyService.java
| | | |-- IMyServiceAsync.java
| | | `-- MyGwt.java
| | |-- public
| | | `-- MyGwt.html
| | `-- server
| | `-- MyService.java
| |-- resources
| `-- webapp
| |-- WEB-INF
| | `-- web.xml
| `-- index.jsp
`-- test
`-- java
`-- idv
`-- louis
|-- client
| `-- MyGwtTest.java
`-- server
@MyGwtTest.java
===============================
public class MyGwtTest extends GWTTestCase {
public String getModuleName() {
return "idv.louis.MyGwt";
}
public void testSimple() {
fail();
}
}
@pom.xml
=================================================
<?xml version="1.0"?>
<project xmlns="
http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://
www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://
maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>idv.louis</groupId>
<artifactId>mygwt</artifactId>
<packaging>war</packaging>
<version>1.0-SNAPSHOT</version>
<name>mygwt Maven Webapp</name>
<url>
http://maven.apache.org</url>
<dependencies>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>3.8.2</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>com.google.gwt</groupId>
<artifactId>gwt-user</artifactId>
<version>1.4.62</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>com.google.gwt</groupId>
<artifactId>gwt-servlet</artifactId>
<version>1.4.62</version>
<scope>runtime</scope>
</dependency>
</dependencies>
<build>
<finalName>mygwt</finalName>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>2.0</version>
<configuration>
<source>1.4</source>
<target>1.4</target>
</configuration>
</plugin>
<plugin>
<groupId>com.totsp.gwt</groupId>
<artifactId>maven-googlewebtoolkit2-plugin</artifactId>
<configuration>
<logLevel>INFO</logLevel>
<runTarget>idv.louis.MyGwt/MyGwt.html</runTarget>
<compileTargets>
<param>idv.louis.MyGwt</param>
</compileTargets>
</configuration>
<executions>
<execution>
<goals>
<goal>generateClientBeans</goal>
<goal>mergewebxml</goal>
<goal>compile</goal>
<goal>testGwt</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
</project>