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!
<?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>

Reply via email to