Skip to content
Novus Examples
xml823 B

Cucumber JUnit XML — Checkout Run

The same six pickles reported as JUnit XML, which is what a BDD suite hands to a generic CI dashboard. One <testcase> per pickle means the three expanded outline rows appear as three tests with identical names — enough to break any store keyed on name alone.

Preview — first 12 linesxml
<?xml version="1.0" encoding="UTF-8"?>
<testsuites>
  <testsuite name="Checkout totals" tests="6" failures="0" errors="0" skipped="0" time="1.280" timestamp="2026-08-07T09:14:22" hostname="ci-runner-04">
    <testcase classname="Checkout totals" name="A single-item cart shows tax separately" time="0.280"/>
    <testcase classname="Checkout totals" name="Quantity multiplies the subtotal" time="0.200"/>
    <testcase classname="Checkout totals" name="Quantity multiplies the subtotal" time="0.200"/>
    <testcase classname="Checkout totals" name="Quantity multiplies the subtotal" time="0.200"/>
    <testcase classname="Checkout totals" name="Quantity multiplies the subtotal" time="0.200"/>
    <testcase classname="Checkout totals" name="The receipt renders as plain text" time="0.200"/>
  </testsuite>
</testsuites>

Specifications

Seed
61200
Encoding
UTF-8
Line Endings
LF
Dialect
cucumber-junit
Tests
6
Failures
0
Errors
0
Skipped
0
One Testcase Per Pickle
true

Testing contract

Expected to pass
Scenario
Feed a BDD run to a CI dashboard that only understands JUnit XML.
Expected result
6 test cases are reported, of which three share the name "Quantity multiplies the subtotal" because they are expansions of one outline.

What is a .xml file?

XML (Extensible Markup Language) is a verbose, self-describing markup language using nested tags, attributes, and namespaces to represent structured, hierarchical data. It supports schemas, entities, and validation and underlies many document and data formats. It remains common in enterprise, publishing, and interchange contexts.

How to use this file

Use an example XML file to test parsers, namespace and schema validation, XPath queries, and protection against entity-expansion and external-entity attacks.

How to use this file for testing

“Cucumber JUnit XML — Checkout Run” is a deterministic Novus Examples fixture for Conversion testing, Log parsing, Error handling. The same content exported across many formats and linked as a group, so you can convert one and diff against the expected twin.

Documented properties for this file: seed 61200 · UTF-8 · LF. Compare results against paired or grouped companions on this page when present (clean↔damaged, searchable↔scanned, or format twins) so scores stay reproducible across runs.

Download the file once, keep the path stable in CI or local scripts, and treat the spec table as the contract: dimensions, seeds, field lists, and roles are intentional. Corrupt or invalid samples are labelled as such — expect parsers to fail loudly rather than silently accept them.

Test and coverage reports document their totals (suites, cases, passes, failures, skips, covered lines) in the spec table. Point your CI dashboard, coverage gate, or report converter at the file and assert those counts survive; format twins carry identical numbers so a conversion can be scored exactly.

Code examples

import xml.etree.ElementTree as ET

tree = ET.parse("cucumber-junit-results.xml")
root = tree.getroot()
print(root.tag, [c.tag for c in root][:5])

Generated by generation/testing.py. Free for any use, no attribution required — license.