- The Pro, Team, or Enterprise plan, and the Owner, Admin, or Member role.
- GitHub connected to the project. See GitHub App.
- Test cases linked to automated tests. See Linked Automation Tests.
@testdino/playwright2.11.1 or later and Playwright 1.56 or later in your project.- A workflow set up once, as shown below.
Set up your workflow
Add atestdino_selection input to the GitHub Actions workflow that runs your Playwright tests, and pass it to npx tdpw test. Keep your existing triggers, setup, and install steps; the example shows only the lines to add.
- On a normal push the input is empty, so your whole suite runs as before.
- Pass the input through
env:, as in the example. - Add the workflow to every branch you want to run from TestDino.
- Don’t ignore the test command’s result: no
|| true,|| echo,continue-on-error,| teewithoutpipefail, orset +e. Otherwise the CI job shows green even when tests fail or nothing ran. - If the same workflow also has the re-run inputs, set
testdino_rerun_fromtorequired: false. - Sharded workflows work. See sharded runs to report the shards as 1 test run.
Start a run
Open Run automation
Pick test cases
No linked automated test. Use the suite checkboxes, Select all, Clear, and search to build the list, then click Next. A run takes up to 1,000 test cases. To change them later, click Back or the step names at the top.From a run, the chips Not run in automation, Failed, and All automated filter the list by each test case’s CI result in that run.Choose a branch and workflow
- Branch: the branch to run. From a run with a release branch, it starts on that branch; otherwise on the repository’s default branch. Search the list or type a name.
- Workflow: the workflows on that branch that are set up for TestDino. Show why explains the others and what to change.
- When a selected test is missing: Skip missing tests (the default) or Fail the CI job. See Tests missing on the branch.
N may not run · View details badge appears. Click it to see which ones and why. Those test cases are tagged Test not found or Not found last run; hover the tag for the reason. You can still run.If the workflow ignores the test command’s result, a Your workflow may hide test failures box appears. Click View fix to see the file, the job, and the line to remove.The button shows how many tests will run, such as Run 12 selected tests. A test that runs in 3 browsers counts 3 times.Run
See the results
The results arrive as a new test run in Test Runs when the GitHub run finishes. It shows who started it, such asManual · <name>.
When you started from a run, the run page also shows the progress:
Tests missing on the branch
Before running, CI checks which selected tests exist on the branch. A test renamed, moved, or deleted on that branch is not found.2 tests not found. Hover it to see why, or click it to see the missing tests and the test cases that link them. A renamed or moved test needs to be linked again from its test case.
Troubleshooting
None of your workflows on <branch> can run selected tests yet.
None of your workflows on <branch> can run selected tests yet.
testdino_selection input. Click Show why under Workflow for the reason, then set up your workflow on that branch.TestDino isn't allowed to start workflows
TestDino isn't allowed to start workflows
GitHub has no branch named <branch>.
GitHub has no branch named <branch>.
None of the N selected tests were found, so nothing ran
None of the N selected tests were found, so nothing ran
The CI job is green, but tests were missing or nothing ran
The CI job is green, but tests were missing or nothing ran
npx tdpw test, for example with || true, || echo, or continue-on-error. Remove it so a failed check fails the CI job. The TestDino CLI log still lists the missing tests. Step 2 warns about this with Your workflow may hide test failures.error: unknown option '--selection'
error: unknown option '--selection'
@testdino/playwright older than 2.11.1. Upgrade it on that branch.--selection needs Playwright 1.56 or newer
--selection needs Playwright 1.56 or newer
@playwright/test to 1.56 or later on that branch.Selection <id> is unknown or belongs to another project than this token's.
Selection <id> is unknown or belongs to another project than this token's.
TESTDINO_TOKEN is from a different TestDino project, or the selection id is wrong. Start the run from TestDino, and use an API key from the project you started it in. See Generate API keys.This run may already have started
This run may already have started
Related
Link automated tests
Runs
Node.js CLI
npx tdpw test flag, including --selection.