Skip to content

Commit

Permalink
Fixed flakey tests
Browse files Browse the repository at this point in the history
  • Loading branch information
bok- committed Dec 11, 2024
1 parent 4d9cc8c commit 18de7e6
Show file tree
Hide file tree
Showing 14 changed files with 274 additions and 314 deletions.
12 changes: 0 additions & 12 deletions Tests/VexilTests/BoxedFlagValueDecodingTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -15,18 +15,6 @@ import Foundation
import Testing
@testable import Vexil

#if compiler(<6)

import XCTest

final class BoxedFlagValueDecodingTestCase: XCTestCase {
func testSwiftTesting() async {
await XCTestScaffold.runTestsInSuite(BoxedFlagValueDecodingTests.self, hostedBy: self)
}
}

#endif

@Suite("BoxedFlagValue decoding", .tags(.boxing, .codable))
struct BoxedFlagValueDecodingTests {

Expand Down
12 changes: 0 additions & 12 deletions Tests/VexilTests/BoxedFlagValueEncodingTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -15,18 +15,6 @@ import Foundation
import Testing
@testable import Vexil

#if compiler(<6)

import XCTest

final class BoxedFlagValueEncodingTestCase: XCTestCase {
func testSwiftTesting() async {
await XCTestScaffold.runTestsInSuite(BoxedFlagValueEncodingTests.self, hostedBy: self)
}
}

#endif

@Suite("BoxedFlagValue encoding", .tags(.boxing, .codable))
struct BoxedFlagValueEncodingTests {

Expand Down
12 changes: 0 additions & 12 deletions Tests/VexilTests/EquatableTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -18,18 +18,6 @@ import Combine
import Testing
@testable import Vexil

#if compiler(<6)

import XCTest

final class EquatableTestCase: XCTestCase {
func testSwiftTesting() async {
await XCTestScaffold.runTestsInSuite(EquatableTests.self, hostedBy: self)
}
}

#endif

@Suite("Equatable Tests", .tags(.pole))
struct EquatableTests {

Expand Down
12 changes: 0 additions & 12 deletions Tests/VexilTests/FlagDetailTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -14,18 +14,6 @@
import Testing
import Vexil

#if compiler(<6)

import XCTest

final class FlagDetailTestCase: XCTestCase {
func testSwiftTesting() async {
await XCTestScaffold.runTestsInSuite(FlagDetailTests.self, hostedBy: self)
}
}

#endif

@Suite("Flag Details")
struct FlagDetailTests {

Expand Down
12 changes: 0 additions & 12 deletions Tests/VexilTests/FlagPoleTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -15,18 +15,6 @@ import Foundation
import Testing
@testable import Vexil

#if compiler(<6)

import XCTest

final class FlagPoleTestCase: XCTestCase {
func testSwiftTesting() async {
await XCTestScaffold.runTestsInSuite(FlagPoleTests.self, hostedBy: self)
}
}

#endif

@Suite("Flag Pole")
struct FlagPoleTests {

Expand Down
12 changes: 0 additions & 12 deletions Tests/VexilTests/FlagValueBoxingTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -15,18 +15,6 @@ import Foundation
import Testing
@testable import Vexil

#if compiler(<6)

import XCTest

final class FlagValueBoxingTestCase: XCTestCase {
func testSwiftTesting() async {
await XCTestScaffold.runTestsInSuite(FlagValueBoxingTests.self, hostedBy: self)
}
}

#endif

@Suite("Flag Value Boxing", .tags(.boxing))
struct FlagValueBoxingTests {

Expand Down
12 changes: 0 additions & 12 deletions Tests/VexilTests/FlagValueCompilationTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -15,18 +15,6 @@ import Foundation
import Testing
@testable import Vexil

#if compiler(<6)

import XCTest

final class FlagValueCompilationTestCase: XCTestCase {
func testSwiftTesting() async {
await XCTestScaffold.runTestsInSuite(FlagValueCompilationTests.self, hostedBy: self)
}
}

#endif

/// A series of trivial equality tests
///
/// These are here not because we need to test the setting or
Expand Down
12 changes: 0 additions & 12 deletions Tests/VexilTests/FlagValueDictionaryTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -15,18 +15,6 @@ import Foundation
import Testing
@testable import Vexil

#if compiler(<6)

import XCTest

final class FlagValueDictionaryTestCase: XCTestCase {
func testSwiftTesting() async {
await XCTestScaffold.runTestsInSuite(FlagValueDictionaryTests.self, hostedBy: self)
}
}

#endif

@Suite("FlagValueDictionary", .tags(.dictionary))
struct FlagValueDictionaryTests {

Expand Down
12 changes: 0 additions & 12 deletions Tests/VexilTests/FlagValueSourceTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -15,18 +15,6 @@ import Foundation
import Testing
@testable import Vexil

#if compiler(<6)

import XCTest

final class FlagValueSourceTestCase: XCTestCase {
func testSwiftTesting() async {
await XCTestScaffold.runTestsInSuite(FlagValueSourceTests.self, hostedBy: self)
}
}

#endif

@Suite("FlagValueSource", .tags(.pole, .source))
struct FlagValueSourceTests {

Expand Down
12 changes: 0 additions & 12 deletions Tests/VexilTests/FlagValueUnboxingTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -15,18 +15,6 @@ import Foundation
import Testing
@testable import Vexil

#if compiler(<6)

import XCTest

final class FlagValueUnboxingTestCase: XCTestCase {
func testSwiftTesting() async {
await XCTestScaffold.runTestsInSuite(FlagValueUnboxingTests.self, hostedBy: self)
}
}

#endif

@Suite("Flag Value Unboxing", .tags(.boxing))
struct FlagValueUnboxingTests {

Expand Down
12 changes: 0 additions & 12 deletions Tests/VexilTests/KeyEncodingTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -14,18 +14,6 @@
import Testing
import Vexil

#if compiler(<6)

import XCTest

final class KeyEncodingTestCase: XCTestCase {
func testSwiftTesting() async {
await XCTestScaffold.runTestsInSuite(KeyEncodingTests.self, hostedBy: self)
}
}

#endif

@Suite("Key Encoding", .tags(.pole))
struct KeyEncodingTests {

Expand Down
12 changes: 0 additions & 12 deletions Tests/VexilTests/SnapshotTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -14,18 +14,6 @@
import Testing
import Vexil

#if compiler(<6)

import XCTest

final class SnapshotTestCase: XCTestCase {
func testSwiftTesting() async {
await XCTestScaffold.runTestsInSuite(SnapshotTests.self, hostedBy: self)
}
}

#endif

@Suite("Snapshots", .tags(.pole, .snapshot))
struct SnapshotTests {

Expand Down
Loading

0 comments on commit 18de7e6

Please sign in to comment.