nikgoodley-ibboost / jstd-maven-plugin

Automatically exported from code.google.com/p/jstd-maven-plugin
0 stars 0 forks source link

Problem building nested multi-module project #7

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
Building maven nested multi-module project:
Novelfaces main project
- NovelFaces Components Library module (contains js tests)
- NovelFaces Showcase module
When I build the NovelFaces Components Library module by itself I have no 
problem.
When I build the main project I get the following error:

-------------------------------------------
 J S  T E S T  D R I V E R
-------------------------------------------

java.lang.RuntimeException: Config file doesn't exist: 
D:\PrivateWS\NovelFacesWS\NovelFacesMain\src\test\resources\jsTestDriver.conf
        at com.google.jstestdriver.JsTestDriver.getConfiguration(JsTestDriver.java:112)
        at com.google.jstestdriver.JsTestDriver.main(JsTestDriver.java:68)
Unexpected Runner Condition: Config file doesn't exist: 
D:\PrivateWS\NovelFacesWS\NovelFacesMain\src\test\resources\jsTestDriver.conf
 Use --runnerMode DEBUG for more information.
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] NovelFaces main ................................... SUCCESS [0.484s]
[INFO] NovelFaces Components Library module .............. FAILURE [2.574s]
[INFO] NovelFaces Showcase module ........................ SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 3.182s
[INFO] Finished at: Tue Mar 01 21:00:31 CET 2011
[INFO] Final Memory: 12M/108M
[INFO] ------------------------------------------------------------------------

It looks for the config file in the main module but it should be looking in the 
src\test\resources\ directory of the NovelFaces Components Library module. 

Config pom.xml of NovelFaces Components Library module:
...
<plugin>                        <groupId>com.google.jstestdriver</groupId>
<artifactId>maven-jstestdriver-plugin</artifactId>
<version>1.2.2-SNAPSHOT</version>
<executions>
<execution>                             <id>run-tests-firefox</id>                              <phase>test</phase>                             
<goals>                                 <goal>test</goal>                               </goals>                                <configuration>                             
    <browser>${firefox.path}</browser>                                  <port>4224</port>                                   <basePath>
src</basePath>                                  <testOutput>target/testReports</testOutput>                                 <conf
ig>src/test/resources/jsTestDriver.conf</config>                                </configuration>                            <
/execution>
</executions>
</plugin>
...

What version of the product are you using? On what operating system?
<version>1.2.2-SNAPSHOT</version>
Windows 7

Original issue reported on code.google.com by nuyensg...@gmail.com on 1 Mar 2011 at 8:11

GoogleCodeExporter commented 9 years ago
This case can be closed, I changed the basePath to ${basedir} and everthing 
works fine.

Original comment by nuyensg...@gmail.com on 28 Mar 2011 at 12:04

GoogleCodeExporter commented 9 years ago
Thanks for the update.

Original comment by burke.we...@gmail.com on 1 Apr 2011 at 6:55