Skip to content

Documentation on the classes corresponding to major XML elements? #3

@ianfixes

Description

@ianfixes

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions