From c39a25f6366d25861c22e8c41c4f1bd08e8beaa1 Mon Sep 17 00:00:00 2001 From: Alex da Franca Date: Fri, 2 Aug 2024 13:53:45 +0200 Subject: [PATCH] Add regex pattern support Add tests --- Sources/Shell.swift | 8 +++++ Tests/LinuxMain.swift | 12 +++++++ .../findsimulatorTests.swift | 35 +++++++++++++++++++ 3 files changed, 55 insertions(+) create mode 100644 Sources/Shell.swift create mode 100644 Tests/LinuxMain.swift create mode 100644 Tests/findsimulatorTests/findsimulatorTests.swift diff --git a/Sources/Shell.swift b/Sources/Shell.swift new file mode 100644 index 0000000..720bec0 --- /dev/null +++ b/Sources/Shell.swift @@ -0,0 +1,8 @@ +// +// File.swift +// +// +// Created by Alex da Franca on 02.08.24. +// + +import Foundation diff --git a/Tests/LinuxMain.swift b/Tests/LinuxMain.swift new file mode 100644 index 0000000..6c620c4 --- /dev/null +++ b/Tests/LinuxMain.swift @@ -0,0 +1,12 @@ +// +// LinuxMain.swift +// +// Created by Alex da Franca on 26.12.21. +// + +import XcresultparserTests +import XCTest + +var tests = [XCTestCaseEntry]() +tests += XcresultparserTests.allTests() +XCTMain(tests) diff --git a/Tests/findsimulatorTests/findsimulatorTests.swift b/Tests/findsimulatorTests/findsimulatorTests.swift new file mode 100644 index 0000000..6c9a37b --- /dev/null +++ b/Tests/findsimulatorTests/findsimulatorTests.swift @@ -0,0 +1,35 @@ +// +// findsimulatorTests.swift +// +// +// Created by Alex da Franca on 02.08.24. +// + +import XCTest + +final class findsimulatorTests: XCTestCase { + + override func setUpWithError() throws { + // Put setup code here. This method is called before the invocation of each test method in the class. + } + + override func tearDownWithError() throws { + // Put teardown code here. This method is called after the invocation of each test method in the class. + } + + func testExample() throws { + // This is an example of a functional test case. + // Use XCTAssert and related functions to verify your tests produce the correct results. + // Any test you write for XCTest can be annotated as throws and async. + // Mark your test throws to produce an unexpected failure when your test encounters an uncaught error. + // Mark your test async to allow awaiting for asynchronous code to complete. Check the results with assertions afterwards. + } + + func testPerformanceExample() throws { + // This is an example of a performance test case. + self.measure { + // Put the code you want to measure the time of here. + } + } + +}