Skip to content

Commit e8286a5

Browse files
committed
Add test case for Tag.baz
1 parent 11e34ce commit e8286a5

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

Tests/SourceKitLSPTests/DocumentTestDiscoveryTests.swift

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -704,6 +704,7 @@ final class DocumentTestDiscoveryTests: XCTestCase {
704704
extension Tag {
705705
@Tag static var foo: Self
706706
@Tag static var bar: Self
707+
@Tag static var baz: Self
707708
708709
struct Nested {
709710
@Tag static var foo: Tag
@@ -712,7 +713,7 @@ final class DocumentTestDiscoveryTests: XCTestCase {
712713
713714
1️⃣@Suite(.tags("Suites"))
714715
struct MyTests {
715-
2️⃣@Test(.tags(.foo, Nested.foo, Testing.Tag.bar))
716+
2️⃣@Test(.tags(.foo, Nested.foo, Testing.Tag.bar, Tag.baz))
716717
func oneIsTwo() {
717718
#expect(1 == 2)
718719
}3️⃣
@@ -739,7 +740,7 @@ final class DocumentTestDiscoveryTests: XCTestCase {
739740
style: TestStyle.swiftTesting,
740741
location: Location(uri: uri, range: positions["2️⃣"]..<positions["3️⃣"]),
741742
children: [],
742-
tags: [TestTag(id: "foo"), TestTag(id: "Nested.foo"), TestTag(id: "bar")]
743+
tags: [TestTag(id: "foo"), TestTag(id: "Nested.foo"), TestTag(id: "bar"), TestTag(id: "baz")]
743744
)
744745
],
745746
tags: [TestTag(id: "Suites")]

0 commit comments

Comments
 (0)