[ 
https://issues.apache.org/jira/browse/ZOOKEEPER-2676?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Edward Ribeiro updated ZOOKEEPER-2676:
--------------------------------------
    Description: 
Sometimes it's useful to be able to run a unit test from the CLI and then 
attach an IDE to enable debugging as below:

{code}
$ ant -Dtestcase=FourLetterWordsTest -DremoteDebug=true test-core-java
{code}

The unit test will stop as below:

{code}
(...)
junit.run-concurrent:
     [echo] Running 1 concurrent JUnit processes.     
    [junit] Listening for transport dt_socket at address: 5005
{code}

And we will be able to put breakpoints on the target class and bind the IDE to 
it's process to step through the test.

  was:
Sometimes it's useful to be able to run a unit test from the CLI and then 
attach an IDEA to enable debugging as below:

{code}
$ ant -Dtestcase=FourLetterWordsTest -DremoteDebug=true test-core-java
{code}

The unit test will stop as below:

{code}
(...)
junit.run-concurrent:
     [echo] Running 1 concurrent JUnit processes.     
    [junit] Listening for transport dt_socket at address: 5005
{code}

And we will be able to put breakpoints on the target class and bind the IDE to 
it's process to step through the test.


> Enable remote debugging unit tests on CLI
> -----------------------------------------
>
>                 Key: ZOOKEEPER-2676
>                 URL: https://issues.apache.org/jira/browse/ZOOKEEPER-2676
>             Project: ZooKeeper
>          Issue Type: Improvement
>            Reporter: Edward Ribeiro
>            Assignee: Edward Ribeiro
>            Priority: Minor
>
> Sometimes it's useful to be able to run a unit test from the CLI and then 
> attach an IDE to enable debugging as below:
> {code}
> $ ant -Dtestcase=FourLetterWordsTest -DremoteDebug=true test-core-java
> {code}
> The unit test will stop as below:
> {code}
> (...)
> junit.run-concurrent:
>      [echo] Running 1 concurrent JUnit processes.     
>     [junit] Listening for transport dt_socket at address: 5005
> {code}
> And we will be able to put breakpoints on the target class and bind the IDE 
> to it's process to step through the test.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to