What’s New in Testing

WWDC 2018

Posted by Den on June 28, 2018 · 4 mins read
What’s New in Testing

What’s New in Testing

WWDC 2018

What’s New in Testing

WWDC 2018

Code Coverage

Performance Improvement

Target Selection

XCCOV (Command line tool)

Human-readable formats
JSON formats

Coverage Data

Source Editor

Test Options (new) 👍

Parallel Distributed Testing

Classes Execute in Parallel

  • Hidden dependencies between tests in a class
  • Avoid unnecessary +setUp and +tearDown computation

Parallel Testing on Simulator

  • Original simulator is not used during testing
  • Separate data containers

xcodebuild

  • -parallel-testing-worker-count n
    //
    worker numbers
  • -parallel-testing-enabled YES | NO
    // Testing on / off

Tips and Tricks

  • Consider splitting a long running class into two classes
  • Put performace tests into their own bundle, with parallelization disabled
  • Understand which tests are not safe for parallelization
A long running class 2 classes