Skip to content

Latest commit

 

History

History
64 lines (40 loc) · 1.7 KB

supported-data-fomats.adoc

File metadata and controls

64 lines (40 loc) · 1.7 KB

Supported Test Result Data Formats


S3 Storage

  • should have lifecycle which expires objects, e.g. migrate to glacier IR after X days and delete after X days

  • may have multiple lifecycles depending on prefixes

HTML

  • link also stored in database, correlated to test run

Logs/text

  • link also stored in database, correlated to test run


Database Import

Junit XML

Junit XML Entity Relationships

testsuites ← testsuite ← testcase

JUnit XML vs Surefire XML

JUnit in most respects is a superset of surefire. In most cases they can be treated interchangeably and produce almost identical results, with a single XML per testsuite.

Junit supports aggregating multiple testsuites into a single XML file with a testsuites root element.

For this document, when referring to junit XML, support for surefire XML is assumed.

Unsupported Test Result Data Formats

TestNG

TestNG does not have a published DTD or XSD for testng-results.xml. testng-team/testng#2371

Workaround Recommendation: TestNG projects should generate test results in Junit XML format.

How to generate junit xml when using testng
Build System Goal/Task Link

Maven

testng:junit-report

https://testng.org/doc/maven.html

Gradle

test (defaults to Junit format)

TestNGOptions.html#isUseDefaultListeners