hrcorval / behavex

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

Tags Pre-processor to filter Feature files and scenarios based on free-hand expressions #103

Open qarampage opened 1 year ago

qarampage commented 1 year ago

Hi @hrcorval @anibalinn

I am using your behavex package extensively in the automation framework. It is quite impressive and I am also having a few suggestions that I have posted in the issue tracker and waiting for other new features to get implemented from the tracker.

However, to support filtering out the feature files and scenarios based on given tags expression like below, I have created an bdd-tags-processor module. I was wondering if you could have a look at it and integrate that within behavex. I am using this on top of behaveX call to have the right set of scenarios to be executed by behavex

Given expression: { ~@web and @browser and @checkout and ~@norun and ( @regression or @Sanity )} Result: --> NoRuns: ['@web', '@norun'], Ands: ['@browser', '@checkout'], Ors: ['@regression', '@Sanity']

Given expression: { @web and @regression and @norun and ( @test1 or @test2 )} Result: --> NoRuns: [], Ands: ['@web', '@regression', '@norun'], Ors: ['@test1', '@test2']

I have the main() function with adequate examples and how to use.

hrcorval commented 1 month ago

Hi @qarampage, I like this feature a lot. Do you have the implementation to review it and analyze extending the BehaveX library? Thanks!

qarampage commented 1 month ago

Thanks @hrcorval , Sure, you can review it here https://pypi.org/project/bdd-tags-processor/ I have detailed examples there and you can also try it out

qarampage commented 3 days ago

hi @hrcorval, how's everything going on your side ! just want to know if you tried the bdd-tags-processor module ?