From b4f528daf0cfc6da0d0301a12ff4d49a3f38c892 Mon Sep 17 00:00:00 2001 From: onevcat Date: Sun, 3 Oct 2021 23:44:56 +0900 Subject: [PATCH] Allow XCTest --- Tests/FengNiaoKitTests/FengNiaoKitSpec.swift | 5 +---- Tests/FengNiaoKitTests/FengNiaoKitTests.swift | 2 +- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/Tests/FengNiaoKitTests/FengNiaoKitSpec.swift b/Tests/FengNiaoKitTests/FengNiaoKitSpec.swift index d512589..09d5c14 100644 --- a/Tests/FengNiaoKitTests/FengNiaoKitSpec.swift +++ b/Tests/FengNiaoKitTests/FengNiaoKitSpec.swift @@ -27,8 +27,7 @@ import Spectre @testable import FengNiaoKit import PathKit -public func testFengNiaoKit() { -describe("FengNiaoKit") { +public let testFengNiaoKit: ((ContextType) -> Void) = { let fixtures = Path(#file).parent().parent() + "Fixtures" $0.describe("String Extensions") { @@ -463,8 +462,6 @@ describe("FengNiaoKit") { try expect(project.hasPrefix("\n")) == false } } - -} } public func == (lhs: Expectation<[String: Set]>, rhs: [String: Set]) throws { diff --git a/Tests/FengNiaoKitTests/FengNiaoKitTests.swift b/Tests/FengNiaoKitTests/FengNiaoKitTests.swift index 4e22fea..a1e08e7 100644 --- a/Tests/FengNiaoKitTests/FengNiaoKitTests.swift +++ b/Tests/FengNiaoKitTests/FengNiaoKitTests.swift @@ -26,7 +26,7 @@ import XCTest class FengNiaoKitTests: XCTestCase { func testRunSpectre() { - testFengNiaoKit() + describe("FengNiaoKit", testFengNiaoKit) } }