I'm trying to make sure that I'm properly understanding the example in the README:
file = Juniter.parse(xml)
failures = file.test_suites.test_suites.first.test_cases.select(&:fail?)
I was surprised to see file.test_suites.test_suites duplicated -- I thought it was a typo at first. But what is the difference between file.test_suites and file.test_suites.test_suites? What's the proper way to iterate over all test suites & all test cases?
I was looking at https://github.com/kobsy/juniter/blob/master/lib/juniter/test_suites.rb but didn't see much in the way of explanation. Same for the unit tests.