Re: Surefire (with JUnit and TestNG) with the Release plugin and failures/errors in JUnit tests

2012-11-08 Thread Larry Shatzer, Jr.
It was named ending in IT, but the only way I got it to run was to run all
of them with a mvn install. I wanted to just run one by hand.

-- Larry


On Thu, Nov 8, 2012 at 2:57 PM, Kristian Rosenvold <
kristian.rosenv...@zenior.no> wrote:

> Test name must probably end with IT
>
> Kristian
>
> Den 8. nov. 2012 kl. 22:51 skrev "Larry Shatzer, Jr." :
>
> > Created: http://jira.codehaus.org/browse/SUREFIRE-926
> >
> > As mentioned in the bug, I'm trying to create integration tests to
> exhibit
> > this behavior, but having a few problems. Also, is there an easy way to
> run
> > just one, or two integration tests by hand? I tried -Dit.test=MyNewTest
> but
> > it didn't run anything...
> >
> > Thanks
> >
> > -- Larry
> >
> > On Thu, Nov 8, 2012 at 12:11 AM, Kristian Rosenvold <
> > kristian.rosenv...@gmail.com> wrote:
> >
> >> This seems to be a bug; would you mind filing an issue
> >> http://jira.codehaus.org/browse/SUREFIRE ?
> >>
> >> Kristian
> >>
> >>
> >> 2012/11/8 Larry Shatzer, Jr. :
> >>> I'm using a fairly recent feature of Surefire where you can specify
> >>> multiple providers (
> >>
> http://maven.apache.org/plugins/maven-surefire-plugin/examples/providers.html
> >>> )
> >>>
> >>> I'm using both TestNG and Junit. Here is the secion of the pom in
> >> question:
> >>>
> >>>  
> >>>org.apache.maven.plugins
> >>>maven-surefire-plugin
> >>>2.12.4
> >>>
> >>>  
> >>>org.apache.maven.surefire
> >>>surefire-testng
> >>>2.12.4
> >>>  
> >>>  
> >>>org.apache.maven.surefire
> >>>surefire-junit4
> >>>2.12.4
> >>>  
> >>>
> >>>  
> >>>
> >>> When I go to run release:prepare where I have a JUnit test either error
> >> or
> >>> fail, it will continue like everything is fine, and allow the release
> >> with
> >>> test failures or errors!
> >>>
> >>> Here is the output from running release:prepare
> >>>
> >>> http://pastebin.com/Z94egP3E
> >>>
> >>> When I then have a TestNG failure, I get what I expect (a failure):
> >>>
> >>> http://pastebin.com/yJufszdN
> >>>
> >>> I'm not sure if this is a bug with the Release plugin, Surefire, or can
> >> be
> >>> helped with any extra configuration of either the Release plugin or
> >>> Surefire...
> >>>
> >>> Thanks!
> >>>
> >>> -- Larry
> >>
> >> -
> >> To unsubscribe, e-mail: dev-unsubscr...@maven.apache.org
> >> For additional commands, e-mail: dev-h...@maven.apache.org
> >>
> >>
>
> -
> To unsubscribe, e-mail: dev-unsubscr...@maven.apache.org
> For additional commands, e-mail: dev-h...@maven.apache.org
>
>


Re: Surefire (with JUnit and TestNG) with the Release plugin and failures/errors in JUnit tests

2012-11-08 Thread Kristian Rosenvold
Test name must probably end with IT

Kristian

Den 8. nov. 2012 kl. 22:51 skrev "Larry Shatzer, Jr." :

> Created: http://jira.codehaus.org/browse/SUREFIRE-926
>
> As mentioned in the bug, I'm trying to create integration tests to exhibit
> this behavior, but having a few problems. Also, is there an easy way to run
> just one, or two integration tests by hand? I tried -Dit.test=MyNewTest but
> it didn't run anything...
>
> Thanks
>
> -- Larry
>
> On Thu, Nov 8, 2012 at 12:11 AM, Kristian Rosenvold <
> kristian.rosenv...@gmail.com> wrote:
>
>> This seems to be a bug; would you mind filing an issue
>> http://jira.codehaus.org/browse/SUREFIRE ?
>>
>> Kristian
>>
>>
>> 2012/11/8 Larry Shatzer, Jr. :
>>> I'm using a fairly recent feature of Surefire where you can specify
>>> multiple providers (
>> http://maven.apache.org/plugins/maven-surefire-plugin/examples/providers.html
>>> )
>>>
>>> I'm using both TestNG and Junit. Here is the secion of the pom in
>> question:
>>>
>>>  
>>>org.apache.maven.plugins
>>>maven-surefire-plugin
>>>2.12.4
>>>
>>>  
>>>org.apache.maven.surefire
>>>surefire-testng
>>>2.12.4
>>>  
>>>  
>>>org.apache.maven.surefire
>>>surefire-junit4
>>>2.12.4
>>>  
>>>
>>>  
>>>
>>> When I go to run release:prepare where I have a JUnit test either error
>> or
>>> fail, it will continue like everything is fine, and allow the release
>> with
>>> test failures or errors!
>>>
>>> Here is the output from running release:prepare
>>>
>>> http://pastebin.com/Z94egP3E
>>>
>>> When I then have a TestNG failure, I get what I expect (a failure):
>>>
>>> http://pastebin.com/yJufszdN
>>>
>>> I'm not sure if this is a bug with the Release plugin, Surefire, or can
>> be
>>> helped with any extra configuration of either the Release plugin or
>>> Surefire...
>>>
>>> Thanks!
>>>
>>> -- Larry
>>
>> -
>> To unsubscribe, e-mail: dev-unsubscr...@maven.apache.org
>> For additional commands, e-mail: dev-h...@maven.apache.org
>>
>>

-
To unsubscribe, e-mail: dev-unsubscr...@maven.apache.org
For additional commands, e-mail: dev-h...@maven.apache.org



Re: Surefire (with JUnit and TestNG) with the Release plugin and failures/errors in JUnit tests

2012-11-08 Thread Larry Shatzer, Jr.
Created: http://jira.codehaus.org/browse/SUREFIRE-926

As mentioned in the bug, I'm trying to create integration tests to exhibit
this behavior, but having a few problems. Also, is there an easy way to run
just one, or two integration tests by hand? I tried -Dit.test=MyNewTest but
it didn't run anything...

Thanks

-- Larry

On Thu, Nov 8, 2012 at 12:11 AM, Kristian Rosenvold <
kristian.rosenv...@gmail.com> wrote:

> This seems to be a bug; would you mind filing an issue
> http://jira.codehaus.org/browse/SUREFIRE ?
>
> Kristian
>
>
> 2012/11/8 Larry Shatzer, Jr. :
> > I'm using a fairly recent feature of Surefire where you can specify
> > multiple providers (
> >
> http://maven.apache.org/plugins/maven-surefire-plugin/examples/providers.html
> > )
> >
> > I'm using both TestNG and Junit. Here is the secion of the pom in
> question:
> >
> >   
> > org.apache.maven.plugins
> > maven-surefire-plugin
> > 2.12.4
> > 
> >   
> > org.apache.maven.surefire
> > surefire-testng
> > 2.12.4
> >   
> >   
> > org.apache.maven.surefire
> > surefire-junit4
> > 2.12.4
> >   
> > 
> >   
> >
> > When I go to run release:prepare where I have a JUnit test either error
> or
> > fail, it will continue like everything is fine, and allow the release
> with
> > test failures or errors!
> >
> > Here is the output from running release:prepare
> >
> > http://pastebin.com/Z94egP3E
> >
> > When I then have a TestNG failure, I get what I expect (a failure):
> >
> > http://pastebin.com/yJufszdN
> >
> > I'm not sure if this is a bug with the Release plugin, Surefire, or can
> be
> > helped with any extra configuration of either the Release plugin or
> > Surefire...
> >
> > Thanks!
> >
> > -- Larry
>
> -
> To unsubscribe, e-mail: dev-unsubscr...@maven.apache.org
> For additional commands, e-mail: dev-h...@maven.apache.org
>
>


Re: Surefire (with JUnit and TestNG) with the Release plugin and failures/errors in JUnit tests

2012-11-07 Thread Kristian Rosenvold
This seems to be a bug; would you mind filing an issue
http://jira.codehaus.org/browse/SUREFIRE ?

Kristian


2012/11/8 Larry Shatzer, Jr. :
> I'm using a fairly recent feature of Surefire where you can specify
> multiple providers (
> http://maven.apache.org/plugins/maven-surefire-plugin/examples/providers.html
> )
>
> I'm using both TestNG and Junit. Here is the secion of the pom in question:
>
>   
> org.apache.maven.plugins
> maven-surefire-plugin
> 2.12.4
> 
>   
> org.apache.maven.surefire
> surefire-testng
> 2.12.4
>   
>   
> org.apache.maven.surefire
> surefire-junit4
> 2.12.4
>   
> 
>   
>
> When I go to run release:prepare where I have a JUnit test either error or
> fail, it will continue like everything is fine, and allow the release with
> test failures or errors!
>
> Here is the output from running release:prepare
>
> http://pastebin.com/Z94egP3E
>
> When I then have a TestNG failure, I get what I expect (a failure):
>
> http://pastebin.com/yJufszdN
>
> I'm not sure if this is a bug with the Release plugin, Surefire, or can be
> helped with any extra configuration of either the Release plugin or
> Surefire...
>
> Thanks!
>
> -- Larry

-
To unsubscribe, e-mail: dev-unsubscr...@maven.apache.org
For additional commands, e-mail: dev-h...@maven.apache.org



Surefire (with JUnit and TestNG) with the Release plugin and failures/errors in JUnit tests

2012-11-07 Thread Larry Shatzer, Jr.
I'm using a fairly recent feature of Surefire where you can specify
multiple providers (
http://maven.apache.org/plugins/maven-surefire-plugin/examples/providers.html
)

I'm using both TestNG and Junit. Here is the secion of the pom in question:

  
org.apache.maven.plugins
maven-surefire-plugin
2.12.4

  
org.apache.maven.surefire
surefire-testng
2.12.4
  
  
org.apache.maven.surefire
surefire-junit4
2.12.4
  

  

When I go to run release:prepare where I have a JUnit test either error or
fail, it will continue like everything is fine, and allow the release with
test failures or errors!

Here is the output from running release:prepare

http://pastebin.com/Z94egP3E

When I then have a TestNG failure, I get what I expect (a failure):

http://pastebin.com/yJufszdN

I'm not sure if this is a bug with the Release plugin, Surefire, or can be
helped with any extra configuration of either the Release plugin or
Surefire...

Thanks!

-- Larry