Skip to content

Commit 954ca3c

Browse files
committed
docs(design): Add an initial junit section
1 parent 382b83c commit 954ca3c

1 file changed

Lines changed: 34 additions & 0 deletions

File tree

DESIGN.md

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -159,6 +159,40 @@ Endorsed in [pytest's docs](https://docs.pytest.org/en/latest/deprecations.html#
159159

160160
[subunit](https://github.com/testing-cabal/subunit) ([rust impl](https://github.com/mtreinish/subunit-rust))
161161

162+
#### JUnit XML
163+
164+
[testmoapp/junitxml](https://github.com/testmoapp/junitxml)
165+
- Non-streaming format
166+
- More work to generate properly, possibly impacting compile times of custom test harnesses
167+
- No specified format; requires experimenting with supported consumers
168+
- Lacks per-case timestamps
169+
170+
Example:
171+
```xml
172+
<?xml version="1.0" encoding="UTF-8"?>
173+
<testsuites time="15.682687">
174+
<testsuite name="Tests.Registration" time="6.605871">
175+
<testcase name="testCase1" classname="Tests.Registration" time="2.113871" />
176+
<testcase name="testCase2" classname="Tests.Registration" time="1.051" />
177+
<testcase name="testCase3" classname="Tests.Registration" time="3.441" />
178+
</testsuite>
179+
<testsuite name="Tests.Authentication" time="9.076816">
180+
<testsuite name="Tests.Authentication.Login" time="4.356">
181+
<testcase name="testCase4" classname="Tests.Authentication.Login" time="2.244" />
182+
<testcase name="testCase5" classname="Tests.Authentication.Login" time="0.781" />
183+
<testcase name="testCase6" classname="Tests.Authentication.Login" time="1.331" />
184+
</testsuite>
185+
<testcase name="testCase7" classname="Tests.Authentication" time="2.508" />
186+
<testcase name="testCase8" classname="Tests.Authentication" time="1.230816" />
187+
<testcase name="testCase9" classname="Tests.Authentication" time="0.982">
188+
<failure message="Assertion error message" type="AssertionError">
189+
<!-- Call stack printed here -->
190+
</failure>
191+
</testcase>
192+
</testsuite>
193+
</testsuites>
194+
```
195+
162196
## lexarg
163197

164198
Goal: provide an API-stable CLI parser for inclusion in APIs for plugin-specific CLI args

0 commit comments

Comments
 (0)