@@ -585,7 +585,7 @@ final class DocumentTestDiscoveryTests: XCTestCase {
585
585
)
586
586
}
587
587
588
- func testSwiftTestingTestWithStringTags ( ) async throws {
588
+ func testSwiftTestingTestWithTags ( ) async throws {
589
589
let testClient = try await TestSourceKitLSPClient ( )
590
590
let uri = DocumentURI . for ( . swift)
591
591
@@ -622,7 +622,7 @@ final class DocumentTestDiscoveryTests: XCTestCase {
622
622
style: TestStyle . swiftTesting,
623
623
location: Location ( uri: uri, range: positions [ " 2️⃣ " ] ..< positions [ " 3️⃣ " ] ) ,
624
624
children: [ ] ,
625
- tags: [ TestTag ( id: " red " ) , TestTag ( id: " blue " ) ]
625
+ tags: [ TestTag ( id: " . red" ) , TestTag ( id: " . blue" ) ]
626
626
)
627
627
] ,
628
628
tags: [ TestTag ( id: " green " ) ]
@@ -702,6 +702,7 @@ final class DocumentTestDiscoveryTests: XCTestCase {
702
702
import Testing
703
703
704
704
extension Tag {
705
+ @Tag static var suite: Self
705
706
@Tag static var foo: Self
706
707
@Tag static var bar: Self
707
708
@Tag static var baz: Self
@@ -711,7 +712,7 @@ final class DocumentTestDiscoveryTests: XCTestCase {
711
712
}
712
713
}
713
714
714
- 1️⃣@Suite(.tags( " Suites " ))
715
+ 1️⃣@Suite(.tags(.suite ))
715
716
struct MyTests {
716
717
2️⃣@Test(.tags(.foo, Nested.foo, Testing.Tag.bar, Tag.baz))
717
718
func oneIsTwo() {
@@ -740,10 +741,15 @@ final class DocumentTestDiscoveryTests: XCTestCase {
740
741
style: TestStyle . swiftTesting,
741
742
location: Location ( uri: uri, range: positions [ " 2️⃣ " ] ..< positions [ " 3️⃣ " ] ) ,
742
743
children: [ ] ,
743
- tags: [ TestTag ( id: " foo " ) , TestTag ( id: " Nested.foo " ) , TestTag ( id: " bar " ) , TestTag ( id: " baz " ) ]
744
+ tags: [
745
+ TestTag ( id: " .foo " ) ,
746
+ TestTag ( id: " Nested.foo " ) ,
747
+ TestTag ( id: " .bar " ) ,
748
+ TestTag ( id: " .baz " )
749
+ ]
744
750
)
745
751
] ,
746
- tags: [ TestTag ( id: " Suites " ) ]
752
+ tags: [ TestTag ( id: " .suite " ) ]
747
753
)
748
754
]
749
755
)
0 commit comments