Skip to content

Define and implement a stable JSON schema for output. #368

@plemarquand

Description

@plemarquand

Description

Experimental event streaming support was added in #286. Issues are reported as individual events with richly structured JSON that describe the failure. This is great for tools that need to work with and transform raw issues, but many tools will just want to use the human readable failure string, i.e: Expectation failed: 1 == 2.

Swift-testing has done a lot of work to build up a nice message, and it would be nice to avoid reimplementing this in other tools (and keeping it up to date).

Feature: Add a new message field to the issueRecorded event that provides the human readable failure string. Bonus points if there is a markdown version of the string, as many tools can render markdown directly.

Expected behavior

No response

Actual behavior

No response

Steps to reproduce

No response

swift-testing version/commit hash

No response

Swift & OS version (output of swift --version && uname -a)

No response

Metadata

Metadata

Labels

enhancementNew feature or requesttools integration🛠️ Integration of swift-testing into tools/IDEs

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions