hrcorval / behavex

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

Not able to run the tests from root directory using behaveX which is possible using behave #66

Closed HarikrishnanVK closed 1 year ago

HarikrishnanVK commented 1 year ago

Describe the bug I have a directory that has different sub folders where one of them has features and tests related to Behave.

Using Behave package, I can run my feature pointing to my sub folder as per below command.. behave behaveSample/features --tags=dropdownTest

But when i try to do the same using behaveX wrapper, it is not finding my features and throwing error as unrecognized arguments. image

I couldn't find anything from documentation about how to set the path to features folder via behaveX CLI. Plz help me on this.

To Reproduce Steps to reproduce the behavior:

  1. Create a directory
  2. Have your features inside a sub directory/folder
  3. Now try to run the test using behaveX wrapper. "You will find a error that features folder is not part of the directory"
  4. Now try mentioning the sub directory followed by behaveX command before tags (-t) flag, you will seen an error as unrecognized argument.

Expected behavior BehaveX should able to find the features directory located inside sub directories or at least there should be a way to mention the directory path like in behave.

Screenshots With behave where features are found: image

With behaveX where features are not found: image

Desktop (please complete the following information):

anibalinn commented 1 year ago

Hi @HarikrishnanVK , thanks for posting this issue. We are currently working on improvements to support indicating the features path as part of the execution arguments (and not assume the features folder is always located in root execution directory). We will have that implementation ready soon (cannot provide an ETA yet, sorry)

Regards, Hernan

hrcorval commented 1 year ago

Hi @HarikrishnanVK, We have applied the fix in https://github.com/hrcorval/behavex/tree/release_2.0.0 It will be released pretty soon.

Regards,

anibalinn commented 1 year ago

Changes already implemented in latest release (v2.0.1)