简体   繁体   中英

karate-gatling: how to simulate a karate feature except those scenarios tagged with @ignore

I have a feature which defines a workflow for a gatling test. Gatling test is running, but how can I set a karate option to ignore scenarios that are tagged with @ignore ?

Using a system property like -Dkarate.options="--tags ~@ignore" doesn't help:

mvn clean test-compile gatling:test -Dkarate.env=dev -Dkarate.options="--tags ~@ignore"

Maybe there is a way to provide something like tags = "~@ignore" to karate feature within a scala file?

val workflow = scenario("workflow").exec(karateFeature("classpath:performance/workflow.feature"))

What would be the correct way to do that?

Great question - and we realize that we are missing this. Opened an issue: https://github.com/intuit/karate/issues/968

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM