From b3bda79c6da2b0ed35ed45d8356d17ca1afc4ba4 Mon Sep 17 00:00:00 2001 From: Bassam Khouri Date: Wed, 26 Nov 2025 15:45:19 -0500 Subject: [PATCH] Augment JSON ABI Add tags, bug and timeLimit traits to the test ABI JSON data. --- Documentation/ABI/JSON.md | 13 ++++++- .../Testing/ABI/Encoded/ABI.EncodedTest.swift | 36 +++++++++++++++---- Sources/Testing/Traits/Tags/Tag.swift | 4 +-- Tests/TestingTests/SwiftPMTests.swift | 31 ++++++++++++++-- 4 files changed, 72 insertions(+), 12 deletions(-) diff --git a/Documentation/ABI/JSON.md b/Documentation/ABI/JSON.md index e4ff24a4b..71d4f7a5b 100644 --- a/Documentation/ABI/JSON.md +++ b/Documentation/ABI/JSON.md @@ -157,10 +157,21 @@ additional `"testCases"` field describing the individual test cases. ["displayName": ,] ; the user-supplied custom display name "sourceLocation": , ; where the test is defined "id": , - "isParameterized": ; is this a parameterized test function or not? + "isParameterized": , ; is this a parameterized test function or not? + ["tags": ,] ; the tags associated with this test function + ["bugs": ,] ; the bugs associated with this test function + ["timeLimit": ] ; the time limit associated with this test function } ::= ; an opaque string representing the test case + + ::= "." ; a string representation of a tag + + ::= { + ["url": ,] ; the bug URL + ["id": ,] ; the bug id + ["title": ] ; the human readable bug title +} ; ```