beloyar
beloyar

Reputation: 247

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?

Upvotes: 1

Views: 652

Answers (1)

Peter Thomas
Peter Thomas

Reputation: 58098

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

Upvotes: 1

Related Questions