rchitect-of-info
rchitect-of-info

Reputation: 1586

Is there a way to wrap one or more tests in a group within the test interface?

We are dynamically creating bunches of characterization tests within our test interface. I would like to enclose them in a group for readability. I see that groups can be referenced in the flow files, is there an 'start_group' interface method where a list of tests could be added to as they are created?

thx

Upvotes: 1

Views: 27

Answers (1)

Ginty
Ginty

Reputation: 3501

I think you can assign a group parameter to individual tests, which might help:

group :my_group do
   test :test1

   test :test2
end

# This is equivalent
test :test1, group: :my_group
test :test2, group: :my_group

Obviously the group parameter could be injected within the interface if that is preferable in your case.

Also remember that everything you can call in a flow you can call in an interface, so you could also use the group :blah do ... end approach within your interface logic.

Upvotes: 1

Related Questions