Skip to content
 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

TestRunnerExample

A minimal iOS project demonstrating bazel's ios_xctestrun_runner for running UI tests

Test Runners

Defined in the root BUILD.bazel using ios_xctestrun_runner:

  • unitTestRunner - Randomized order, reuses simulators, retries on failure
  • uiTestRunner - 600s timeout per test taret, retry on failure, xcresult bundle generation
  • parallelizedRunner - Distributes tests across 3 simulators for parallel execution

Parallel Testing

The parallelizedRunner passes -parallel-testing-enabled YES and targets 3 named simulators

BAZEL_TEST_iPhone 17_26.1
BAZEL_TEST_iPhone 17_26.1_0
BAZEL_TEST_iPhone 17_26.1_1

Before running parallel tests, create and boot these simulators:

./Scripts/setup_simulators.sh

Commands

To run the tess using the parallelizedRunner:

bazel test //UITests:AppUITests

About

This is a sample iOS project, compiled with bazel, demonstrating a custom test runner that distributes tests across 3 simulators

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages