Prerequisites
Before running tests locally, ensure you have:- Node.js 18 or newer: Required for the Playmatic CLI
- Playmatic CLI: Install with
npm install -g playmatic
- Test application: An application with Playmatic tests
Playwright is included with the Playmatic SDK - no separate installation required.
Testing localhost environments
To test applications running on localhost, Playmatic automatically creates a secure tunnel to your localhost application that allows our cloud runners to access your development server.Performance when testing localhost depends on your machine’s specs and internet connection, which may lead to more timeouts in cached steps.
Testing remote environments
For testing staging, production, or other remote test environments, make sure these environments are publicly accessible via thebaseUrl
.
--env
flag. Learn more about configuring test environments in the Configuration documentation.
Run all tests
Execute your entire test suite:- Discovers all test files in your project
- Runs tests in parallel by default
- Displays results in the terminal