The Artima Developer Community
Sponsored Link

SuiteRunner Forum
Maven SuiteRunner Plugin

2 replies on 1 page. Most recent reply: Oct 28, 2004 11:15 PM by praveen kumar

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 2 replies on 1 page
Jason van Zyl

Posts: 2
Nickname: jvz
Registered: Mar, 2003

Maven SuiteRunner Plugin Posted: Mar 7, 2003 11:40 AM
Reply to this message Reply
Advertisement
I would like to replace the JUnit Task plugin in Maven with SuiteRunner but the examples I see are from running SuiteRunner from the CLI. I would actually like to create a simple bean that can trigger the use of SuiteRunner I see from the code that Runner.java seems to be the place I would hook into. Is this correct? Just checking before I start.

What we do in Maven is specify the tests we want to run as part of the project's POM:

http://cvs.apache.org/viewcvs/jakarta-turbine-maven/project.xml?rev=1.256&content-type=text/vnd.viewcvs-markup

There is a <unitTest/> element where we specify the test classes to run.

Would Runner.java be the class to look at for making SuiteRunner work from a bean?


Bill Venners

Posts: 2284
Nickname: bv
Registered: Jan, 2002

Re: Maven SuiteRunner Plugin Posted: Mar 8, 2003 11:05 AM
Reply to this message Reply
I'm not familiar with Maven, but I'll check into it later today. I did want eventually to work to get SuiteRunner integrated with build tools, Eclipse, ant, an so on, so Maven could be the place to start since you asked.

I resisted the temptation to put any other public methods in Runner beside main, because I wasn't sure if they would be needed for IDE integration or not. And I wasn't sure what method would be required if one was needed. If it turns out one or more run method makes sense, for example, we could consider adding that.

Currently, the two approaches to tool integration are 1) to call Runner.main from code (from the tool), and 2) to just run the suites directly by calling execute on the Suites. If you call execute directly, you'll have to instantiate a Reporter yourself.

If you look at this before I post again to this forum topic, hopefully later today after I've had a chance to understand Maven, please post here with what you think is the right way to do it.

Thanks.

praveen kumar

Posts: 1
Nickname: raja11
Registered: Oct, 2004

Re: Maven SuiteRunner Plugin Posted: Oct 28, 2004 11:15 PM
Reply to this message Reply
i am facing some other problem while generating test case reports. While generating test case reports runs only for the first class file other files give null pointer exception.

<unitTestSourceDirectory>${basesrc}/test</unitTestSourceDi rectory>
<unitTest>
<includes>
<include>**/T*.java</include>
</includes>
<excludes>







test case error

java.lang.NullPointerException



if any body know the solution plz foward me.

Flat View: This topic has 2 replies on 1 page
Topic: The way to use Artima SuiteRunner tool Previous Topic   Next Topic Topic: 1.0beta7 and junit

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use