Skip to content

Support suite-level test configuration via Feature tags #1158

@mallison

Description

@mallison

Current behavior

Suite-level configuration, eg testIsolation, cannot be applied using tags.

Eg.

@testIsolation(false)
Feature: Apply Feature tags at the suite level

    Scenario: Open a page
        Given I load a page

    Scenario: the page still exists
        Then the page should exist

Does not work.

Desired behavior

Tags set on a Feature get applied to the corresponding describe so that suite-level configuration can be altered.

Test code to reproduce

I've created a small repository with a single feature file to demonstrate the issue https://github.com/marvelapp/suite-level-tags

In this repo when I run the test suite I see

No commands were issued in this test

for each scenario.

Screenshot 2024-02-19 at 12 16 00

I see from the code that this will never work because configuration set via tags is always set on the test, ie it.

If this feature request is reasonable I'm happy to create a pull request for it.

Versions

  • Cypress version: 13.6.4
  • Preprocessor version: 20.0.1
  • Node version: 13.6.4

Checklist

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions