Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Files not getting filtered by the include RegEx #89

Open
qarampage opened this issue Jul 15, 2023 · 1 comment
Open

Files not getting filtered by the include RegEx #89

qarampage opened this issue Jul 15, 2023 · 1 comment
Labels
Answered bug Something isn't working

Comments

@qarampage
Copy link

qarampage commented Jul 15, 2023

Describe the bug
I used the Regex but it didn't filter the feature files

To Reproduce
Steps to reproduce the behavior:
Create a folder called FINAL inside /features
add few feature files with prefix a par_
image

Execute the command
image

Expected behavior
These files should have been executed. only 1 file would get skipped. but remaining two files matching the Regex should work

Screenshots
|--------------------| ------------------------------------------------------------|
|ENV. VARIABLE | VALUE |
|--------------------| ------------------------------------------------------------|
|HOME | /Users/qarampage |
|CONFIG | /Users/qarampage/venv/lib/python3.11/site-packages/behavex/conf_behavex.cfg|
|OUTPUT | /Users/qarampage/output|
|TAGS | None |
|PARALLEL_SCHEME | scenario |
|PARALLEL_PROCESSES | 2 |
|TEMP | /Users/qarampage/output/temp|
|LOGS | /Users/qarampage/output/outputs/logs|
|LOGGING_LEVEL | INFO |
|--------------------| ------------------------------------------------------------|


Running parallel scenarios


Total execution time: 0.2s
Exit code: 0

Also, I have tried this command , even these don't work.
$ behavex -ip features-i ^par_L[\w-]+.feature$ --parallel-processes 2 --parallel-scheme scenario
$ behavex -ip features -i par_L[\w-]+.feature --parallel-processes 2 --parallel-scheme scenario

Below command generated 0 Scenarios to execute
$ behavex -ip ./features -i ^par_L[\w-]+.feature$ --parallel-processes 2 --parallel-scheme scenario

Desktop (please complete the following information):

  • OS: Mac
  • Browser chrome
  • Version: 114

Smartphone (please complete the following information):
Not applicable

  • Device: [e.g. iPhone6]
  • OS: [e.g. iOS8.1]
  • Browser [e.g. stock browser, safari]
  • Version [e.g. 22]

Additional context
N/A

@anibalinn anibalinn added the bug Something isn't working label Jul 24, 2023
@hrcorval
Copy link
Owner

hrcorval commented Nov 22, 2023

Hi @qarampage , it seems that you need to escape the square brackets. Otherwise, they will be considered as part of the feature filename:
behavex -ip features-i par_L\[\w-\]+.feature --parallel-processes 2 --parallel-scheme scenario

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Answered bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants