Skip to main content
Tags say where a test runs and how the app is reset before it. A test without tags runs on every platform, after a soft reset.

The tags

Your own tags (e.g. @smoke) can sit next to them; Quiesco ignores those. In Vitest and Jest code the tags are also constants: `… ${Tag.android}`, { tags: [Tag.native, Tag.hardReset] }.

Writing tags

With Vitest, quiesco() declares the platform and browser tags for the tags option; declare your own with extraTags (Vitest).

The innermost level decides

Platform tags can sit on several levels: in Gherkin the feature, a Rule, the scenario or an Examples block; with Vitest and Jest a describe title and the test. The innermost level that has a platform tag decides:
  • in a feature (or describe) tagged @native, an untagged test runs on iOS and Android, and a test tagged @android runs on Android only.
Browser tags follow the same rule, decided apart from the platform tags:
  • @web @webkit runs on the web in WebKit only;
  • a test tagged @firefox in a @chromium feature runs in Firefox only.
This differs from cucumber-js --tags, which matches inherited tags too.

Renaming the tags

The tags config renames them:
With Vitest, pass the same object to quiesco({ tags }).