Add a new flag named tags to the command run. This flag will be used to determine which scenarios must be executed.
For example, given the below input file
scenario "basic usage" {
tags= ["sum","maths"]
given "a couple of numbers" {
set a {
value = 1
}
set b {
value = 2
}
}
when "input values are sum" {
set c {
value = a + b
}
}
then "the result of variable c is correct" {
assert {
assertion = c == 3
}
}
}
scenario "basic usage" {
tags= ["sub", "maths"]
given "a couple of numbers" {
set a {
value = 1
}
set b {
value = 2
}
}
when "do subtraction with the numbers" {
set c {
value = a - b
}
}
then "the result of variable c is correct" {
assert {
assertion = c == -1
}
}
}
the below command should work, and only scenarios with provided tags should be executed.
orion run --input feature.hcl --tags sum
orion run --input feature.hcl --tags sub
orion run --input feature.hcl --tags maths
orion run --input feature.hcl --tags sum,sub
Add a new flag named
tags
to the commandrun
. This flag will be used to determine which scenarios must be executed.For example, given the below input file
the below command should work, and only scenarios with provided tags should be executed.