diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index c750412cb..ce4a55b70 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -9,15 +9,24 @@ on: - '*' jobs: + cocoapods: + name: CocoaPods Lint + runs-on: macOS-latest + steps: + - uses: actions/checkout@v2 + - run: sudo xcode-select -s '/Applications/Xcode_11.4.app' + - run: gem install bundler:1.17.3 && bundle install + - run: ./test podspec + xcode: name: Xcode ${{ matrix.xcode }} - ${{ matrix.platform }} runs-on: macOS-latest strategy: matrix: - xcode: [11, 11.1, 11.2] + xcode: [11.4] platform: [macos, ios, tvos, macos_xcodespm, ios_xcodespm] steps: - - uses: actions/checkout@v1 + - uses: actions/checkout@v2 - run: sudo xcode-select -s '/Applications/Xcode_${{ matrix.xcode }}.app' - run: ./test ${{ matrix.platform }} @@ -26,8 +35,8 @@ jobs: runs-on: macOS-latest strategy: matrix: - xcode: [11, 11.1, 11.2] + xcode: [11.4] steps: - - uses: actions/checkout@v1 + - uses: actions/checkout@v2 - run: sudo xcode-select -s '/Applications/Xcode_${{ matrix.xcode }}.app' - run: ./test swiftpm diff --git a/.travis.yml b/.travis.yml index 9c6940242..cdda611ad 100644 --- a/.travis.yml +++ b/.travis.yml @@ -3,46 +3,38 @@ branches: - master language: generic -matrix: +jobs: include: - - &cocoapods - name: CocoaPods Lint - os: osx - osx_image: xcode10.3 - install: bundle install - script: ./test podspec - - &xcode - name: Xcode 10.3 / Swift 5.0 - os: osx - osx_image: xcode10.3 - script: - - ./test macos - - ./test ios - - ./test tvos - - &swiftpm_darwin - name: SwiftPM / Darwin / Swift 5.0 - os: osx - osx_image: xcode10.3 - script: ./test swiftpm + # - &xcode + # name: Xcode 10.3 / Swift 5.0 + # os: osx + # osx_image: xcode10.3 + # script: + # - ./test macos + # - ./test ios + # - ./test tvos + # - &swiftpm_darwin + # name: SwiftPM / Darwin / Swift 5.0 + # os: osx + # osx_image: xcode10.3 + # script: ./test swiftpm - &swiftpm_linux - name: SwiftPM / Linux / Swift 5.0.3 + name: SwiftPM / Linux / Swift 5.2 os: linux - dist: trusty - sudo: required env: - - SWIFT_VERSION=5.0.3 + - SWIFT_VERSION=5.2 install: - eval "$(curl -sL https://swiftenv.fuller.li/install.sh)" script: - ./test swiftpm - - <<: *swiftpm_linux - name: SwiftPM / Linux / Swift 5.1 - env: - - SWIFT_VERSION=5.1 - - <<: *swiftpm_linux - name: SwiftPM / Linux / Swift Development - env: - - SWIFT_VERSION=DEVELOPMENT-SNAPSHOT-2019-09-26-a + # - <<: *swiftpm_linux + # name: SwiftPM / Linux / Swift 5.3 + # env: + # - SWIFT_VERSION=5.3 + # - <<: *swiftpm_linux + # name: SwiftPM / Linux / Swift Development + # env: + # - SWIFT_VERSION=DEVELOPMENT-SNAPSHOT-2020-02-21-a install: true script: - ./test $TYPE diff --git a/Gemfile b/Gemfile index adb8306b7..847d7eaf1 100644 --- a/Gemfile +++ b/Gemfile @@ -1,4 +1,4 @@ # A sample Gemfile source "https://rubygems.org" -gem 'cocoapods', '~> 1.7' +gem 'cocoapods', '~> 1.9' diff --git a/Gemfile.lock b/Gemfile.lock index 690067edc..adc515857 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -1,24 +1,27 @@ GEM remote: https://rubygems.org/ specs: - CFPropertyList (3.0.1) + CFPropertyList (3.0.2) activesupport (4.2.11.1) i18n (~> 0.7) minitest (~> 5.1) thread_safe (~> 0.3, >= 0.3.4) tzinfo (~> 1.1) + algoliasearch (1.27.1) + httpclient (~> 2.8, >= 2.8.3) + json (>= 1.5.1) atomos (0.1.3) claide (1.0.3) - cocoapods (1.7.5) + cocoapods (1.9.1) activesupport (>= 4.0.2, < 5) claide (>= 1.0.2, < 2.0) - cocoapods-core (= 1.7.5) + cocoapods-core (= 1.9.1) cocoapods-deintegrate (>= 1.0.3, < 2.0) cocoapods-downloader (>= 1.2.2, < 2.0) cocoapods-plugins (>= 1.0.0, < 2.0) cocoapods-search (>= 1.0.0, < 2.0) cocoapods-stats (>= 1.0.0, < 2.0) - cocoapods-trunk (>= 1.3.1, < 2.0) + cocoapods-trunk (>= 1.4.0, < 2.0) cocoapods-try (>= 1.1.0, < 2.0) colored2 (~> 3.1) escape (~> 0.0.4) @@ -27,39 +30,50 @@ GEM molinillo (~> 0.6.6) nap (~> 1.0) ruby-macho (~> 1.4) - xcodeproj (>= 1.10.0, < 2.0) - cocoapods-core (1.7.5) + xcodeproj (>= 1.14.0, < 2.0) + cocoapods-core (1.9.1) activesupport (>= 4.0.2, < 6) + algoliasearch (~> 1.0) + concurrent-ruby (~> 1.1) fuzzy_match (~> 2.0.4) nap (~> 1.0) + netrc (~> 0.11) + typhoeus (~> 1.0) cocoapods-deintegrate (1.0.4) - cocoapods-downloader (1.2.2) + cocoapods-downloader (1.3.0) cocoapods-plugins (1.0.0) nap cocoapods-search (1.0.0) cocoapods-stats (1.1.0) - cocoapods-trunk (1.4.0) + cocoapods-trunk (1.4.1) nap (>= 0.8, < 2.0) netrc (~> 0.11) cocoapods-try (1.1.0) colored2 (3.1.2) - concurrent-ruby (1.1.5) + concurrent-ruby (1.1.6) escape (0.0.4) + ethon (0.12.0) + ffi (>= 1.3.0) + ffi (1.12.2) fourflusher (2.3.1) fuzzy_match (2.0.4) gh_inspector (1.1.3) + httpclient (2.8.3) i18n (0.9.5) concurrent-ruby (~> 1.0) - minitest (5.11.3) + json (2.3.0) + minitest (5.14.0) molinillo (0.6.6) nanaimo (0.2.6) nap (1.1.0) netrc (0.11.0) ruby-macho (1.4.0) thread_safe (0.3.6) - tzinfo (1.2.5) + typhoeus (1.3.1) + ethon (>= 0.9.0) + tzinfo (1.2.6) thread_safe (~> 0.1) - xcodeproj (1.12.0) + xcodeproj (1.15.0) CFPropertyList (>= 2.3.3, < 4.0) atomos (~> 0.1.3) claide (>= 1.0.2, < 2.0) @@ -70,7 +84,7 @@ PLATFORMS ruby DEPENDENCIES - cocoapods (~> 1.7) + cocoapods (~> 1.9) BUNDLED WITH 1.17.3 diff --git a/Package.swift b/Package.swift index ffae4de28..8e0e62d45 100644 --- a/Package.swift +++ b/Package.swift @@ -1,4 +1,4 @@ -// swift-tools-version:5.0 +// swift-tools-version:5.2 import PackageDescription let package = Package( @@ -17,7 +17,10 @@ let package = Package( name: "Nimble", dependencies: { #if os(macOS) - return ["CwlPreconditionTesting", "CwlPosixPreconditionTesting"] + return [ + "CwlPreconditionTesting", + .product(name: "CwlPosixPreconditionTesting", package: "CwlPreconditionTesting") + ] #else return [] #endif diff --git a/Tests/NimbleTests/XCTestManifests.swift b/Tests/NimbleTests/XCTestManifests.swift deleted file mode 100644 index 3879b1e2c..000000000 --- a/Tests/NimbleTests/XCTestManifests.swift +++ /dev/null @@ -1,511 +0,0 @@ -#if !canImport(ObjectiveC) -import XCTest - -extension AllPassTest { - // DO NOT MODIFY: This is autogenerated, use: - // `swift test --generate-linuxmain` - // to regenerate. - static let __allTests__AllPassTest = [ - ("testAllPassArray", testAllPassArray), - ("testAllPassCollectionsWithOptionalsDontWork", testAllPassCollectionsWithOptionalsDontWork), - ("testAllPassCollectionsWithOptionalsUnwrappingOneOptionalLayer", testAllPassCollectionsWithOptionalsUnwrappingOneOptionalLayer), - ("testAllPassMatcher", testAllPassMatcher), - ("testAllPassSet", testAllPassSet), - ("testAllPassWithNilAsExpectedValue", testAllPassWithNilAsExpectedValue), - ] -} - -extension AsyncTest { - // DO NOT MODIFY: This is autogenerated, use: - // `swift test --generate-linuxmain` - // to regenerate. - static let __allTests__AsyncTest = [ - ("testCombiningAsyncWaitUntilAndToEventuallyIsNotAllowed", testCombiningAsyncWaitUntilAndToEventuallyIsNotAllowed), - ("testSubjectUnderTestIsReleasedFromMemory", testSubjectUnderTestIsReleasedFromMemory), - ("testToEventuallyMustBeInMainThread", testToEventuallyMustBeInMainThread), - ("testToEventuallyNegativeMatches", testToEventuallyNegativeMatches), - ("testToEventuallyPositiveMatches", testToEventuallyPositiveMatches), - ("testToEventuallyWithCustomDefaultTimeout", testToEventuallyWithCustomDefaultTimeout), - ("testWaitUntilDetectsStalledMainThreadActivity", testWaitUntilDetectsStalledMainThreadActivity), - ("testWaitUntilErrorsIfDoneIsCalledMultipleTimes", testWaitUntilErrorsIfDoneIsCalledMultipleTimes), - ("testWaitUntilMustBeInMainThread", testWaitUntilMustBeInMainThread), - ("testWaitUntilNegativeMatches", testWaitUntilNegativeMatches), - ("testWaitUntilPositiveMatches", testWaitUntilPositiveMatches), - ("testWaitUntilTimesOutIfNotCalled", testWaitUntilTimesOutIfNotCalled), - ("testWaitUntilTimesOutWhenExceedingItsTime", testWaitUntilTimesOutWhenExceedingItsTime), - ("testWaitUntilWithCustomDefaultsTimeout", testWaitUntilWithCustomDefaultsTimeout), - ] -} - -extension BeAKindOfObjCTest { - // DO NOT MODIFY: This is autogenerated, use: - // `swift test --generate-linuxmain` - // to regenerate. - static let __allTests__BeAKindOfObjCTest = [ - ("testFailureMessages", testFailureMessages), - ("testPositiveMatch", testPositiveMatch), - ] -} - -extension BeAKindOfSwiftTest { - // DO NOT MODIFY: This is autogenerated, use: - // `swift test --generate-linuxmain` - // to regenerate. - static let __allTests__BeAKindOfSwiftTest = [ - ("testFailureMessages", testFailureMessages), - ("testPositiveMatch", testPositiveMatch), - ] -} - -extension BeAnInstanceOfTest { - // DO NOT MODIFY: This is autogenerated, use: - // `swift test --generate-linuxmain` - // to regenerate. - static let __allTests__BeAnInstanceOfTest = [ - ("testFailureMessages", testFailureMessages), - ("testFailureMessagesSwiftTypes", testFailureMessagesSwiftTypes), - ("testPositiveMatch", testPositiveMatch), - ("testPositiveMatchSwiftTypes", testPositiveMatchSwiftTypes), - ] -} - -extension BeCloseToTest { - // DO NOT MODIFY: This is autogenerated, use: - // `swift test --generate-linuxmain` - // to regenerate. - static let __allTests__BeCloseToTest = [ - ("testBeCloseTo", testBeCloseTo), - ("testBeCloseToArray", testBeCloseToArray), - ("testBeCloseToOperator", testBeCloseToOperator), - ("testBeCloseToOperatorWithDate", testBeCloseToOperatorWithDate), - ("testBeCloseToWithCGFloat", testBeCloseToWithCGFloat), - ("testBeCloseToWithDate", testBeCloseToWithDate), - ("testBeCloseToWithin", testBeCloseToWithin), - ("testBeCloseToWithinOperator", testBeCloseToWithinOperator), - ("testBeCloseToWithinOperatorWithDate", testBeCloseToWithinOperatorWithDate), - ("testBeCloseToWithNSDate", testBeCloseToWithNSDate), - ("testBeCloseToWithNSNumber", testBeCloseToWithNSNumber), - ("testPlusMinusOperator", testPlusMinusOperator), - ("testPlusMinusOperatorWithDate", testPlusMinusOperatorWithDate), - ] -} - -extension BeEmptyTest { - // DO NOT MODIFY: This is autogenerated, use: - // `swift test --generate-linuxmain` - // to regenerate. - static let __allTests__BeEmptyTest = [ - ("testBeEmptyNegative", testBeEmptyNegative), - ("testBeEmptyPositive", testBeEmptyPositive), - ("testNilMatches", testNilMatches), - ] -} - -extension BeFalseTest { - // DO NOT MODIFY: This is autogenerated, use: - // `swift test --generate-linuxmain` - // to regenerate. - static let __allTests__BeFalseTest = [ - ("testShouldMatchFalse", testShouldMatchFalse), - ("testShouldNotMatchNilBools", testShouldNotMatchNilBools), - ("testShouldNotMatchTrue", testShouldNotMatchTrue), - ] -} - -extension BeFalsyTest { - // DO NOT MODIFY: This is autogenerated, use: - // `swift test --generate-linuxmain` - // to regenerate. - static let __allTests__BeFalsyTest = [ - ("testShouldMatchFalse", testShouldMatchFalse), - ("testShouldMatchNilBools", testShouldMatchNilBools), - ("testShouldMatchNilTypes", testShouldMatchNilTypes), - ("testShouldNotMatchNonNilTypes", testShouldNotMatchNonNilTypes), - ("testShouldNotMatchTrue", testShouldNotMatchTrue), - ] -} - -extension BeGreaterThanOrEqualToTest { - // DO NOT MODIFY: This is autogenerated, use: - // `swift test --generate-linuxmain` - // to regenerate. - static let __allTests__BeGreaterThanOrEqualToTest = [ - ("testGreaterThanOrEqualTo", testGreaterThanOrEqualTo), - ("testGreaterThanOrEqualToOperator", testGreaterThanOrEqualToOperator), - ] -} - -extension BeGreaterThanTest { - // DO NOT MODIFY: This is autogenerated, use: - // `swift test --generate-linuxmain` - // to regenerate. - static let __allTests__BeGreaterThanTest = [ - ("testGreaterThan", testGreaterThan), - ("testGreaterThanOperator", testGreaterThanOperator), - ] -} - -extension BeIdenticalToObjectTest { - // DO NOT MODIFY: This is autogenerated, use: - // `swift test --generate-linuxmain` - // to regenerate. - static let __allTests__BeIdenticalToObjectTest = [ - ("testBeIdenticalToNegative", testBeIdenticalToNegative), - ("testBeIdenticalToNegativeMessage", testBeIdenticalToNegativeMessage), - ("testBeIdenticalToPositive", testBeIdenticalToPositive), - ("testBeIdenticalToPositiveMessage", testBeIdenticalToPositiveMessage), - ("testFailsOnNils", testFailsOnNils), - ("testOperators", testOperators), - ] -} - -extension BeIdenticalToTest { - // DO NOT MODIFY: This is autogenerated, use: - // `swift test --generate-linuxmain` - // to regenerate. - static let __allTests__BeIdenticalToTest = [ - ("testBeAlias", testBeAlias), - ("testBeIdenticalToNegative", testBeIdenticalToNegative), - ("testBeIdenticalToNegativeMessage", testBeIdenticalToNegativeMessage), - ("testBeIdenticalToPositive", testBeIdenticalToPositive), - ("testBeIdenticalToPositiveMessage", testBeIdenticalToPositiveMessage), - ("testOperators", testOperators), - ] -} - -extension BeLessThanOrEqualToTest { - // DO NOT MODIFY: This is autogenerated, use: - // `swift test --generate-linuxmain` - // to regenerate. - static let __allTests__BeLessThanOrEqualToTest = [ - ("testLessThanOrEqualTo", testLessThanOrEqualTo), - ("testLessThanOrEqualToOperator", testLessThanOrEqualToOperator), - ] -} - -extension BeLessThanTest { - // DO NOT MODIFY: This is autogenerated, use: - // `swift test --generate-linuxmain` - // to regenerate. - static let __allTests__BeLessThanTest = [ - ("testLessThan", testLessThan), - ("testLessThanOperator", testLessThanOperator), - ] -} - -extension BeNilTest { - // DO NOT MODIFY: This is autogenerated, use: - // `swift test --generate-linuxmain` - // to regenerate. - static let __allTests__BeNilTest = [ - ("testBeNil", testBeNil), - ] -} - -extension BeTrueTest { - // DO NOT MODIFY: This is autogenerated, use: - // `swift test --generate-linuxmain` - // to regenerate. - static let __allTests__BeTrueTest = [ - ("testShouldMatchTrue", testShouldMatchTrue), - ("testShouldNotMatchFalse", testShouldNotMatchFalse), - ("testShouldNotMatchNilBools", testShouldNotMatchNilBools), - ] -} - -extension BeTruthyTest { - // DO NOT MODIFY: This is autogenerated, use: - // `swift test --generate-linuxmain` - // to regenerate. - static let __allTests__BeTruthyTest = [ - ("testShouldMatchBoolConvertibleTypesThatConvertToTrue", testShouldMatchBoolConvertibleTypesThatConvertToTrue), - ("testShouldMatchNonNilTypes", testShouldMatchNonNilTypes), - ("testShouldMatchTrue", testShouldMatchTrue), - ("testShouldNotMatchBoolConvertibleTypesThatConvertToFalse", testShouldNotMatchBoolConvertibleTypesThatConvertToFalse), - ("testShouldNotMatchFalse", testShouldNotMatchFalse), - ("testShouldNotMatchNilBools", testShouldNotMatchNilBools), - ("testShouldNotMatchNilTypes", testShouldNotMatchNilTypes), - ] -} - -extension BeVoidTest { - // DO NOT MODIFY: This is autogenerated, use: - // `swift test --generate-linuxmain` - // to regenerate. - static let __allTests__BeVoidTest = [ - ("testBeVoid", testBeVoid), - ] -} - -extension BeginWithTest { - // DO NOT MODIFY: This is autogenerated, use: - // `swift test --generate-linuxmain` - // to regenerate. - static let __allTests__BeginWithTest = [ - ("testNegativeMatches", testNegativeMatches), - ("testPositiveMatches", testPositiveMatches), - ] -} - -extension ContainElementSatisfyingTest { - // DO NOT MODIFY: This is autogenerated, use: - // `swift test --generate-linuxmain` - // to regenerate. - static let __allTests__ContainElementSatisfyingTest = [ - ("testContainElementSatisfying", testContainElementSatisfying), - ("testContainElementSatisfyingDefaultErrorMessage", testContainElementSatisfyingDefaultErrorMessage), - ("testContainElementSatisfyingNegativeCase", testContainElementSatisfyingNegativeCase), - ("testContainElementSatisfyingNegativeCaseDefaultErrorMessage", testContainElementSatisfyingNegativeCaseDefaultErrorMessage), - ("testContainElementSatisfyingNegativeCaseSpecificErrorMessage", testContainElementSatisfyingNegativeCaseSpecificErrorMessage), - ("testContainElementSatisfyingSpecificErrorMessage", testContainElementSatisfyingSpecificErrorMessage), - ] -} - -extension ContainTest { - // DO NOT MODIFY: This is autogenerated, use: - // `swift test --generate-linuxmain` - // to regenerate. - static let __allTests__ContainTest = [ - ("testCollectionArguments", testCollectionArguments), - ("testContainObjCSubstring", testContainObjCSubstring), - ("testContainSequence", testContainSequence), - ("testContainSequenceAndSetAlgebra", testContainSequenceAndSetAlgebra), - ("testContainSetAlgebra", testContainSetAlgebra), - ("testContainSubstring", testContainSubstring), - ("testVariadicArguments", testVariadicArguments), - ] -} - -extension ElementsEqualTest { - // DO NOT MODIFY: This is autogenerated, use: - // `swift test --generate-linuxmain` - // to regenerate. - static let __allTests__ElementsEqualTest = [ - ("testElementsEqualDifferentSequenceTypes", testElementsEqualDifferentSequenceTypes), - ("testSequenceElementsEquality", testSequenceElementsEquality), - ("testSequenceElementsEqualityUsingPredicateClosure", testSequenceElementsEqualityUsingPredicateClosure), - ] -} - -extension EndWithTest { - // DO NOT MODIFY: This is autogenerated, use: - // `swift test --generate-linuxmain` - // to regenerate. - static let __allTests__EndWithTest = [ - ("testEndWithNegatives", testEndWithNegatives), - ("testEndWithPositives", testEndWithPositives), - ] -} - -extension EqualTest { - // DO NOT MODIFY: This is autogenerated, use: - // `swift test --generate-linuxmain` - // to regenerate. - static let __allTests__EqualTest = [ - ("testArrayEquality", testArrayEquality), - ("testArrayOfOptionalsEquality", testArrayOfOptionalsEquality), - ("testDataEquality", testDataEquality), - ("testDictionariesWithDifferentSequences", testDictionariesWithDifferentSequences), - ("testDictionaryEquality", testDictionaryEquality), - ("testDoesNotMatchNils", testDoesNotMatchNils), - ("testEquality", testEquality), - ("testNSObjectEquality", testNSObjectEquality), - ("testOperatorEquality", testOperatorEquality), - ("testOperatorEqualityWithArrays", testOperatorEqualityWithArrays), - ("testOperatorEqualityWithDictionaries", testOperatorEqualityWithDictionaries), - ("testOptionalEquality", testOptionalEquality), - ("testSetEquality", testSetEquality), - ] -} - -extension HaveCountTest { - // DO NOT MODIFY: This is autogenerated, use: - // `swift test --generate-linuxmain` - // to regenerate. - static let __allTests__HaveCountTest = [ - ("testHaveCountForArray", testHaveCountForArray), - ("testHaveCountForDictionary", testHaveCountForDictionary), - ("testHaveCountForSet", testHaveCountForSet), - ] -} - -extension MatchErrorTest { - // DO NOT MODIFY: This is autogenerated, use: - // `swift test --generate-linuxmain` - // to regenerate. - static let __allTests__MatchErrorTest = [ - ("testDoesNotMatchNils", testDoesNotMatchNils), - ("testMatchErrorNegative", testMatchErrorNegative), - ("testMatchErrorPositive", testMatchErrorPositive), - ("testMatchNegativeMessage", testMatchNegativeMessage), - ("testMatchNSErrorNegative", testMatchNSErrorNegative), - ("testMatchNSErrorPositive", testMatchNSErrorPositive), - ("testMatchPositiveMessage", testMatchPositiveMessage), - ] -} - -extension MatchTest { - // DO NOT MODIFY: This is autogenerated, use: - // `swift test --generate-linuxmain` - // to regenerate. - static let __allTests__MatchTest = [ - ("testMatchNegative", testMatchNegative), - ("testMatchNegativeMessage", testMatchNegativeMessage), - ("testMatchNils", testMatchNils), - ("testMatchPositive", testMatchPositive), - ("testMatchPositiveMessage", testMatchPositiveMessage), - ] -} - -extension PostNotificationTest { - // DO NOT MODIFY: This is autogenerated, use: - // `swift test --generate-linuxmain` - // to regenerate. - static let __allTests__PostNotificationTest = [ - ("testFailsWhenNoNotificationsArePosted", testFailsWhenNoNotificationsArePosted), - ("testFailsWhenNotificationWithWrongNameIsPosted", testFailsWhenNotificationWithWrongNameIsPosted), - ("testFailsWhenNotificationWithWrongObjectIsPosted", testFailsWhenNotificationWithWrongObjectIsPosted), - ("testPassesWhenAllExpectedNotificationsArePosted", testPassesWhenAllExpectedNotificationsArePosted), - ("testPassesWhenExpectedNotificationEventuallyIsPosted", testPassesWhenExpectedNotificationEventuallyIsPosted), - ("testPassesWhenExpectedNotificationIsPosted", testPassesWhenExpectedNotificationIsPosted), - ("testPassesWhenNoNotificationsArePosted", testPassesWhenNoNotificationsArePosted), - ] -} - -extension SatisfyAllOfTest { - // DO NOT MODIFY: This is autogenerated, use: - // `swift test --generate-linuxmain` - // to regenerate. - static let __allTests__SatisfyAllOfTest = [ - ("testOperatorAnd", testOperatorAnd), - ("testSatisfyAllOf", testSatisfyAllOf), - ] -} - -extension SatisfyAnyOfTest { - // DO NOT MODIFY: This is autogenerated, use: - // `swift test --generate-linuxmain` - // to regenerate. - static let __allTests__SatisfyAnyOfTest = [ - ("testOperatorOr", testOperatorOr), - ("testSatisfyAnyOf", testSatisfyAnyOf), - ] -} - -extension SynchronousTest { - // DO NOT MODIFY: This is autogenerated, use: - // `swift test --generate-linuxmain` - // to regenerate. - static let __allTests__SynchronousTest = [ - ("testFailAlwaysFails", testFailAlwaysFails), - ("testNotToMatchesLikeToNot", testNotToMatchesLikeToNot), - ("testToMatchAgainstLazyProperties", testToMatchAgainstLazyProperties), - ("testToMatchesIfMatcherReturnsTrue", testToMatchesIfMatcherReturnsTrue), - ("testToNegativeMatches", testToNegativeMatches), - ("testToNotMatchesIfMatcherReturnsTrue", testToNotMatchesIfMatcherReturnsTrue), - ("testToNotNegativeMatches", testToNotNegativeMatches), - ("testToNotProvidesActualValueExpression", testToNotProvidesActualValueExpression), - ("testToNotProvidesAMemoizedActualValueExpression", testToNotProvidesAMemoizedActualValueExpression), - ("testToNotProvidesAMemoizedActualValueExpressionIsEvaluatedAtMatcherControl", testToNotProvidesAMemoizedActualValueExpressionIsEvaluatedAtMatcherControl), - ("testToProvidesActualValueExpression", testToProvidesActualValueExpression), - ("testToProvidesAMemoizedActualValueExpression", testToProvidesAMemoizedActualValueExpression), - ("testToProvidesAMemoizedActualValueExpressionIsEvaluatedAtMatcherControl", testToProvidesAMemoizedActualValueExpressionIsEvaluatedAtMatcherControl), - ("testUnexpectedErrorsThrownFails", testUnexpectedErrorsThrownFails), - ] -} - -extension ThrowAssertionTest { - // DO NOT MODIFY: This is autogenerated, use: - // `swift test --generate-linuxmain` - // to regenerate. - static let __allTests__ThrowAssertionTest = [ - ("testErrorThrown", testErrorThrown), - ("testNegativeMatch", testNegativeMatch), - ("testNegativeMessage", testNegativeMessage), - ("testNonVoidClosure", testNonVoidClosure), - ("testPositiveMatch", testPositiveMatch), - ("testPositiveMessage", testPositiveMessage), - ("testPostAssertionCodeNotRun", testPostAssertionCodeNotRun), - ] -} - -extension ThrowErrorTest { - // DO NOT MODIFY: This is autogenerated, use: - // `swift test --generate-linuxmain` - // to regenerate. - static let __allTests__ThrowErrorTest = [ - ("testNegativeMatches", testNegativeMatches), - ("testNegativeMatchesDoNotCallClosureWithoutError", testNegativeMatchesDoNotCallClosureWithoutError), - ("testNegativeMatchesWithClosure", testNegativeMatchesWithClosure), - ("testNegativeNegatedMatches", testNegativeNegatedMatches), - ("testNonVoidClosure", testNonVoidClosure), - ("testPositiveMatches", testPositiveMatches), - ("testPositiveMatchesWithClosures", testPositiveMatchesWithClosures), - ("testPositiveNegatedMatches", testPositiveNegatedMatches), - ] -} - -extension ToSucceedTest { - // DO NOT MODIFY: This is autogenerated, use: - // `swift test --generate-linuxmain` - // to regenerate. - static let __allTests__ToSucceedTest = [ - ("testToSucceed", testToSucceed), - ] -} - -extension UserDescriptionTest { - // DO NOT MODIFY: This is autogenerated, use: - // `swift test --generate-linuxmain` - // to regenerate. - static let __allTests__UserDescriptionTest = [ - ("testNotToMatcher_CustomFailureMessage", testNotToMatcher_CustomFailureMessage), - ("testToEventuallyMatch_CustomFailureMessage", testToEventuallyMatch_CustomFailureMessage), - ("testToEventuallyNotMatch_CustomFailureMessage", testToEventuallyNotMatch_CustomFailureMessage), - ("testToMatcher_CustomFailureMessage", testToMatcher_CustomFailureMessage), - ("testToNotEventuallyMatch_CustomFailureMessage", testToNotEventuallyMatch_CustomFailureMessage), - ("testToNotMatcher_CustomFailureMessage", testToNotMatcher_CustomFailureMessage), - ] -} - -public func __allTests() -> [XCTestCaseEntry] { - return [ - testCase(AllPassTest.__allTests__AllPassTest), - testCase(AsyncTest.__allTests__AsyncTest), - testCase(BeAKindOfObjCTest.__allTests__BeAKindOfObjCTest), - testCase(BeAKindOfSwiftTest.__allTests__BeAKindOfSwiftTest), - testCase(BeAnInstanceOfTest.__allTests__BeAnInstanceOfTest), - testCase(BeCloseToTest.__allTests__BeCloseToTest), - testCase(BeEmptyTest.__allTests__BeEmptyTest), - testCase(BeFalseTest.__allTests__BeFalseTest), - testCase(BeFalsyTest.__allTests__BeFalsyTest), - testCase(BeGreaterThanOrEqualToTest.__allTests__BeGreaterThanOrEqualToTest), - testCase(BeGreaterThanTest.__allTests__BeGreaterThanTest), - testCase(BeIdenticalToObjectTest.__allTests__BeIdenticalToObjectTest), - testCase(BeIdenticalToTest.__allTests__BeIdenticalToTest), - testCase(BeLessThanOrEqualToTest.__allTests__BeLessThanOrEqualToTest), - testCase(BeLessThanTest.__allTests__BeLessThanTest), - testCase(BeNilTest.__allTests__BeNilTest), - testCase(BeTrueTest.__allTests__BeTrueTest), - testCase(BeTruthyTest.__allTests__BeTruthyTest), - testCase(BeVoidTest.__allTests__BeVoidTest), - testCase(BeginWithTest.__allTests__BeginWithTest), - testCase(ContainElementSatisfyingTest.__allTests__ContainElementSatisfyingTest), - testCase(ContainTest.__allTests__ContainTest), - testCase(ElementsEqualTest.__allTests__ElementsEqualTest), - testCase(EndWithTest.__allTests__EndWithTest), - testCase(EqualTest.__allTests__EqualTest), - testCase(HaveCountTest.__allTests__HaveCountTest), - testCase(MatchErrorTest.__allTests__MatchErrorTest), - testCase(MatchTest.__allTests__MatchTest), - testCase(PostNotificationTest.__allTests__PostNotificationTest), - testCase(SatisfyAllOfTest.__allTests__SatisfyAllOfTest), - testCase(SatisfyAnyOfTest.__allTests__SatisfyAnyOfTest), - testCase(SynchronousTest.__allTests__SynchronousTest), - testCase(ThrowAssertionTest.__allTests__ThrowAssertionTest), - testCase(ThrowErrorTest.__allTests__ThrowErrorTest), - testCase(ToSucceedTest.__allTests__ToSucceedTest), - testCase(UserDescriptionTest.__allTests__UserDescriptionTest), - ] -} -#endif diff --git a/test b/test index a46e5ba80..80a507258 100755 --- a/test +++ b/test @@ -99,7 +99,7 @@ function test_swiftpm { if [ -d .build ]; then run swift package clean fi - run swift build -Xswiftc -suppress-warnings && swift test -Xswiftc -suppress-warnings + run swift build -Xswiftc -suppress-warnings && swift test -Xswiftc -suppress-warnings --enable-test-discovery } function test_swiftpm_docker {