---
title: Run your Selenium tests in parallel with PHPUnit
description: |-
  One of the advantages of running your Selenium tests on the TestingBot grid is that we scale depending on your needs.
  If you need to run 100 Seleni...
source_url:
  html: https://testingbot.com/blog/2012/02/27/run-your-selenium-tests-in-parallel-with-phpunit
  md: https://testingbot.com/blog/2012/02/27/run-your-selenium-tests-in-parallel-with-phpunit.md
---

# Parallel testing with PHPUnit

By [Jochen D.](https://testingbot.com/about/jochen-d)2012-02-27

 Share on Facebook 

 Share on Twitter 

 Post on Reddit 

 Share link 

 ![php testing](https://testingbot.com/assets/blog/2012/02/Phpunit-Logo.gif "Phpunit-Logo")

One of the advantages of running your Selenium tests on the TestingBot grid is that we scale depending on your needs. If you need to run 100 Selenium tests, it might take some time for them to finish if you run them one after another.

By running tests in parallel, you can dramatically reduce the time it takes to run all your Selenium tests. The same 100 tests can be run x times faster by running them in parallel.

Recently one of our customers asked for a solution to perform parallel testing in PHPUnit. To our surprise this has been on the PHPUnit todo list for a long time, but is still not supported.

We have created a PHP wrapper script which will collect all the PHPUnit files in the directory you specify and run them in parallel. You can specify how many tests you want to run at the same time. At the end of the run, the script will echo the results per PHPUnit file.

An example of how to use this script: `php parallel.php -d tests/ -m 5`

This will run all tests in the tests directory with maximum 5 simultaneous tests running. Together with our scaleable grid, parallel testing will make your tests results available much faster.

Our GitHub repository with the parallel PHPUnit code: [https://github.com/testingbot/phpunit-parallel](https://github.com/testingbot/phpunit-parallel).

[← Previous post TestingBot Jenkins Plugin](https://testingbot.com/blog/2012/02/21/testingbot-jenkins-plugin-video-and-screenshots-of-selenium-tests-in-jenkins) [Next post → Website Monitoring and PageLoad Testing with Selenium](https://testingbot.com/blog/2012/03/01/website-monitoring-and-pageload-testing-with-selenium)

## Sidebar

### TestingBot Cloud Testing

Run automated, manual and visual tests on remote browsers and devices. Sign up for a free trial.

[Free Trial](https://testingbot.com/users/sign_up)

### Latest articles

[![Announcing AI Test Insights](https://testingbot.com/assets/blog/2026/ai-insights.jpg)](https://testingbot.com/blog/ai-test-insights)

#### Announcing AI Test Insights

Use AI Insights to quickly discover why an automated test...

[Read: Announcing AI Test Insights](https://testingbot.com/blog/ai-test-insights)

[![Selenium vs Playwright 2026](https://testingbot.com/assets/blog/2026/selenium-vs-playwright-2026.jpg)](https://testingbot.com/blog/selenium-vs-playwright)

#### Selenium vs Playwright 2026

Comparing Selenium vs Playwright - which is the best test...

[Read: Selenium vs Playwright 2026](https://testingbot.com/blog/selenium-vs-playwright)

[![Maestro Physical Device Testing](https://testingbot.com/assets/blog/2026/maestro-physical.jpg)](https://testingbot.com/blog/maestro-physical-device-testing)

#### Maestro Physical Device Testing

Maestro testing in parallel on physical Android and iOS d...

[Read: Maestro Physical Device Testing](https://testingbot.com/blog/maestro-physical-device-testing)

## Related Articles

[![Announcing AI Test Insights](https://testingbot.com/assets/blog/2026/ai-insights.jpg)](https://testingbot.com/blog/ai-test-insights "Announcing AI Test Insights")

### [Announcing AI Test Insights](https://testingbot.com/blog/ai-test-insights)

Use AI Insights to quickly discover why an automated test failed.

[Read article →](https://testingbot.com/blog/ai-test-insights)

[![Selenium vs Playwright 2026](https://testingbot.com/assets/blog/2026/selenium-vs-playwright-2026.jpg)](https://testingbot.com/blog/selenium-vs-playwright "Selenium vs Playwright 2026")

### [Selenium vs Playwright 2026](https://testingbot.com/blog/selenium-vs-playwright)

Comparing Selenium vs Playwright - which is the best test framework for your usecase?

[Read article →](https://testingbot.com/blog/selenium-vs-playwright)

[![tvOS Physical Device Testing](https://testingbot.com/assets/blog/2025/appletv.jpg)](https://testingbot.com/blog/tvos-automated-testing "tvOS Physical Device Testing")

### [tvOS Physical Device Testing](https://testingbot.com/blog/tvos-automated-testing)

Run automated tvOS tests on physical AppleTV devices.

[Read article →](https://testingbot.com/blog/tvos-automated-testing)

[![Electron Automated Testing](https://testingbot.com/assets/blog/2024/electron.webp)](https://testingbot.com/blog/electron-automated-testing "Electron Automated Testing")

### [Electron Automated Testing](https://testingbot.com/blog/electron-automated-testing)

TestingBot now supports running automated tests against Electron-based apps on remote Windows and macOS machines in the cloud.

[Read article →](https://testingbot.com/blog/electron-automated-testing)

## More by Jochen D.

[![Announcing AI Test Insights](https://testingbot.com/assets/blog/2026/ai-insights.jpg)](https://testingbot.com/blog/ai-test-insights "Announcing AI Test Insights")
### [Announcing AI Test Insights](https://testingbot.com/blog/ai-test-insights)

Use AI Insights to quickly discover why an automated test failed.

[![Maestro Physical Device Testing](https://testingbot.com/assets/blog/2026/maestro-physical.jpg)](https://testingbot.com/blog/maestro-physical-device-testing "Maestro Physical Device Testing")
### [Maestro Physical Device Testing](https://testingbot.com/blog/maestro-physical-device-testing)

Maestro testing in parallel on physical Android and iOS devices.

[![tvOS Physical Device Testing](https://testingbot.com/assets/blog/2025/appletv.jpg)](https://testingbot.com/blog/tvos-automated-testing "tvOS Physical Device Testing")
### [tvOS Physical Device Testing](https://testingbot.com/blog/tvos-automated-testing)

Run automated tvOS tests on physical AppleTV devices.

[See all posts by Jochen D. →](https://testingbot.com/about/jochen-d)

## Ready to start testing?
[Start a free trial](https://testingbot.com/users/sign_up)
