Re: Is Maven / JUnit 4.x broken (annotations)

2008-12-15 Thread Wayne Fay
> I think you don't get the point. By detection we mean that given a base > directory, Surefire will find all test classes beneath it, w/o us having to > adhere to any naming convention. Surefire can't do this. I agree with one small edit -- Surefire can't do this *today*. If this is important eno

Re: Is Maven / JUnit 4.x broken (annotations)

2008-12-15 Thread Peter Niederwieser
John Stoneham wrote: > > To be clearer - surefire will certainly detect JUnit 4 tests > I think you don't get the point. By detection we mean that given a base directory, Surefire will find all test classes beneath it, w/o us having to adhere to any naming convention. Surefire can't do this.

Re: Is Maven / JUnit 4.x broken (annotations)

2008-12-15 Thread John Stoneham
On Mon, Dec 15, 2008 at 11:12 AM, Peter Niederwieser wrote: >> What you are saying is that the surefire plugin is not JUnit4 enabled? > > Unfortunately, Surefire isn't capable of detecting JUnit 4 tests by itself. > You always have to adhere to some naming convention. To be clearer - surefire wil

RE: Is Maven / JUnit 4.x broken (annotations)

2008-12-15 Thread Peter Niederwieser
CheapLisa wrote: > > What you are saying is that the surefire plugin is not JUnit4 enabled? > Unfortunately, Surefire isn't capable of detecting JUnit 4 tests by itself. You always have to adhere to some naming convention. Cheers, Peter -- View this message in context: http://www.nabble.com

Re: Is Maven / JUnit 4.x broken (annotations)

2008-12-13 Thread Josh Suereth
not necessarily endorse content contained within > > this transmission. > > > > > > > > > >> Date: Wed, 10 Dec 2008 12:44:45 -0800 > >> From: l...@purpleblade.net > >> To: users@maven.apache.org > >> Subject: Re: Is Maven / JUnit

RE: Is Maven / JUnit 4.x broken (annotations)

2008-12-12 Thread CheapLisa
t; Sender does not endorse distribution to any party other than intended > recipient. Sender does not necessarily endorse content contained within > this transmission. > > > > >> Date: Wed, 10 Dec 2008 12:44:45 -0800 >> From: l...@purpleblade.net >> To: user

Re: Is Maven / JUnit 4.x broken (annotations)

2008-12-12 Thread CheapLisa
lity note >>> > Everything in this e-mail and any attachments relates to the official >>> > business of Sender. This transmission is of a confidential nature and >>> > Sender does not endorse distribution to any party other than intended >>> > recipien

Re: Is Maven / JUnit 4.x broken (annotations)

2008-12-11 Thread Josh Suereth
f Sender. This transmission is of a confidential nature and >> > Sender does not endorse distribution to any party other than intended >> > recipient. Sender does not necessarily endorse content contained within >> > this transmission. >> > >> > >> >

Re: Is Maven / JUnit 4.x broken (annotations)

2008-12-11 Thread Josh Suereth
attachments relates to the official > > business of Sender. This transmission is of a confidential nature and > > Sender does not endorse distribution to any party other than intended > > recipient. Sender does not necessarily endorse content contained within > > this t

RE: Is Maven / JUnit 4.x broken (annotations)

2008-12-11 Thread CheapLisa
smission. > > > > >> Date: Wed, 10 Dec 2008 12:44:45 -0800 >> From: l...@purpleblade.net >> To: users@maven.apache.org >> Subject: Re: Is Maven / JUnit 4.x broken (annotations) >> >> >> I looked at my effective pom. I have a dependency there on

RE: Is Maven / JUnit 4.x broken (annotations)

2008-12-11 Thread Anders Hammar
w > would happen. But I'm not sure that was a Maven problem. > > Justin > > > > From: Anders Hammar [mailto:and...@hammar.net] > Sent: Wed 12/10/2008 6:31 AM > To: users@maven.apache.org > Subject: Re: Is Maven / JUnit 4.x brok

Re: Is Maven / JUnit 4.x broken (annotations)

2008-12-11 Thread Anders Hammar
Eclipse is a major IDE. Please google! If you want to use the default surefire plugin configuration you MUST name your test class according to the default configuration for the surefire plugin. Please see link provided earlier. If not, you need to configure the surefire plugin yourself (see link

Re: Is Maven / JUnit 4.x broken (annotations)

2008-12-10 Thread Jörg Schaible
CheapLisa wrote: > > I'm not sure I understand. I don't have the surefire plugin in any of my > pom's. Well, if you're not pleased with its default configuration, then it's time to configure it yourself. - Jörg - To unsubscr

RE: Is Maven / JUnit 4.x broken (annotations)

2008-12-10 Thread Martin Gainty
not necessarily endorse content contained within this transmission. > Date: Wed, 10 Dec 2008 12:44:45 -0800 > From: [EMAIL PROTECTED] > To: users@maven.apache.org > Subject: Re: Is Maven / JUnit 4.x broken (annotations) > > > I looked at my effective pom. I have a depe

Re: Is Maven / JUnit 4.x broken (annotations)

2008-12-10 Thread CheapLisa
I can get my tests to execute if the class name ends in Test.java and only if the method begins with "testSomeMethod". otherwise the test will not run. I should be able to name the class anything I want (not include "Test"), extend TestCase and name the method anything I want as long as there is

Re: Is Maven / JUnit 4.x broken (annotations)

2008-12-10 Thread CheapLisa
What is the name of your test? L Anders Hammar wrote: > > Hi, > > Just tried it and it works for me, both in Eclipse and from command > prompt. > How are you executing? > > /Anders > > > CheapLisa wrote: >> >> I have JUnit 4.5 as a dependency in my maven pom >> and I have imported annotat

Re: Is Maven / JUnit 4.x broken (annotations)

2008-12-10 Thread CheapLisa
What's Eclipse? Also JUnit4 annotations have no restrictions on file nameing if annotations are used. I simply want to use the JUnit4 features and not name my files the JUnit 3.x way. L Anders Hammar wrote: > > Or "*Test.java", or "*TestCase.java". That's the names surefire is > configured

Re: Is Maven / JUnit 4.x broken (annotations)

2008-12-10 Thread CheapLisa
I looked at my effective pom. I have a dependency there on JUnit 4.5. The only reference to surefire was maven-surefire-reports-plugin in the reporting section. how do I know that surefire is using my dependency of JUnit 4.5? Is maven bundled with another version of JUnit and using an earlier v

Re: Is Maven / JUnit 4.x broken (annotations)

2008-12-10 Thread CheapLisa
I'm not sure I understand. I don't have the surefire plugin in any of my pom's. It's in the superpom so I can use it from there. I have a multi-module project. L Jörg Schaible-2 wrote: > > CheapLisa wrote at Mittwoch, 10. Dezember 2008 17:16: > >> >> I should not have to name it anything

Re: Is Maven / JUnit 4.x broken (annotations)

2008-12-10 Thread Jörg Schaible
CheapLisa wrote at Mittwoch, 10. Dezember 2008 17:16: > > I should not have to name it anything but put an annotation there like > @Test. This is OK with JUnit 4.x. Surefire cannot know which JUnit version you're going to use. So simply configure the includes of the surefire plugin to use any ja

Re: Is Maven / JUnit 4.x broken (annotations)

2008-12-10 Thread John Stoneham
>> On Wed, Dec 10, 2008 at 12:16 AM, CheapLisa <[EMAIL PROTECTED]> wrote: >>> I have JUnit 4.5 as a dependency in my maven pom >>> and I have imported annotations into my test case but >>> it is not recognizing the @Test and @Ignore annotations. >>> >>> I still have to preface the method name with

Re: Is Maven / JUnit 4.x broken (annotations)

2008-12-10 Thread CheapLisa
I should not have to name it anything but put an annotation there like @Test. This is OK with JUnit 4.x. Josh Suereth wrote: > > I believe the name of the class still matters. Try calling it > "Test*.java" > > On Wed, Dec 10, 2008 at 12:16 AM, CheapLisa <[EMAIL PROTECTED]> wrote: > >> >>

AW: Is Maven / JUnit 4.x broken (annotations)

2008-12-10 Thread Rouvinez, Jean-Claude
achricht- Von: Anders Hammar [mailto:[EMAIL PROTECTED] Gesendet: Mittwoch, 10. Dezember 2008 14:06 An: users@maven.apache.org Betreff: Re: Is Maven / JUnit 4.x broken (annotations) Or "*Test.java", or "*TestCase.java". That's the names surefire is configured for by defau

Re: Is Maven / JUnit 4.x broken (annotations)

2008-12-10 Thread Anders Hammar
Or "*Test.java", or "*TestCase.java". That's the names surefire is configured for by default. (http://maven.apache.org/plugins/maven-surefire-plugin/test-mojo.html#includes) I would suggest trying it in Eclipse first. If it works there, then there is some configuration issue for Maven. /Anders

Re: Is Maven / JUnit 4.x broken (annotations)

2008-12-10 Thread Josh Suereth
I believe the name of the class still matters. Try calling it "Test*.java" On Wed, Dec 10, 2008 at 12:16 AM, CheapLisa <[EMAIL PROTECTED]> wrote: > > I have JUnit 4.5 as a dependency in my maven pom > and I have imported annotations into my test case but > it is not recognizing the @Test and @I

RE: Is Maven / JUnit 4.x broken (annotations)

2008-12-10 Thread Edelson, Justin
ECTED] Sent: Wed 12/10/2008 6:31 AM To: users@maven.apache.org Subject: Re: Is Maven / JUnit 4.x broken (annotations) Hi, Just tried it and it works for me, both in Eclipse and from command prompt. How are you executing? /Anders CheapLisa wrote: > > I have JUnit 4.5 as a dependency in m

Re: Is Maven / JUnit 4.x broken (annotations)

2008-12-10 Thread Anders Hammar
Hi, Just tried it and it works for me, both in Eclipse and from command prompt. How are you executing? /Anders CheapLisa wrote: > > I have JUnit 4.5 as a dependency in my maven pom > and I have imported annotations into my test case but > it is not recognizing the @Test and @Ignore annotation

Is Maven / JUnit 4.x broken (annotations)

2008-12-09 Thread CheapLisa
I have JUnit 4.5 as a dependency in my maven pom and I have imported annotations into my test case but it is not recognizing the @Test and @Ignore annotations. I still have to preface the method name with "test" and the @Ignore tests get executed. Is something broken? What do I need to do to ge