Hello,

Luciano (or anyone else), did you ever get either of these working? If so, could you share your script/configs with me? I tried to make Jester work, but wasn't successful. Here is what I have tried:

- I am trying to start with just a single class, that imports no other classes.

- I followed the Hints and Tips on the website for integrating
with Ant, by using a "compilationCommand=JesterCompile.bat"
entry in my jester.cfg

- My JesterCompile has the following:
maven myproject:jestercompile

- I use the following maven goals to run jester:

   <!-- =================================================== -->
   <!--  compile for jester                                 -->
   <!-- =================================================== -->
   <goal name="myproject:jestercompile">
       <attainGoal name="myproject:init"/>
       <javac destdir="${basedir}/jestersrc" deprecation="true"
           debug="true" optimize="false" excludes="**/samples.xml">
           <src>
               <pathelement location="${basedir}/jestersrc"></pathelement>
           </src>
           <classpath>
               <pathelement path="${basedir}/jestersrc"/>
               <fileset dir="${lib.dir}">
                   <include name="*.jar"></include>
               </fileset>
               <fileset dir="${dist.dir}">
                   <include name="*.jar"></include>
               </fileset>
           </classpath>
       </javac>
   </goal>



<!-- ========================================================= -->
<!-- Runs Jester on the source tree -->
<!-- ========================================================= -->
<goal name="jester">
<delete dir="${basedir}/jestersrc"/>
<mkdir dir="${basedir}/jestersrc"/>
<copy todir="${basedir}/jestersrc">
<fileset dir="${src.dir}/main">
<!-- include name="**" /-->
<include name="org/myproject/call/Call.java" />
<include name="org/myproject/call/CallTest.java" />
</fileset>
<!--
<fileset dir="${src.dir}/test">
<include name="**" />
</fileset>
-->
</copy>
<attainGoal name="myproject:jestercompile"/>
<java dir="${basedir}" classname="junit.textui.TestRunner" fork="yes">
<arg value="org.myproject.call.CallTest"/>
<classpath>
<fileset dir="${lib.dir}">
<include name="*.jar"></include>
</fileset>
<pathelement location="${basedir}/jestersrc"/>
</classpath>
</java>


<java dir="${basedir}/jestersrc" classname="jester.TestTester" fork="true">
<!--arg value="test.AllTests"/ -->
<arg value="org.myproject.call.CallTest"/>
<arg value="${basedir}/jestersrc/"/>
<classpath>
<fileset dir="${lib.dir}">
<include name="*.jar"></include>
</fileset>
<pathelement location="${basedir}"/>
<pathelement location="${basedir}/jestersrc"/>
<pathelement location="d:/ant/lib/optional.jar"/>
<fileset dir="d:\maven\lib">
<include name="*.jar"></include>
</fileset>
</classpath>
</java>


</goal>


- and here is the output I get. As you can see, the manual junit tests I invoke run successfully, which indicates that I have copied and built the source correctly to my .../jestersrc dir, but jester still
can't find some file (NoClassDefFoundError):


jester:
   [delete] Deleting directory D:\myproject\myproject\jestersrc
   [mkdir] Created dir: D:\myproject\myproject\jestersrc
   [copy] Copying 2 files to D:\myproject\myproject\jestersrc
myproject:jestercompile:
myproject:init:
   [mkdir] Created dir: D:\myproject\myproject\_metaData

[javac] Compiling 2 source files to D:\myproject\myproject\jestersrc

[java] .........
[java] Time: 0
[java]
[java] OK (9 tests)
[java]
[java] ERR> NOTE - jester has tried to 'exec' "java jester.TestRunnerImpl org.myproject.call.CallTest"
[java] ERR> java.lang.NoClassDefFoundError: jester/TestRunnerImpl
[java] ERR> NOTE - the simplest way to get Jester to work is to put everything on the static classpath
[java] jester.SourceChangeException: couldn't run tests runCommand exit value 1 indicates that java jester.TestRunnerImpl org.myproject.call.CallTest didn't work
[java] at jester.RealTestRunner.testsRunWithoutFailures(RealTestRunner.java:32)
[java] at jester.TestTester.run(TestTester.java:103)
[java] at jester.TestTester.main(TestTester.java:90)
[java] ERR> Exception in thread "main"



Thanks, Chad Woolley

----- Original Message ------
Hello-

Does anyone have any experience integrating Hansel
(http://hansel.sourceforge.net) & Jester (http://jester.sourceforge.net)
into Maven?

do you have any tips?

Thanks,

Luciano Moretti




--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to