google / googletest

GoogleTest - Google Testing and Mocking Framework
https://google.github.io/googletest/
BSD 3-Clause "New" or "Revised" License
33.68k stars 9.98k forks source link

[FR]: Skipped reasons in JSON output #4507

Closed davidmatson closed 2 months ago

davidmatson commented 3 months ago

Does the feature exist in the most recent commit?

No

Why do we need this feature?

To be able to use JSON as a substitute for XML, including cases when the skip reason is significant.

Describe the proposal.

Include similar JSON for skip reasons (test part results) as is done for failures (test part results):

"skipped": [
  {
    "message": "<path>.cpp:5\nIt's good practice to provide the reason a test is being skipped.\n"
  }
]

Is the feature specific to an operating system, compiler, or build system version?

No