Skip to main content

Advanced Tags & Control

Restlyn supports fine-grained test control using scenario-level tags.


๐Ÿท๏ธ Available Tagsโ€‹

@onlyโ€‹

Run this scenario only:

@only
Scenario: Login happy path

@skipโ€‹

Skip this scenario:

@skip
Scenario: Broken case

@debugโ€‹

Enable debug logging (e.g., print full response):

@debug
Scenario: Print full response

@retry(n)โ€‹

Retry failed test n times:

@retry(2)
Scenario: Retry if flaky

๐Ÿ“‹ Tag Outputโ€‹

Tags appear in:

  • verify-report.json
  • HTML & PDF reports

โš ๏ธ Invalid Tagsโ€‹

Typos like @onlyy are ignored with a warning.

@title:"My Custom Title"โ€‹

Overrides the default scenario title in test reports.

@title:"User Login Flow"
Scenario: Log in and check profile

โœ… Where to Place Tagsโ€‹

Tags must be placed above the Scenario: line in your .feature file.

Feature: Authentication

@retry(2) @debug @title:"Login API Check"
Scenario: Validate login
Given base URL is "https://api.example.com"
When I POST "/login" with:
| email | user@example.com |
| password | secret |
Then response status should be 200

๐Ÿงช Combining Tagsโ€‹

You can combine multiple tags as needed โ€” Restlyn will interpret them correctly.


๐Ÿงฉ Future Support (Planned)โ€‹

  • @group: for grouping tests
  • @env: for inline environment overrides

Tags make Restlyn flexible for real-world workflows and CI pipelines!

โžก๏ธ Next: Configuration