You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by bkbonner <br...@paraware.com> on 2006/04/20 19:00:41 UTC
Surefire Report does not run when test throws an exception
One of the test cases in my project blows an exception. As a result the
surefire-report plugin doesn't seem to run. 'site' goal does not complete
and consequently.
Is there a parameter I can set in the plugin that will at least allow the
report to run so I can see what the error was? Or is this failing by
design?
Here's my error:
[surefire] Running com.okibering.dataextract.DataExtractServiceTest
[surefire] Tests run: 2, Failures: 0, Errors: 1, Time elapsed: 0.312 sec
<<<<<<<
< FAILURE !!
Results :
[surefire] Tests run: 2, Failures: 0, Errors: 1
[INFO]
-------------------------------------------------------------------------
---
[ERROR] BUILD ERROR
[INFO]
-------------------------------------------------------------------------
---
[INFO] There are some test failure.
[INFO]
-------------------------------------------------------------------------
Also: http://maven.apache.org/plugins/maven-surefire-report-plugin and
http://mojo.codehaus.org/surefire-report-maven-plugin which seems to
redirect to the prior URL results in a Page Not Found error msg.
Thanks for any input.
Brian
--
View this message in context: http://www.nabble.com/Surefire-Report-does-not-run-when-test-throws-an-exception-t1481759.html#a4011409
Sent from the Maven - Users forum at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: schema for settings.xml
Posted by Alexandre Poitras <al...@gmail.com>.
Really, I don't know. Actually, it was also confusing time so I wasn't
sure it was the correct URL. A Maven developer would be the best
person to answer I think. But for the moment, I guess it is correct.
On 4/21/06, Mark Hobson <ma...@gmail.com> wrote:
> Thanks, I was looking for this the other day. Maybe worth adding to:
>
> http://maven.apache.org/ref/current/maven-settings/settings.html
>
> I see settings.xml uses the same namespace as pom.xml - is this right?
>
> Mark
>
> On 21/04/06, Alexandre Poitras <al...@gmail.com> wrote:
> > I think this is the correct url :
> > http://maven.apache.org/xsd/settings-1.0.0.xsd
> >
> > On 4/20/06, Janos Mucsi <mu...@yahoo.com> wrote:
> > > Hi
> > > I got settings.xml working. I am wondering where the
> > > xsd file is? Does anybody have a settings.xml with
> > > headers?
> > > Thanks.
> > >
> > > Janos
> > >
> > > __________________________________________________
> > > Do You Yahoo!?
> > > Tired of spam? Yahoo! Mail has the best spam protection around
> > > http://mail.yahoo.com
> > >
> > > ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> > > For additional commands, e-mail: users-help@maven.apache.org
> > >
> > >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> > For additional commands, e-mail: users-help@maven.apache.org
> >
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: schema for settings.xml
Posted by Mark Hobson <ma...@gmail.com>.
Thanks, I was looking for this the other day. Maybe worth adding to:
http://maven.apache.org/ref/current/maven-settings/settings.html
I see settings.xml uses the same namespace as pom.xml - is this right?
Mark
On 21/04/06, Alexandre Poitras <al...@gmail.com> wrote:
> I think this is the correct url :
> http://maven.apache.org/xsd/settings-1.0.0.xsd
>
> On 4/20/06, Janos Mucsi <mu...@yahoo.com> wrote:
> > Hi
> > I got settings.xml working. I am wondering where the
> > xsd file is? Does anybody have a settings.xml with
> > headers?
> > Thanks.
> >
> > Janos
> >
> > __________________________________________________
> > Do You Yahoo!?
> > Tired of spam? Yahoo! Mail has the best spam protection around
> > http://mail.yahoo.com
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> > For additional commands, e-mail: users-help@maven.apache.org
> >
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: schema for settings.xml
Posted by Alexandre Poitras <al...@gmail.com>.
I think this is the correct url :
http://maven.apache.org/xsd/settings-1.0.0.xsd
On 4/20/06, Janos Mucsi <mu...@yahoo.com> wrote:
> Hi
> I got settings.xml working. I am wondering where the
> xsd file is? Does anybody have a settings.xml with
> headers?
> Thanks.
>
> Janos
>
> __________________________________________________
> Do You Yahoo!?
> Tired of spam? Yahoo! Mail has the best spam protection around
> http://mail.yahoo.com
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: Surefire Report does not run when test throws an exception
Posted by Alexandre Poitras <al...@gmail.com>.
And surefire 2.0 came out today so be sure to answer "yes" if Maven
asks you to upgrade the plugin :)
On 4/20/06, bkbonner <br...@paraware.com> wrote:
>
> Thorsten, thanks for the help. I'm sure this will do the trick.
>
> I just found this bug http://jira.codehaus.org/browse/MSUREFIREREP-2 in
> Jira. It figures it was the second to the last one for me to find.
> --
> View this message in context: http://www.nabble.com/Surefire-Report-does-not-run-when-test-throws-an-exception-t1481759.html#a4012254
> Sent from the Maven - Users forum at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
schema for settings.xml
Posted by Janos Mucsi <mu...@yahoo.com>.
Hi
I got settings.xml working. I am wondering where the
xsd file is? Does anybody have a settings.xml with
headers?
Thanks.
Janos
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: Surefire Report does not run when test throws an exception
Posted by bkbonner <br...@paraware.com>.
Thorsten, thanks for the help. I'm sure this will do the trick.
I just found this bug http://jira.codehaus.org/browse/MSUREFIREREP-2 in
Jira. It figures it was the second to the last one for me to find.
--
View this message in context: http://www.nabble.com/Surefire-Report-does-not-run-when-test-throws-an-exception-t1481759.html#a4012254
Sent from the Maven - Users forum at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: Surefire Report does not run when test throws an exception
Posted by Thorsten Heit <th...@xtramind.com>.
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hi Brian,
> One of the test cases in my project blows an exception. As a result the
> surefire-report plugin doesn't seem to run. 'site' goal does not complete
> and consequently.
>
> Is there a parameter I can set in the plugin that will at least allow the
> report to run so I can see what the error was? Or is this failing by
> design?
<build>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<configuration>
<testFailureIgnore>true</testFailureIgnore>
</configuration>
</plugin>
...
</build>
HTH
Thorsten
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2.2 (MingW32)
iD8DBQFER8KHQvObkgCcDe0RAkRlAKDXgE3isNbEHRdtorRWCXNNR30/sgCgmnmH
41olYFZyh6dyC+23SD0dM8k=
=/Q68
-----END PGP SIGNATURE-----
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org