JSON test results data format for test frameworks

For consistency, interoperability, efficiency and compliance

2 Apr 2023

Widely used test frameworks in software development lack a standard for test results data output. Each test framework represents results output in a custom format. While most test frameworks offer a listener or emit events to provide programmatic access to results data once it is generated, these interfaces are also entirely custom to each test framework.

The closest to a standard is the JUnit XML format. Several test frameworks offer an option for outputting results to this data format. This is useful. The two main drawbacks are that some parser tools fail when custom fields are present and that over time the JSON data format has become more widely used than XML.

Tesults develops test framework integrations for submitting data to the Tesults service for analysis and reporting. All of the integrations transform custom data output by test frameworks to a standard JSON format that is then used to transmit results data to Tesults. When the Tesults API is utilized for data retrieval, the same standard JSON format is used in the response.

The Tesults JSON data standard defines a JSON format for specifying results output. It is simple and easy to understand and implement and has been used by Tesults for several years now with success. In the absence of any other common JSON test results format, test framework authors should consider supporting the format specified for outputting results data.

Data standards play a crucial role in ensuring that data is accurate, consistent, and interoperable, which is essential for efficient and effective data management.

  • Consistency: Data standards ensure that data is consistent, accurate, and uniform across different systems and organizations. This consistency makes it easier to compare and analyze data, and reduces the risk of errors.
  • Interoperability: Data standards promote interoperability, which means that different systems can communicate and exchange data with each other. This is especially important in today's interconnected world where data needs to be shared across different platforms and devices.
  • Efficiency: Data standards help to streamline processes by reducing the time and resources required to manage data. When everyone uses the same standards, data can be processed faster and with fewer errors, saving time and money.
  • Compliance: Many industries have regulatory requirements for data management, such as the healthcare and finance industries. Data standards help organizations comply with these regulations by providing a framework for data management and ensuring that data is handled in a consistent and secure manner.

The Tesults JSON data standard is used for the core Tesults service, APIs and test framework integrations for popular test frameworks. If you are a test framework author and have questions or feedback please contact help@tesults.com.





Tesults - Release high quality software everytime

Test automation reporting and test case management for quality focused tech teams. 5 minute setup time.