This week's giveaway is in the EJB and other Java EE Technologies forum.
We're giving away four copies of EJB 3 in Action and have Debu Panda, Reza Rahman, Ryan Cuprak, and Michael Remijan on-line!
See this thread for details.
The moose likes Ant, Maven and Other Build Tools and the fly likes How does surefire work Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Engineering » Ant, Maven and Other Build Tools
Bookmark "How does surefire work" Watch "How does surefire work" New topic

How does surefire work

Praveen Seluka
Ranch Hand

Joined: Jul 17, 2007
Posts: 95
Hi all,

We use surefire plug-in in maven. I wonder how it works. Its a wrapper over junit and testng frameworks. It starts these test frameworks and runs test cases. How does it do that?

In my project, I wrote a testng test class. It recognized its a testng test case and ran that automatically.
Can anyone point me to the source code for surefire plugin also.

If I have both Junit and testng test class , what will happen?
Martijn Verburg

Joined: Jun 24, 2003
Posts: 3274

Hi Praveen, have you gone to the Maven page for the plugin? You'll find a majority of your answers there.

Cheers, Martijn - Blog,
Twitter, PCGen, Ikasan, My The Well-Grounded Java Developer book!,
My start-up.
I agree. Here's the link:
subject: How does surefire work
Similar Threads
tsstng and PersistenceContext
Object Oriented Testing
Next Generation Java Testing: what's new?
Unit testing tools
"Scala Programming": Agile and Scala