Uploaded image for project: 'Spark'
  1. Spark
  2. SPARK-7560 Make flaky tests easier to debug
  3. SPARK-7558

Log test name when starting and finishing each test

    XMLWordPrintableJSON

    Details

    • Type: Sub-task
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 1.3.2, 1.4.1, 1.5.0
    • Component/s: Tests
    • Labels:
      None

      Description

      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 Josh Rosen for his superb knowledge of Scalatest.

        Attachments

          Activity

            People

            • Assignee:
              andrewor14 Andrew Or
              Reporter:
              pwendell Patrick Wendell
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: