You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@zookeeper.apache.org by "Edward Ribeiro (JIRA)" <ji...@apache.org> on 2017/01/25 12:25:26 UTC

[jira] [Updated] (ZOOKEEPER-2676) Enable remote debugging unit tests on CLI

     [ 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)