Skip to content

[💡 Feature]: Select tests with --exclude command should handle free text search just like --spec command does #8210

@perhenrikandersson

Description

@perhenrikandersson

Is your feature request related to a problem?

Having to write the full path(s) when excluding test file(s) is a bit cumbersome. Would be much easier if I could just write a word that the excluded test file(s) file name should contain, just as when specifying what specs to use.

Describe the solution you'd like.

Same as we already have with the --spec command where you can either specify the full path or just a single word.
https://webdriver.io/docs/organizingsuites#run-selected-tests
image

E.g. the following command should exclude all tests with a file name containing the word "dialog"
--exclude dialog

Describe alternatives you've considered.

No response

Additional context

No response

Code of Conduct

  • I agree to follow this project's Code of Conduct

Metadata

Metadata

Assignees

No one assigned

    Labels

    HacktoberfestCurated issues which are well scoped and ready to be worked on as part of HacktoberfestIdea 💡A new feature ideafirst-timers-onlyIssues that are well described and directed for people that start contributing to the projectgood first picka reasonable task to start getting familiar with the code basehelp wantedIssues that are free to take by anyone interested

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions