tags - How to conditionally run tests in cucumber -


having done bit of research on question, see it's been asked before. answer seems along lines of "if need conditionally skip test, you're doing wrong." i'm new cucumber , programming in general, i'm hoping has suggestion how around current dilemma.

all new features developed our team put behind feature flag , turned on per environment when ready, ie, on in dev, on in test, on in integration, , on in staging , prod when think ready ship.

i aware of tagging feature , think solution me except couple of things. one, there lots of features , flipped on , off in various environments often. unless i'm totally on top of things, i'm going miss whether or not need change specific feature tag. other issue i'm working in shared test codebase , our tagging system not setup per environment. although start lobbying change, not happen in short term and, given reason, i'm not sure i'd happy solution.

what i'd ideally use feature flag , code along lines of "if flag x true, run test, otherwise nothing." however, haven't been able find "do nothing" method. have set of tests "pending" if flag not set, i'd prefer have test not run @ if flag not set. pending makes have bunch of incomplete test cases not true.

thanks in advance suggestions.

you tag each scenario environments should run on, , use tag when call cucumber.


Comments

Popular posts from this blog

python - mat is not a numerical tuple : openCV error -

c# - MSAA finds controls UI Automation doesn't -

wordpress - .htaccess: RewriteRule: bad flag delimiters -