Thank You, now I have done some progress.

I tried two road. The first is using the cactus maven plugin.

In this case I wrote a simple TestClass that extend ServletTestCase and I put 
the source  in src/test-cactus then I modified the build.properties file ( the 
one in the root dir) adding the following line:

cactus.home.jboss402=C:jboss-4.0.2.

when I to start the cactus goal cactus:test, I have the following error:

build:start:



cactus:check-plugin-dependencies:



cactus:init:



cactus:test:

cactus:check-plugin-dependencies:



cactus:init:

Overriding previous definition of reference to cactus.classpath

Overriding previous definition of reference to cactus.scanner.classpath



cactus:init-report:



java:prepare-filesystem:



java:compile:

    [echo] Compiling to C:WorknewTestserver/target/classes

    [echo] No java source files to compile.



cactus:compile:

    [javac] Compiling 1 source file to 
C:WorknewTestservertargettest-cactus-classes



cactus:cactifywar:

war:init:



war:war-resources:



java:prepare-filesystem:



java:compile:

    [echo] Compiling to C:WorknewTestserver/target/classes

    [echo] No java source files to compile.

resources or todir was null



java:jar-resources:



test:prepare-filesystem:



test:test-resources:



test:compile:

    [echo] No test source files to compile.



test:test:

    [echo] No tests to run.



war:webapp:

    [echo] Assembling webapp server



war:war:

    [echo] Building WAR server



    [cactifywar] Analyzing war: C:WorknewTestservertargetserver.war



BUILD FAILED

File...... C:Documents and 
SettingsAdministrator.mavencachecactus-maven-1.7plugin.jelly

Element... cactifywar

Line...... 279

Column.... 56

The WAR source file does not contain a WEB-INF/web.xml deployment descriptor

Total time: 4 seconds

Finished at: Mon Jul 04 18:48:13 CEST 2005



The second is modifing the project.xml in the following way:



...

        <dependency>

              <groupId>cactus</groupId>

          <artifactId>cactus</artifactId>

              <version>13-1.7</version>

            </dependency>

        

        

    </dependencies>





    <unitTestSourceDirectory>src/test/java</unitTestSourceDirectory>

       <unitTest>

                <includes>

                        <include>**/*Test.java</include>

                </includes>

                        <resources>

                                <resource>

                                        <directory>src/test/java</directory>

                                        <includes>

                                                <include>**/*.dtd</include>

                                                
<include>**/*.properties</include>

                                                <include>**/*.x*</include>

                                                <include>**/*.mf</include>

                                                        
<include>**/*.mm</include>

                                                        
<include>**/*.jar</include>

                                                <include>**/*.xml</include>

                                        </includes>

                                </resource>                                     

                         </resources>                                           
               

       </unitTest>



I put the source  in core/src/test/java.  When I to start the goal install the 
the test will not run ( I have tried the goal test:test too).

Can You help me.
_________________________________________________________
Reply to the post : http://galaxy.andromda.org/forum/viewtopic.php?p=2097#2097
Posting to http://forum.andromda.org/ is preferred over posting to the mailing 
list!


-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
_______________________________________________
Andromda-user mailing list
Andromda-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/andromda-user

Reply via email to