[ 
https://jira.codehaus.org/browse/SUREFIRE-654?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=354703#comment-354703
 ] 

Tibor Digana commented on SUREFIRE-654:
---------------------------------------

@Andrew Phillips
You should be able to debug surefire on your side this way:

Start in project in console: 
mvnDebug test "-DdebugForkedProcess=-Xdebug 
-Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=8000"

Then open the Maven Surefire project in IDEA. 
I am using IDEA but you can use Eclipse as well.

Then in IDEA, Run/Debug Configurations > + > Remote > change to port 8000
Go to console. If you see halting maven process with something like Listening 
to port ..., then start remote debugging in IDEA, repeat again if wants to 
connect or if failed to reconnect.
In the "Remote" the best would be to choose the particular module to debug 
where you have made the changes. This is of course up to you.

> Surefire does not recognize successful tests using TestNG with the 
> invocationCount and successPercentage parameters on the @Test annotation
> -------------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: SUREFIRE-654
>                 URL: https://jira.codehaus.org/browse/SUREFIRE-654
>             Project: Maven Surefire
>          Issue Type: Bug
>          Components: TestNG support
>    Affects Versions: 2.6
>         Environment: Apache Maven 2.2.1 (rdebian-4)
> Java version: 1.6.0-18
> Java home: /usr/lib/jvm/java-6-openjdk/jre
> Default locale: en_US, platform encoding: UTF-8
> OS name: "linux" version: "2.6.35-22-generic" arch: "amd64" Family: "unix"
> Ubuntu 10.10
>            Reporter: Steve Stodola
>         Attachments: bugtest.tar.gz, surefire654.diff, 
> surefire-fix-test-build-output.txt, surefire-fix-test.zip
>
>
> Surefire does not recognize successful tests using TestNG with the 
> invocationCount and successPercentage parameters on the @Test annotation. 
> BugTest.java in the attached file has an invocationCount = 100 with a 
> successPercentage = 1. 1 test in 100 needs to pass for the test to be 
> considered successful. However when running *{{mvn clean test}}* Surefire 
> reports the tests as failed. The generated report shows the tests as passing. 
> Surefire should be identifying this test as passing.



--
This message was sent by Atlassian JIRA
(v6.1.6#6162)

Reply via email to