One suggestion, Can you repoduce the problem in a small project? this way you can open a JIRA and other ppl can take a crack at it.
Thanks -D On 9/30/06, Michael Rimov <[EMAIL PROTECTED]> wrote:
> -----Original Message----- > From: dan tran [mailto:[EMAIL PROTECTED] > Sent: Saturday, September 30, 2006 7:41 AM > To: Maven Users List > Subject: Re: [M2] Surefire executing a single test suite. > > Mike, I have a small good news for you, I have the exact test scenario and > have no problem with maven2. Actually, that's excellent news. I was starting to wonder :) > So you will need to do further investigation in your java junit setup . > Are you able to use an IDE to run your suite? Yes, absolutely -- it runs inside an IDE fine and it runs within maven1 as well fine. I tried renaming the current plugins directory and forcing a clean download (once before I had weird problems that a clean repository fixed)... no dice there too. Any chance I could see the relevant section of your POM? Thanks for the reply! -Mike > > -D > > > On 9/30/06, Michael Rimov <[EMAIL PROTECTED]> wrote: > > > > Hi All, > > > > I didn't see a response to my first post -- I did some additional > > experimentation with it: > > > > > -----Original Message----- > > > From: Michael Rimov [mailto:[EMAIL PROTECTED] > > > Sent: Friday, September 29, 2006 5:11 AM > > > To: [email protected] > > > Subject: [M2] Surefire executing a single test suite. > > > > > > I've been working on updating the build system for a project > > > (http://emo.sf.net/) to maven2. > > > > > > Because of the extensive database setup, it all unit tests execute > > through > > > a > > > single test suite which has the format liket his: > > > > > > > > > com.sri.emo.test.EmoTestSuite: > > > > > > public static junit.framework.Test suite() throws Exception { > > > > > > EmoTestSuite ts = new EmoTestSuite(); > > > > > > ts.addTest(com.sri.emo.dbobj.TestSchema.suite()); > > > > > > ts.addTestSuite(com.sri.emo.TestEmoSchema.class); > > > > > > > ts.addTestSuite(com.sri.emo.test.TestDatabaseTestFixture.class); > > > > > > > > > > > > //Other test suites > > > > > > return ts; > > > > > > } > > > > Followup: If I put a method: testSomething() {} inside the > EmoTestSuite > > class, then THAT test case gets run (within the same class) -- so it > > specifically appears to be a problem with the surefire plugin not > calling > > suite() to build a test suite. > > > > Is there a setting that I'm just missing to get surefire to do this? Is > > it > > a bug? Does anyone have a workaround to suggest? Am I misapplying > > Surefire? > > > > Thanks in advance! > > > > -Mike > > > > > > > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
