[ 
https://issues.apache.org/jira/browse/FLINK-2521?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14696979#comment-14696979
 ] 

ASF GitHub Bot commented on FLINK-2521:
---------------------------------------

GitHub user tillrohrmann opened a pull request:

    https://github.com/apache/flink/pull/1015

    [FLINK-2521] [tests] Adds automatic test name and reason of failure logging 

    Adds TestLogger class which automatically logs the currently executed test 
names and the reasons for a failure. The automatic logging is achieved by 
specifying a JUnit Rule which executes a `TestWatcher` for every executed test. 
    
    This PR makes all test bases extend the TestLogger. For future tests which 
don't extend a test base, the test class should extend the TestLogger class to 
add automatic test name logging.

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/tillrohrmann/flink testLogger

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/flink/pull/1015.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #1015
    
----
commit 6e27752dec68094c1f7498bebc2edd842f064daf
Author: Till Rohrmann <[email protected]>
Date:   2015-08-14T13:06:06Z

    [FLINK-2521] [tests] Adds TestLogger class which automatically logs the 
currently executed test names and the reasons for a failure.
    
    Makes test bases extend TestLogger to add automatic test name logging

----


> Add automatic test name logging for tests
> -----------------------------------------
>
>                 Key: FLINK-2521
>                 URL: https://issues.apache.org/jira/browse/FLINK-2521
>             Project: Flink
>          Issue Type: Improvement
>            Reporter: Till Rohrmann
>            Assignee: Till Rohrmann
>            Priority: Minor
>
> When running tests on travis the Flink components log to a file. This is 
> helpful in case of a failed test to retrieve the error. However, the log does 
> not contain the test name and the reason for the failure. Therefore it is 
> difficult to find the log output which corresponds to the failed test.
> It would be nice to automatically add the test case information to the log. 
> This would ease the debugging process big time.



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

Reply via email to