You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by "Swierczek, David (MED)" <da...@med.ge.com> on 2004/02/19 17:24:08 UTC

Could not find org.apache.testlet.engine.TextTestEngine

Hi users,

I'm trying to run a junit test from maven.xml and get the following
error:
	[test] [ERROR] Could not find
org.apache.testlet.engine.TextTestEngine. Make sure you have it in your
classpath

Now, this test runs fine from Ant (v 1.5) but when I migrated it to
Maven (v. 1.0-rc1) I started to see the error.
I searched all of the jar files and could not come up with a reference
to "TextTestEngine" anywhere.


My maven goal looks something like this:
    <goal name="stuff:hansel-run">
        <property name="mavenClasspath"
refid="maven.dependency.classpath"/>

        <ant:junit printsummary="yes" 
                   haltonfailure="no" fork="yes" timeout="600000">
          <formatter type="xml"/>

          <test todir="target"
 
name="com.ge.medit.stuff.autohanseltests.utilHanselCoverageSuite"/>

            <classpath >
                <pathelement path="${mavenClasspath}"/>
            </classpath >
        </ant:junit>
    </goal>



Have you seen this problem before -- and if so, what is the solution?

Thanks,

-Dave

	g GE Medical Systems
	              Information Technologies
	____________________________
	David Swierczek
	david.swierczek@med.ge.com 
	Sr. Software Engineer
	Clinical Systems Engineering

	General Electric Company
	8200 West Tower Avenue, Milwaukee, WI 53233
	Telephone: 414.362.2753  Fax: 414.362.2880
Visit us on the internet: http://www.gemedical.com/


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


RE: Could not find org.apache.testlet.engine.TextTestEngine

Posted by Eric Pugh <ep...@upstate.com>.
That isn't a standard class as part of Junit..  You'll need to add it as a
dependency to your project.xml.

Eric

> -----Original Message-----
> From: Swierczek, David (MED) [mailto:david.swierczek@med.ge.com]
> Sent: Thursday, February 19, 2004 5:24 PM
> To: 'users@maven.apache.org'
> Subject: Could not find org.apache.testlet.engine.TextTestEngine
>
>
> Hi users,
>
> I'm trying to run a junit test from maven.xml and get the following
> error:
> 	[test] [ERROR] Could not find
> org.apache.testlet.engine.TextTestEngine. Make sure you have
> it in your
> classpath
>
> Now, this test runs fine from Ant (v 1.5) but when I migrated it to
> Maven (v. 1.0-rc1) I started to see the error.
> I searched all of the jar files and could not come up with a reference
> to "TextTestEngine" anywhere.
>
>
> My maven goal looks something like this:
>     <goal name="stuff:hansel-run">
>         <property name="mavenClasspath"
> refid="maven.dependency.classpath"/>
>
>         <ant:junit printsummary="yes"
>                    haltonfailure="no" fork="yes" timeout="600000">
>           <formatter type="xml"/>
>
>           <test todir="target"
>
> name="com.ge.medit.stuff.autohanseltests.utilHanselCoverageSuite"/>
>
>             <classpath >
>                 <pathelement path="${mavenClasspath}"/>
>             </classpath >
>         </ant:junit>
>     </goal>
>
>
>
> Have you seen this problem before -- and if so, what is the solution?
>
> Thanks,
>
> -Dave
>
> 	g GE Medical Systems
> 	              Information Technologies
> 	____________________________
> 	David Swierczek
> 	david.swierczek@med.ge.com
> 	Sr. Software Engineer
> 	Clinical Systems Engineering
>
> 	General Electric Company
> 	8200 West Tower Avenue, Milwaukee, WI 53233
> 	Telephone: 414.362.2753  Fax: 414.362.2880
> Visit us on the internet: http://www.gemedical.com/
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org