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

    • Sub-task
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 1.3.2, 1.4.1, 1.5.0
    • Tests
    • 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 joshrosen for his superb knowledge of Scalatest.

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: