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 yelo_3 <ye...@yahoo.it> on 2008/10/15 15:34:37 UTC

help with code & test report

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!

Re: help with code & test report

Posted by Brett Porter <br...@apache.org>.
http://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@apache.org
http://blogs.exist.com/bporter/


Re: help with code & test report

Posted by Nicolò Chieffo <84...@gmail.com>.
It shouldn't be so difficult for me... Do you know where can I find
the maven jxr plugin source?

Re: help with code & test report

Posted by Brett Porter <br...@apache.org>.
Unfortunately 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@apache.org
http://blogs.exist.com/bporter/


Re: help with code & test report

Posted by Nicolò Chieffo <84...@gmail.com>.
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

Re: help with code & test report

Posted by Brett Porter <br...@apache.org>.
At 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@apache.org
http://blogs.exist.com/bporter/