: 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
end
source
share