Select your cookie preferences

We use essential cookies and similar tools that are necessary to provide our site and services. We use performance cookies to collect anonymous statistics, so we can understand how customers use our site and make improvements. Essential cookies cannot be deactivated, but you can choose “Customize” or “Decline” to decline performance cookies.

If you agree, AWS and approved third parties will also use cookies to provide useful site features, remember your preferences, and display relevant content, including relevant advertising. To accept or decline all non-essential cookies, choose “Accept” or “Decline.” To make more detailed choices, choose “Customize.”

Parallel test execution for various test frameworks sample

Focus mode
Parallel test execution for various test frameworks sample - AWS CodeBuild

You can use the codebuild-tests-run CLI command to split and run your tests across parallel execution environments. The following section provides buildspec.yml samples for various frameworks, illustrating the usage of the codebuild-tests-run command.

  • Each example below includes a parallelism level of five, meaning that five identical execution environments will be created to split your tests across. You can choose a parallelism level to suit your project by modifying the parallelism value in the build-fanout section.

  • Each example below shows configuring your tests to be split by the test file name, which is by default. This distributes the tests evenly across the parallel execution environments.

Before you get started, see Execute parallel tests in batch builds for more information.

For a full list of options when using the codebuild-tests-run CLI command, see Use the codebuild-tests-run CLI command.

PrivacySite termsCookie preferences
© 2025, Amazon Web Services, Inc. or its affiliates. All rights reserved.