added

Start multiple tests based on labels

about a year ago by Joseph Lust

You can now use test labels to launch multiple test runs in the mabl cloud with the mabl CLI. Have you been working on Feature X and only want to launch ad hoc test runs against tests labeled with the feature-x label? Now you can.

Upgrade or install the mabl CLI today to harness these powerful features!

Updates include:

  • inclusion labels - include tests with any labels --labels a b
  • exclusion labels - exclude any test with a label --exclude-labels x y
  • branch selector - constrain to mabl branch --mabl-branch my-feature
  • only run tests changed on a given branch --branch-changes-only

Some examples include:

# Launch all tests labeled 'feature-x' OR 'feature-y'
mabl tests run-cloud --labels feature-x feature-y

# Launch all tests with labels, but exclude WIP labeled tests
mabl tests run-cloud --labels feature-x feature-y --exclude-labels wip

# Constrain tests to only a specific branch
mabl tests run-cloud --mabl-branch my-feature-branch

# Constrain tests to only a specific branch AND only tests edited on that branch
mabl tests run-cloud --mabl-branch my-feature-branch --branch-changes-only