Uploaded image for project: 'Swift Driver'
  1. Swift Driver
  2. SWIFT-257

Integrate xcpretty into test target

    XMLWordPrintable

Details

    • Improvement
    • Status: Closed
    • Major - P3
    • Resolution: Fixed
    • None
    • 0.0.8
    • None

    Description

      xcpretty makes Swift test output on the command line much more readable by adding color, spacing, symbols, snippets of failing code, etc, as shown in screenshot below.

      although it is not mentioned on the repo, as described here, it works with Swift test output if you run swift test 2>&1 | xcpretty. the 2>&1 is necessary as test output goes to stderr. 

      we should add an option to make test (-p or something) that does the necessary redirect and piping.

      we should complete SWIFT-103 in tandem with this, as that also involves modifying make test, and without SWIFT-103 our test output is still quite ugly because --filter (which we must use to exclude the benchmarks) places each matching test in a separate suite, leading to very lengthy output. 

      Attachments

        Issue Links

          Activity

            People

              kaitlin.mahar@mongodb.com Kaitlin Mahar
              kaitlin.mahar@mongodb.com Kaitlin Mahar
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: