Get Rspec Example Tags

: I am developing a framework for the interaction of Rspec and Testrail. I decided to group the tests into groups using tags. After the test is completed, I analyze the variable examplethat is the object Rspec::Example, and here I need to get my tags to ignore this test if it contains a specific tag, and then set the status to “locked” in Testrail. So, is there any method, for example example.get_tagsfor my case?

It should look like this:

it 'test', tag1: true, tag2: true do
  true.should == true
end

after :each do
  example.get_tags #  tag1: true, tag2: true
end
+3
source share
1 answer

Found it in example.metadata, the question is closed.

+1
source

All Articles