Example.txt file not getting updated if test is failed in before(:all) in Rspec

101 views Asked by At

Im facing an issue currently, I have my test suite written Rspec. Lets say the spec get failed in before(:all) itself, then the example.txt file is not getting updated with the failed cases. Can you help on this ?

1

There are 1 answers

0
Lux On BEST ANSWER

There was a exit present in after(:all) method in my code that is the reason example.txt was not getting updated