You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Josh Rosen (JIRA)" <ji...@apache.org> on 2015/05/13 01:56:59 UTC

[jira] [Commented] (SPARK-7558) Log test name when starting and finishing each test

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

Josh Rosen commented on SPARK-7558:
-----------------------------------

I think that you'll want to look into {{withFixture}} for this, since that lets you get information on the test name and do both pre- and post-test work in the same method: http://www.scalatest.org/user_guide/sharing_fixtures#withFixtureNoArgTest

> Log test name when starting and finishing each test
> ---------------------------------------------------
>
>                 Key: SPARK-7558
>                 URL: https://issues.apache.org/jira/browse/SPARK-7558
>             Project: Spark
>          Issue Type: Sub-task
>          Components: Tests
>            Reporter: Patrick Wendell
>            Assignee: Andrew Or
>
> Right now it's really tough to interpret testing output because logs for different tests are interspersed in the same unit-tests.log file. This makes it particularly hard to diagnose flaky tests. This would be much easier if we logged the test name before and after every test (e.g. "Starting test XX", "Finished test XX"). Then you could get right to the logs.
> I think one way to do this might be to create a custom test fixture that logs the test class name and then mix that into every test suite /cc [~joshrosen] for his superb knowledge of Scalatest.



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

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org