You are viewing a plain text version of this content. The canonical link for it is here.
Posted to nmaven-dev@incubator.apache.org by Jan Stevens Ancajas <ja...@exist.com> on 2008/08/12 12:08:45 UTC
Improve unit testing result message in the console
Hi,
I want to add the statistics for Nunit testing result in the console
similar and change the error message from 'Build Error' to 'Buid Failure'
similar to the output of the surefire plugin in maven [1].
NMAVEN-190 <http://jira.codehaus.org/browse/NMAVEN-190>
Thanks,
Jan
--------------------
[1]
[INFO] [test:test]
Aug 12, 2008 7:27:54 PM
org.apache.maven.dotnet.registry.ConnectionsRepository lazyLoad
INFO: NMAVEN-080-001: Adding data access object: Class Name =
org.apache.maven.dotnet.dao.impl.ProjectDaoImpl
Aug 12, 2008 7:27:54 PM
org.apache.maven.dotnet.registry.ConnectionsRepository lazyLoad
INFO: NMAVEN-080-004: Connection Start Up: Time = 78
Aug 12, 2008 7:27:54 PM info.aduna.lang.service.ServiceRegistry <init>
INFO: Registered service class
org.openrdf.query.parser.serql.SeRQLParserFactory
Aug 12, 2008 7:27:54 PM info.aduna.lang.service.ServiceRegistry <init>
INFO: Registered service class
org.openrdf.query.parser.sparql.SPARQLParserFactory
NMAVEN-040-003: Error Log not set: Will not output error logs
NUnit version 2.4.7
Copyright (C) 2002-2007 Charlie Poole.
Copyright (C) 2002-2004 James W. Newkirk, Michael C. Two, Alexei A.
Vorontsov.
Copyright (C) 2000-2002 Philip Craig.
All Rights Reserved.
Runtime Environment -
OS Version: Microsoft Windows NT 5.1.2600 Service Pack 2
CLR Version: 2.0.50727.1433 ( Net 2.0.50727.1433 )
Tests run: 1, Failures: 1, Not run: 0, Time: 0.047 seconds
Test Case Failures:
1) TestNUnit.MyAppTest.SimpleAcceptedTest :
at TestNUnit.MyAppTest.SimpleAcceptedTest()
NMAVEN-040-000: Executed command: Commandline = nunit-console
C:\projects\NMaven.Jan\target/test-assemblies\NMaven.Jan-test.dll
/xml:C:\projects\NMave
n.Jan\target/nunit-reports\TEST-NMaven.Jan-1.0-SNAPSHOT.xml
/output:C:\projects\NMaven.Jan\target/nunit-reports\TEST-NMaven.Jan-1.0-SNAPSHOT-RESULTS.t
xt
/err:C:\projects\NMaven.Jan\target/nunit-reports\TEST-NMaven.Jan-1.0-SNAPSHOT-ERROR.txt
/labels, Result = 1
[INFO]
------------------------------------------------------------------------
[ERROR] BUILD FAILURE
[INFO]
------------------------------------------------------------------------
[INFO] NMAVEN-1100-007: There are test failures.
Re: Improve unit testing result message in the console
Posted by Shane Isbell <sh...@gmail.com>.
Looks good to me.
Shane
On Tue, Aug 12, 2008 at 8:12 AM, Jan Stevens Ancajas <ja...@exist.com>wrote:
> Hit the send button too early.. thoughts / suggestions on this one ?
> Thanks.
>
> On Tue, Aug 12, 2008 at 8:08 PM, Jan Stevens Ancajas <jancajas@exist.com
> >wrote:
>
> > Hi,
> >
> >
> > I want to add the statistics for Nunit testing result in the console
> > similar and change the error message from 'Build Error' to 'Buid Failure'
> > similar to the output of the surefire plugin in maven [1].
> >
> > NMAVEN-190 <http://jira.codehaus.org/browse/NMAVEN-190>
> >
> >
> > Thanks,
> > Jan
> >
> >
> > --------------------
> > [1]
> >
> > [INFO] [test:test]
> > Aug 12, 2008 7:27:54 PM
> > org.apache.maven.dotnet.registry.ConnectionsRepository lazyLoad
> > INFO: NMAVEN-080-001: Adding data access object: Class Name =
> > org.apache.maven.dotnet.dao.impl.ProjectDaoImpl
> > Aug 12, 2008 7:27:54 PM
> > org.apache.maven.dotnet.registry.ConnectionsRepository lazyLoad
> > INFO: NMAVEN-080-004: Connection Start Up: Time = 78
> > Aug 12, 2008 7:27:54 PM info.aduna.lang.service.ServiceRegistry <init>
> > INFO: Registered service class
> > org.openrdf.query.parser.serql.SeRQLParserFactory
> > Aug 12, 2008 7:27:54 PM info.aduna.lang.service.ServiceRegistry <init>
> > INFO: Registered service class
> > org.openrdf.query.parser.sparql.SPARQLParserFactory
> > NMAVEN-040-003: Error Log not set: Will not output error logs
> >
> > NUnit version 2.4.7
> > Copyright (C) 2002-2007 Charlie Poole.
> > Copyright (C) 2002-2004 James W. Newkirk, Michael C. Two, Alexei A.
> > Vorontsov.
> > Copyright (C) 2000-2002 Philip Craig.
> > All Rights Reserved.
> >
> > Runtime Environment -
> > OS Version: Microsoft Windows NT 5.1.2600 Service Pack 2
> > CLR Version: 2.0.50727.1433 ( Net 2.0.50727.1433 )
> >
> >
> > Tests run: 1, Failures: 1, Not run: 0, Time: 0.047 seconds
> >
> > Test Case Failures:
> > 1) TestNUnit.MyAppTest.SimpleAcceptedTest :
> > at TestNUnit.MyAppTest.SimpleAcceptedTest()
> >
> >
> >
> >
> > NMAVEN-040-000: Executed command: Commandline = nunit-console
> > C:\projects\NMaven.Jan\target/test-assemblies\NMaven.Jan-test.dll
> > /xml:C:\projects\NMave
> > n.Jan\target/nunit-reports\TEST-NMaven.Jan-1.0-SNAPSHOT.xml
> >
> /output:C:\projects\NMaven.Jan\target/nunit-reports\TEST-NMaven.Jan-1.0-SNAPSHOT-RESULTS.t
> > xt
> >
> /err:C:\projects\NMaven.Jan\target/nunit-reports\TEST-NMaven.Jan-1.0-SNAPSHOT-ERROR.txt
> > /labels, Result = 1
> > [INFO]
> > ------------------------------------------------------------------------
> > [ERROR] BUILD FAILURE
> > [INFO]
> > ------------------------------------------------------------------------
> > [INFO] NMAVEN-1100-007: There are test failures.
> >
>
Re: Improve unit testing result message in the console
Posted by Jan Stevens Ancajas <ja...@exist.com>.
Hit the send button too early.. thoughts / suggestions on this one ? Thanks.
On Tue, Aug 12, 2008 at 8:08 PM, Jan Stevens Ancajas <ja...@exist.com>wrote:
> Hi,
>
>
> I want to add the statistics for Nunit testing result in the console
> similar and change the error message from 'Build Error' to 'Buid Failure'
> similar to the output of the surefire plugin in maven [1].
>
> NMAVEN-190 <http://jira.codehaus.org/browse/NMAVEN-190>
>
>
> Thanks,
> Jan
>
>
> --------------------
> [1]
>
> [INFO] [test:test]
> Aug 12, 2008 7:27:54 PM
> org.apache.maven.dotnet.registry.ConnectionsRepository lazyLoad
> INFO: NMAVEN-080-001: Adding data access object: Class Name =
> org.apache.maven.dotnet.dao.impl.ProjectDaoImpl
> Aug 12, 2008 7:27:54 PM
> org.apache.maven.dotnet.registry.ConnectionsRepository lazyLoad
> INFO: NMAVEN-080-004: Connection Start Up: Time = 78
> Aug 12, 2008 7:27:54 PM info.aduna.lang.service.ServiceRegistry <init>
> INFO: Registered service class
> org.openrdf.query.parser.serql.SeRQLParserFactory
> Aug 12, 2008 7:27:54 PM info.aduna.lang.service.ServiceRegistry <init>
> INFO: Registered service class
> org.openrdf.query.parser.sparql.SPARQLParserFactory
> NMAVEN-040-003: Error Log not set: Will not output error logs
>
> NUnit version 2.4.7
> Copyright (C) 2002-2007 Charlie Poole.
> Copyright (C) 2002-2004 James W. Newkirk, Michael C. Two, Alexei A.
> Vorontsov.
> Copyright (C) 2000-2002 Philip Craig.
> All Rights Reserved.
>
> Runtime Environment -
> OS Version: Microsoft Windows NT 5.1.2600 Service Pack 2
> CLR Version: 2.0.50727.1433 ( Net 2.0.50727.1433 )
>
>
> Tests run: 1, Failures: 1, Not run: 0, Time: 0.047 seconds
>
> Test Case Failures:
> 1) TestNUnit.MyAppTest.SimpleAcceptedTest :
> at TestNUnit.MyAppTest.SimpleAcceptedTest()
>
>
>
>
> NMAVEN-040-000: Executed command: Commandline = nunit-console
> C:\projects\NMaven.Jan\target/test-assemblies\NMaven.Jan-test.dll
> /xml:C:\projects\NMave
> n.Jan\target/nunit-reports\TEST-NMaven.Jan-1.0-SNAPSHOT.xml
> /output:C:\projects\NMaven.Jan\target/nunit-reports\TEST-NMaven.Jan-1.0-SNAPSHOT-RESULTS.t
> xt
> /err:C:\projects\NMaven.Jan\target/nunit-reports\TEST-NMaven.Jan-1.0-SNAPSHOT-ERROR.txt
> /labels, Result = 1
> [INFO]
> ------------------------------------------------------------------------
> [ERROR] BUILD FAILURE
> [INFO]
> ------------------------------------------------------------------------
> [INFO] NMAVEN-1100-007: There are test failures.
>