behavex icon indicating copy to clipboard operation
behavex copied to clipboard

Files not getting filtered by the include RegEx

Open qarampage opened this issue 1 year ago • 1 comments

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

qarampage avatar Jul 15 '23 10:07 qarampage

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

hrcorval avatar Nov 22 '23 19:11 hrcorval