mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
17 lines
404 B
Markdown
17 lines
404 B
Markdown
# Moztest
|
|
|
|
Package for handling Mozilla test results.
|
|
|
|
|
|
## Usage example
|
|
|
|
This shows how you can create an xUnit representation of python unittest results.
|
|
|
|
from results import TestResultCollection
|
|
from output import XUnitOutput
|
|
|
|
collection = TestResultCollection.from_unittest_results(results)
|
|
out = XUnitOutput()
|
|
with open('out.xml', 'w') as f:
|
|
out.serialize(collection, f)
|