PMM CLI tests

June 19, 2026 ยท View on GitHub

Percona Monitoring and Management CLI automated tests.

Folder Map

PathPurpose
tests/Test entrypoints grouped by CLI or service area.
helpers/Shared helpers for shell execution, pmm-admin, constants, assertions, and ZIP handling.
support/Shared support types for command results and pipe assertions.
test-setup/Docker Compose files used by CLI scenarios.
test-data/Static files used by CLI tests.
playwright.config.tsPlaywright runtime configuration.

Getting Started

  • Open the cli folder in terminal.
  • Install Node.js 18+ and make sure npx is available.
  • Install dependencies: npm ci.
  • Install Playwright browsers: npx playwright install.

Running Tests

Run commands from cli/.

GoalCommand
Run all testsnpx playwright test
Run one filenpx playwright test tests/<filename>.spec.ts
Run by test titlenpx playwright test --grep "<test-title-or-id>"
Run by tagnpx playwright test --grep "@<tag>"
Run by multiple tagsnpx playwright test --grep "@<tag-1>|@<tag-2>"
Exclude a tagnpx playwright test --grep-invert "@<tag>"
Run previous failuresnpx playwright test --last-failed
Debug one filenpx playwright test tests/<filename>.spec.ts --debug
Open HTML reportnpx playwright show-report <report-folder>

Tags

  • @client-docker
  • @generic
  • @haproxy
  • @help-cli
  • @mongoDb
  • @mysql
  • @mysql-conf-file
  • @pdpgsql
  • @percona-server
  • @pgsql
  • @proxysql
  • @psmdb
  • @server-docker-generic
  • @server-only
  • @service-removal
  • @shard-psmdb
  • @unregister
  • @valkey