hrcorval / behavex

BDD test wrapper for parallel test executions and more!
https://github.com/hrcorval/behavex
MIT License
85 stars 20 forks source link

Files not getting filtered by the include RegEx #89

Closed qarampage closed 3 weeks ago

qarampage commented 1 year ago

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):

Smartphone (please complete the following information): Not applicable

Additional context N/A

hrcorval commented 9 months ago

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