Thanks to visit codestin.com
Credit goes to github.com

Skip to content

improved filtering through tags #529

@brainchild0

Description

@brainchild0

Currently, filtering is supported only by regular expressions on test descriptions, which are intended to be human-readable, and not necessarily designed for pattern filters. In fact, even changes to capitalization breaks a filter in current use.

A proposed tagging feature would support assignment of simple key words to each test, to support more robust and predictable filtering.

For example, keywords might follow the test description, designed by some leading character, such as +, as follows:

@test "Test integration with a public network service" +non-critical +external-deps {
    curl https://someplace/
}

A filter then might be defined to exclude tests with the tag external-deps in environments in which the external web resource is unlikely to be available, or tests which have both that tag as well as non-critical.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions