Specification icon indicating copy to clipboard operation
Specification copied to clipboard

Expected YAML output for multiple messages

Open torarnv opened this issue 3 years ago • 2 comments

The current spec describes a case for reporting messages via the YAML format:

TAP version 13
1..N
ok 1 Description # Directive
# Diagnostic
  ---
  message: 'Failure message'
  severity: fail
  data:
    got:
      - 1
      - 3
      - 2
    expect:
      - 1
      - 2
      - 3
  ...
ok 47 Description
ok 48 Description

What is the expected output when multiple messages are emitted?

  ---
    -
      message: 'Debug message'
      severity: debug
    -
      message: 'Warning message'
      severity: warning
  ...

This seems to be somewhat supported by the old archived spec, but breaks the assumption that the root namespace is a hash?

Do any producers or consumers today support this use-case in any way?

torarnv avatar Mar 17 '22 14:03 torarnv

See also #9

torarnv avatar Mar 17 '22 14:03 torarnv

The details of the yaml diagnostic block is still currently unspecified. (Apart from "it's YAML!")

It would be good to do a survey of implementations and see what overlap there is. If we have quorum, that'd be a good thing to provide some guidance on.

isaacs avatar Apr 19 '22 08:04 isaacs