8000 GitHub - UkuLoskit/detest
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

UkuLoskit/detest

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Detest parser

https://travis-ci.org/UkuLoskit/detest.svg?branch=master

Detest provides a common Python interface for different formats of Xunit XML.

Usage

Regardless of whether there are multiple test suites, the library always wraps the results in a TestSuites object

>>> test_suites = Detest().parse('my.xml')
>>> for test_suite in test_suites.test_suites:
        for test_case in test_suite.test_cases:
            print(test_case)

Detest can also be used in situations where XML from unstrusted sources must be safely processed.

For example, you can use Detest in conjunction with the excellent defusedxml library:

>>> import defusedxml
>>> test_suites = Detest(elementree_class=defusedxml.ElementTree).parse('my.xml')

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published
0