Ernst,

The following line

 at test.SomethingTestCase.testDuplicateName(Unknown Source)

indicated that there was no line number information there, otherwise,
you should be able to see where
the problem happened.

I never used but saw the Source Code Cross Reference at

http://maven.apache.org/plugins/maven-surefire-report-plugin/examples/cross-referencing.html

seems you need to add maven-jxr-plugin to your pom.

<reporting>
    <plugins>
      <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-surefire-report-plugin</artifactId>
        <version>2.4.2</version>
        <configuration>
           <!-- place your configuration here -->
        </configuration>
      </plugin>
      <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-jxr-plugin</artifactId>
        <version>2.1</version>
      </plugin>
    </plugins>
  </reporting>

Please let me know if this works. If it does, I will also add this to
our Tellurium Maven archetypes.

Thanks,

Jian

On May 6, 8:12 am, Ernst <[email protected]> wrote:
> Hi,
>
> In the example report below I'm told that an assertTrue failed.
> But not which one, and I have multiple!
> Am I doing something wrong or is this a general problem?
>
> From target/surefire-reports/test.SomethingTestCase.txt:
>
> -------------------------------------------------------------------------------
> Test set: test.SomethingTestCase
> -------------------------------------------------------------------------------
> Tests run: 2, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 19.51
> sec <<< FAILURE!
> testDuplicateName(test.SomethingTestCase)  Time elapsed: 3.756 sec
> <<< FAILURE!
> java.lang.AssertionError:
>         at org.junit.Assert.fail(Assert.java:74)
>         at org.junit.Assert.assertTrue(Assert.java:37)
>         at org.junit.Assert.assertTrue(Assert.java:46)
>         at test.SomethingTestCase.testDuplicateName(Unknown Source)
>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>         at sun.reflect.NativeMethodAccessorImpl.invoke
> (NativeMethodAccessorImpl.java:39)
>         ...cut...
>
> Regards
> /Ernst
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"tellurium-users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/tellurium-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to