|
View:
New views
6 Messages
—
Rating Filter:
Alert me
|
|
|
help with code & test reportHello, I'm new to nmaven, but not to maven, and I need your help.
I've generater a pom project (attaching the pom) using nmaven svn. I've created a simple c# class and a simple test case which does not fail. what I want is to generate the test report, and the test code in an html page. with (j)maven I used to run mvn jxr:jxr mvn jxr:test-jxr mvn surefire-report:report the jxr does not do anything, but the surefire-report tells me this: "[WARNING] Unable to locate Test Source XRef to link to - DISABLED" and generates an html page with 0 tests :( but now I cannot understand how to do this can you help me? I'm in a hurry! <?xml version="1.0" encoding="UTF-8"?> <project> <parent> <artifactId>maven-dotnet-parent</artifactId> <groupId>org.apache.maven.dotnet</groupId> <version>0.16-incubating-SNAPSHOT</version> </parent> <modelVersion>4.0.0</modelVersion> <groupId>it.unibo.deis.EsameIS</groupId> <artifactId>Esame</artifactId> <packaging>dotnet:exe</packaging> <name>Class Library</name> <version>1.0-SNAPSHOT</version> <build> <sourceDirectory>src/main/csharp</sourceDirectory> <testSourceDirectory>src/test/csharp</testSourceDirectory> <plugins> <plugin> <groupId>org.apache.maven.dotnet.plugins</groupId> <artifactId>maven-dotnet-compiler-plugin</artifactId> <extensions>true</extensions> </plugin> <plugin> <groupId>org.apache.maven.dotnet.plugins</groupId> <artifactId>maven-dotnet-test-plugin</artifactId> <extensions>true</extensions> </plugin> </plugins> </build> <dependencies> <dependency> <groupId>org.apache.maven.dotnet</groupId> <artifactId>NUnit.Framework</artifactId> <version>2.4.8.0</version> <type>dotnet:library</type> <scope>test</scope> </dependency> </dependencies> </project> |
|
|
Re: help with code & test reportAt present the nunit plugin doesn't generate a surefire compatible
output format - you would need to look at the standard nunit output. The JXR plugin is a Java cross reference tool - we'd need to find a similar tool for other languages, or see if it can be adapted to work for C#. - Brett On 16/10/2008, at 2:34 AM, yelo_3 wrote: > Hello, I'm new to nmaven, but not to maven, and I need your help. > > I've generater a pom project (attaching the pom) using nmaven svn. > I've created a simple c# class and a simple test case which does not > fail. > > what I want is to generate the test report, and the test code in an > html page. > > with (j)maven I used to run > mvn jxr:jxr > mvn jxr:test-jxr > mvn surefire-report:report > > the jxr does not do anything, but the surefire-report tells me this: > "[WARNING] Unable to locate Test Source XRef to link to - DISABLED" > and generates an html page with 0 tests :( > > but now I cannot understand how to do this > can you help me? I'm in a hurry! > <pom.xml> -- Brett Porter brett@... http://blogs.exist.com/bporter/ |
|
|
Re: help with code & test reportOh, this is quite bad for me :(
Is is possible at least to configure jxr to parse .cs files? I've renamed a file into .java and at lest it generates something (except packages) better than plain .cs files |
|
|
Re: help with code & test reportUnfortunately not - you'll need to patch the JXR plugin.
Cheers, Brett On 16/10/2008, at 7:32 AM, Nicolò Chieffo wrote: > Oh, this is quite bad for me :( > > Is is possible at least to configure jxr to parse .cs files? I've > renamed a file into .java and at lest it generates something (except > packages) better than plain .cs files -- Brett Porter brett@... http://blogs.exist.com/bporter/ |
|
|
Re: help with code & test reportIt shouldn't be so difficult for me... Do you know where can I find
the maven jxr plugin source? |
|
|
Re: help with code & test reporthttp://svn.apache.org/repos/asf/maven/jxr/trunk/
On 16/10/2008, at 7:47 AM, Nicolò Chieffo wrote: > It shouldn't be so difficult for me... Do you know where can I find > the maven jxr plugin source? -- Brett Porter brett@... http://blogs.exist.com/bporter/ |
| Free embeddable forum powered by Nabble | Forum Help |