Problem with Maven-surefire-plugin, testNG and Spring

2012-05-09 Thread Edmondo Porcu
Dear all, I am running a mvn package over a complex project, which includes tests written using TestNG and Spring AbstractTestNGSpringContexts. When I run these tests inside my IDE (IDEA) everything works fine, but when I run through mvn package the @ContextConfiguration annotation is not

Maven/Surefire ignores TestNG priority on test methods

2011-02-17 Thread Burns, Scott
Hi, some of our test specify a priority at the method level as shown below. We are running our tests in parallel and the order is being ignored. Any idea on how to configure this? Thanks in advance. Scott @Test(priority = 1) public void testCreateCache() { } /** *

Re: Maven/Surefire ignores TestNG priority on test methods

2011-02-17 Thread Kristian Rosenvold
Surefire delegates all of this to TestNg and does nothing with these things. You'll have to check if the combination of parallel and order is supported by asking over there. Kristian to., 17.02.2011 kl. 15.37 +, skrev Burns, Scott: Hi, some of our test specify a priority at the method

Maven surefire plugin, TestNG classpath reference to suiteXmlFile

2009-02-17 Thread Stevo Slavić
Hello all, Is there a way to configure Maven surefire plugin to lookup TestNG suiteXmlFile as classpath resource? A use case where this would be useful is if one had interfaces, implementation and test of specific api as separate maven modules, where test module would contain testng xml file

Re: Maven surefire plugin, TestNG classpath reference to suiteXmlFile

2009-02-17 Thread Wayne Fay
Is there a way to configure Maven surefire plugin to lookup TestNG suiteXmlFile as classpath resource? I'm not aware of such functionality at this time, but you could probably add it by hacking m-s-p in the constructSurefireBooter() method and adding a corresponding configuration option so

RE: surefire and testng integration issues with surefire-2.4.2

2008-03-21 Thread Jason Chaffee
] Sent: Thursday, March 20, 2008 5:28 PM To: Maven Users List Subject: Re: surefire and testng integration issues with surefire-2.4.2 On 20-Mar-08, at 3:39 PM, Jason Chaffee wrote: Jason van Zyl, First, let me apologize for the tone of my emails and to anyone I offended. I doubt you offended

Re: surefire and testng integration issues with surefire-2.4.2

2008-03-21 Thread Jason van Zyl
. This will happen. -Original Message- From: Jason van Zyl [mailto:[EMAIL PROTECTED] Sent: Thursday, March 20, 2008 5:28 PM To: Maven Users List Subject: Re: surefire and testng integration issues with surefire-2.4.2 On 20-Mar-08, at 3:39 PM, Jason Chaffee wrote: Jason van Zyl, First, let me

surefire and testng integration issues with surefire-2.4.2

2008-03-20 Thread Jason Chaffee
I brought this up in the past the maven guys were adamant that they were not able to get per test information to output on the console unless testng changed. I felt all along that this was not correct and I finally had a chance to look into it. Surefire could simply register a listener to get

RE: surefire and testng integration issues with surefire-2.4.2

2008-03-20 Thread P'Simer, Dana (Matrix)
more than one, you can do that. Good Luck, Dana H. P'Simer Dana.P'[EMAIL PROTECTED] -Original Message- From: Jason Chaffee [mailto:[EMAIL PROTECTED] Sent: Thursday, March 20, 2008 5:32 AM To: Maven Developers List Cc: Maven Users List Subject: surefire and testng integration issues

RE: surefire and testng integration issues with surefire-2.4.2

2008-03-20 Thread Jason Chaffee
it is worthwhile to have the maven developers hear critical feedback from time to tome. -Original Message- From: P'Simer, Dana (Matrix) [mailto:Dana.P'[EMAIL PROTECTED] Sent: Thursday, March 20, 2008 6:39 AM To: Maven Users List; Maven Developers List Subject: RE: surefire and testng integration issues

RE: Re: surefire and testng integration issues with surefire-2.4.2

2008-03-20 Thread Jason Chaffee
, March 20, 2008 10:05 AM To: Maven Developers List Cc: Maven Users List; [EMAIL PROTECTED] Subject: Re: surefire and testng integration issues with surefire-2.4.2 Jason Chaffee wrote: I brought this up in the past the maven guys were adamant that they were not able to get per test information

RE: surefire and testng integration issues with surefire-2.4.2

2008-03-20 Thread Brian E. Fox
We are listening. Can you make a patch for surefire? -Original Message- From: Jason Chaffee [mailto:[EMAIL PROTECTED] Sent: Thursday, March 20, 2008 12:57 PM To: Maven Developers List; Maven Users List Subject: RE: surefire and testng integration issues with surefire-2.4.2 Yeah, I have

RE: RE: Re: surefire and testng integration issues with surefire-2.4.2

2008-03-20 Thread Jason Chaffee
Users List Subject: RE: Re: surefire and testng integration issues with surefire-2.4.2 I did try it. I created my own listener and got the exact output I was looking for. I am not sure where our disconnect is here, but we certainly are seeing two different things with respect to the code

RE: surefire and testng integration issues with surefire-2.4.2

2008-03-20 Thread Jason Chaffee
I will look into creating something as soon as I have time to make sure it is well tested. -Original Message- From: Brian E. Fox [mailto:[EMAIL PROTECTED] Sent: Thursday, March 20, 2008 10:11 AM To: Maven Users List Subject: RE: surefire and testng integration issues with surefire-2.4.2

RE: Re: surefire and testng integration issues with surefire-2.4.2

2008-03-20 Thread Jason Chaffee
if the behavior still works as expected. -Original Message- From: Dan Fabulich [mailto:[EMAIL PROTECTED] Sent: Thursday, March 20, 2008 10:18 AM To: Maven Developers List Cc: [EMAIL PROTECTED]; Maven Users List Subject: Re: surefire and testng integration issues with surefire-2.4.2 Jason Chaffee wrote

Re: surefire and testng integration issues with surefire-2.4.2

2008-03-20 Thread Dan Fabulich
Jason Chaffee wrote: Maybe our disconnect is about callbacks after the class vs. the method. That could be where the misunderstanding is coming from. Sure, that could be. I claim that logging per-method is *way* too much logging. Don't you agree? In JUnit we can log per-class or

RE: surefire and testng integration issues with surefire-2.4.2

2008-03-20 Thread Brian E. Fox
- From: Jason Chaffee [mailto:[EMAIL PROTECTED] Sent: Thursday, March 20, 2008 1:17 PM To: Maven Users List Subject: RE: surefire and testng integration issues with surefire-2.4.2 I will look into creating something as soon as I have time to make sure it is well tested. -Original Message

Re: surefire and testng integration issues with surefire-2.4.2

2008-03-20 Thread Dan Fabulich
Jason Chaffee wrote: I did not run your project. Well, try it and get back to me. You can use that as a starting point for reproducing the effect you actually want. -Dan - To unsubscribe, e-mail: [EMAIL PROTECTED] For

Re: surefire and testng integration issues with surefire-2.4.2

2008-03-20 Thread Dan Fabulich
Dan Fabulich wrote: Jason Chaffee wrote: I did not run your project. Well, try it and get back to me. You can use that as a starting point for reproducing the effect you actually want. Oops, you can't, because the mailing list software stripped my attachment. You can get a copy here:

RE: surefire and testng integration issues with surefire-2.4.2

2008-03-20 Thread Jason Chaffee
the trouble. -Original Message- From: Brian E. Fox [mailto:[EMAIL PROTECTED] Sent: Thursday, March 20, 2008 10:30 AM To: Maven Users List Subject: RE: surefire and testng integration issues with surefire-2.4.2 In the meantime, perhaps a Jira would be good so we don't lose the time you

RE: surefire and testng integration issues with surefire-2.4.2

2008-03-20 Thread Brian E. Fox
: surefire and testng integration issues with surefire-2.4.2 I am simply glad that it got someone's attention and I feel that in no way was the tone of that email blasting anyone, it was informing the maven community of the perception that is developing around maven and ASF in the java community

RE: surefire and testng integration issues with surefire-2.4.2

2008-03-20 Thread Dan Fabulich
(without re-introducing a bunch of evil TestNG bugs from Surefire 2.3). http://jira.codehaus.org/browse/SUREFIRE-457 I've also attached my sample project there. -Dan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional

RE: surefire and testng integration issues with surefire-2.4.2

2008-03-20 Thread P'Simer, Dana (Matrix)
. There is no notification based on class unless the test methods for each class are included in separate tests. The default behavior for TestNG in the surefire plugin is to lump all the test methods from all the test classes into one test. That is why only one onStart is called. I have only been

RE: surefire and testng integration issues with surefire-2.4.2

2008-03-20 Thread Jason Chaffee
Message- From: P'Simer, Dana (Matrix) [mailto:Dana.P'[EMAIL PROTECTED] Sent: Thursday, March 20, 2008 11:03 AM To: Maven Users List; Maven Developers List Cc: [EMAIL PROTECTED] Subject: RE: surefire and testng integration issues with surefire-2.4.2 I think part of the disconnect might

Re: surefire and testng integration issues with surefire-2.4.2

2008-03-20 Thread Jason van Zyl
] Sent: Thursday, March 20, 2008 10:30 AM To: Maven Users List Subject: RE: surefire and testng integration issues with surefire-2.4.2 In the meantime, perhaps a Jira would be good so we don't lose the time you invested so far. FYI: We are working hard to stabilize the Maven 2.0.x branch

RE: surefire and testng integration issues with surefire-2.4.2

2008-03-20 Thread Jason Chaffee
Well said. I appreciate this kind of feedback. -Original Message- From: Jason van Zyl [mailto:[EMAIL PROTECTED] Sent: Thursday, March 20, 2008 12:10 PM To: Maven Users List Subject: Re: surefire and testng integration issues with surefire-2.4.2 On 20-Mar-08, at 10:47 AM, Jason Chaffee

RE: surefire and testng integration issues with surefire-2.4.2

2008-03-20 Thread Jason Chaffee
with venom. -Original Message- From: Jason van Zyl [mailto:[EMAIL PROTECTED] Sent: Thursday, March 20, 2008 12:10 PM To: Maven Users List Subject: Re: surefire and testng integration issues with surefire-2.4.2 On 20-Mar-08, at 10:47 AM, Jason Chaffee wrote: I am simply glad that it got

RE: surefire and testng integration issues with surefire-2.4.2

2008-03-20 Thread Brian E. Fox
- From: Jason Chaffee [mailto:[EMAIL PROTECTED] Sent: Thursday, March 20, 2008 6:40 PM To: Maven Users List Subject: RE: surefire and testng integration issues with surefire-2.4.2 Jason van Zyl, First, let me apologize for the tone of my emails and to anyone I offended. That was never my

RE: surefire and testng integration issues with surefire-2.4.2

2008-03-20 Thread Jason Chaffee
Users List Subject: RE: surefire and testng integration issues with surefire-2.4.2 Jason, The kinds of complaints you get at work are exactly what I'm (and I'm sure the rest of the team) interested in getting from the user list. Would you be willing to summarize the particular issues your team

Re: surefire and testng integration issues with surefire-2.4.2

2008-03-20 Thread Jason van Zyl
: Re: surefire and testng integration issues with surefire-2.4.2 On 20-Mar-08, at 10:47 AM, Jason Chaffee wrote: I am simply glad that it got someone's attention and I feel that in no way was the tone of that email blasting anyone, it was informing the maven community of the perception

Re: surefire and testng integration issues with surefire-2.4.2

2008-03-20 Thread mgainty
, 2008 7:28 PM Subject: Re: surefire and testng integration issues with surefire-2.4.2 On 20-Mar-08, at 3:39 PM, Jason Chaffee wrote: Jason van Zyl, First, let me apologize for the tone of my emails and to anyone I offended. I doubt you offended anyone. We're used to it. I sit

Re: surefire 2.4 + testng, changing TestSuite name

2008-02-08 Thread Erez Nahir
Thanks Dan, I have uploaded a fixed version of my patch, checking before casting to TestNGDirectoryTestSuite. With that fix, all unit tests and integration tests pass. I'm sorry I have missed this test failure earlier, should not happen... Erez. On Feb 8, 2008 4:14 AM, Dan Fabulich [EMAIL

Re: surefire 2.4 + testng, changing TestSuite name

2008-02-07 Thread Erez Nahir
Created http://jira.codehaus.org/browse/SUREFIRE-452 and provided fix for it as attachment. Can someone from surefire team clarify when is the next minor release of surefire-plugin planned? Thanks, Erez. On Feb 6, 2008 11:37 PM, Erez Nahir [EMAIL PROTECTED] wrote: Hi, I'm looking for a way

Re: surefire 2.4 + testng, changing TestSuite name

2008-02-07 Thread Dan Fabulich
Erez Nahir wrote: Created http://jira.codehaus.org/browse/SUREFIRE-452 and provided fix for it as attachment. I saw your bug; it seems to fail some of the integration tests, so I'm not applying it right now. Can someone from surefire team clarify when is the next minor release of

surefire 2.4 + testng, changing TestSuite name

2008-02-06 Thread Erez Nahir
Hi, I'm looking for a way to change the default suite name generated by surefire from TestSuite to something else. Using this configuration: plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-surefire-plugin/artifactId

Re: Getting useful logging from surefire and testng

2008-01-02 Thread Andrew Robinson
It is in src/test/resources. It is getting picked up since the logging is changing when I change values in it. Either way, my logs are being logged to the System.out but not appearing it the system out element in the TEST-TestSuite.xml, which I find odd. I would try it without forking to see if

Getting useful logging from surefire and testng

2008-01-01 Thread Andrew Robinson
I am having problems getting useful information from surefire logs. Plugin declaration: artifactIdmaven-surefire-plugin/artifactId version2.4-SNAPSHOT/version configuration forkModeonce/forkMode parallelfalse/parallel

Re: Getting useful logging from surefire and testng

2008-01-01 Thread Jeff MAURY
Andrew, where is you your test-log4j.xml file located ? Because if you use log4j.configuration, I think it will use the current directory and not try to load the file from the classpath. Jeff On Jan 2, 2008 3:38 AM, Andrew Robinson [EMAIL PROTECTED] wrote: I am having problems getting useful

Re: Surefire and TestNG

2006-12-01 Thread Jason van Zyl
On 14 Nov 06, at 10:11 AM 14 Nov 06, Christopher Maki wrote: Hi I seem to be having a problem with TestNG 5.1 and the Surefire plugin (either 2.3-SNAPSHOT or 2.2). When using Surefire 2.3- SNAPSHOT I get this error when I try to run my tests: Kenney is working another release of the

Re: Surefire and TestNG

2006-11-30 Thread Andreas G Guther
something to do with the way I was using Surefire and TestNG. The Surefire plugin page indicates you can use a testng.xml file so I thought it should work. I was hoping to find someone that uses TestNG with Maven 2 and find out how they got the testng.xml file to work with their project

Re: Surefire and TestNG

2006-11-14 Thread Christopher Maki
Hi Wayne Thanks for getting back to me. I didn't think this was a bug. I thought it had something to do with the way I was using Surefire and TestNG. The Surefire plugin page indicates you can use a testng.xml file so I thought it should work. I was hoping to find someone that uses TestNG

Surefire and TestNG

2006-11-14 Thread Christopher Maki
Hi I seem to be having a problem with TestNG 5.1 and the Surefire plugin (either 2.3-SNAPSHOT or 2.2). When using Surefire 2.3-SNAPSHOT I get this error when I try to run my tests: --- T E S T S

Re: Surefire and TestNG

2006-11-14 Thread Wayne Fay
Bugs should be posted in JIRA, not the Users list. Wayne On 11/14/06, Christopher Maki [EMAIL PROTECTED] wrote: Hi I seem to be having a problem with TestNG 5.1 and the Surefire plugin (either 2.3-SNAPSHOT or 2.2). When using Surefire 2.3-SNAPSHOT I get this error when I try to run my tests:

Re: [m2] Surefire w/TestNG

2006-01-06 Thread Srepfler Srgjan
I have tried to put in touch a person from this list (Kaare Nilsen) that had made a 80% functional test-ng prototype plugin with Cedric Beust of TestNG and they exchanged these mails, as they were only between the four of us perhaps you'd like to follow up on it: Cedric: Hi Srepfler (and

[m2] Surefire w/TestNG

2006-01-05 Thread Jason Dillon
Any status on support for TestNG from Surefire w/Maven2? --jason This email and any attachment(s) thereto, are intended for the use of the addressee(s) named herein and may contain legally privileged and or confidential information under applicable law. If you are not the intended recipient

Re: [m2] Surefire w/TestNG

2006-01-05 Thread Brett Porter
Some talk. http://jira.codehaus.org/browse/MSUREFIRE-23 On 1/6/06, Jason Dillon [EMAIL PROTECTED] wrote: Any status on support for TestNG from Surefire w/Maven2? --jason This email and any attachment(s) thereto, are intended for the use of the addressee(s) named herein and may contain