diff --git a/.github/workflows/ci-linux.yml b/.github/workflows/ci-linux.yml index 34682c5..6e5dd19 100644 --- a/.github/workflows/ci-linux.yml +++ b/.github/workflows/ci-linux.yml @@ -16,24 +16,24 @@ jobs: image: swift:${{ matrix.swift }} steps: - name: Checkout - uses: actions/checkout@v3 - - name: "Update APT" - shell: bash - run: "apt update" - - name: "Install curl" - shell: bash - run: "apt-get install -y curl" - - name: Swift version - run: swift --version + uses: actions/checkout@v4 + - name: Test - run: swift test -v --skip-update --parallel --enable-test-discovery --enable-code-coverage - - name: Generate coverage report - run: llvm-cov export -format="lcov" .build/debug/*PackageTests.xctest -instr-profile .build/debug/codecov/default.profdata > coverage.lcov - - name: Upload code coverage report - uses: codecov/codecov-action@v3.1.3 + run: swift test -c release --enable-xctest --parallel --xunit-output .build/xUnit-output.xml + + - name: Upload test artifacts + if: failure() + uses: actions/upload-artifact@v4.4.2 with: - token: ${{secrets.CODECOV_TOKEN}} - file: coverage.lcov - fail_ci_if_error: true - - name: Build Release - run: swift build -c release + name: test-artifacts-linux-${{ matrix.swift }}-${{ github.run_id }} + path: | + .build/*.yaml + .build/*.xml + .build/*.json + .build/*.txt + .build/**/*.xctest + .build/**/*.json + .build/**/*.txt + if-no-files-found: warn + include-hidden-files: true + diff --git a/.github/workflows/ci-macos.yml b/.github/workflows/ci-macos.yml index 43e7ce4..e42882c 100644 --- a/.github/workflows/ci-macos.yml +++ b/.github/workflows/ci-macos.yml @@ -11,46 +11,37 @@ jobs: runs-on: macOS-latest strategy: matrix: - xcode: ["13.4.1", "14.2"] + xcode: ["14.3.1", "15.4", "16.0"] steps: - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Select Xcode ${{ matrix.xcode }} run: sudo xcode-select -s /Applications/Xcode_${{ matrix.xcode }}.app - name: Test - run: swift test -v --skip-update --parallel --enable-test-discovery --enable-code-coverage + run: swift test -c release --parallel --xunit-output .build/xUnit-output.xml --enable-code-coverage env: DEVELOPER_DIR: /Applications/Xcode_${{ matrix.xcode }}.app/Contents/Developer - name: Upload test artifacts if: failure() - uses: actions/upload-artifact@v3.1.2 + uses: actions/upload-artifact@v4.4.2 with: name: test-artifacts-${{ matrix.xcode }}-${{ github.run_id }} path: | - .build/**/*.json + .build/*.yaml + .build/*.xml + .build/*.json + .build/*.txt .build/**/*.xctest + .build/**/*.json + .build/**/*.txt + if-no-files-found: warn + include-hidden-files: true + - name: Generate coverage report - run: xcrun llvm-cov export -format="lcov" .build/debug/*PackageTests.xctest/Contents/MacOS/*PackageTests -instr-profile .build/debug/codecov/default.profdata > coverage.lcov + run: xcrun llvm-cov export -format="lcov" .build/**/*PackageTests.xctest/Contents/MacOS/*PackageTests -instr-profile .build/**/codecov/default.profdata > coverage.lcov - name: Upload code coverage report - uses: codecov/codecov-action@v3.1.3 + uses: codecov/codecov-action@v4.6.0 with: - token: ${{secrets.CODECOV_TOKEN}} + token: ${{ secrets.CODECOV_TOKEN }} file: coverage.lcov fail_ci_if_error: true - - name: Build Release - run: swift build -c release - env: - DEVELOPER_DIR: /Applications/Xcode_${{ matrix.xcode }}.app/Contents/Developer - - name: Upload build artifacts - if: failure() - uses: actions/upload-artifact@v3.1.2 - with: - name: build-artifacts-${{ matrix.xcode }}-${{ github.run_id }} - path: | - *.lcov - .build/*.yaml - .build/**/*.a - .build/**/*.so - .build/**/*.dylib - .build/**/*.dSYM - .build/**/*.json diff --git a/.github/workflows/ci-wasm.yml b/.github/workflows/ci-wasm.yml index 2c634b3..0af195b 100644 --- a/.github/workflows/ci-wasm.yml +++ b/.github/workflows/ci-wasm.yml @@ -10,8 +10,8 @@ jobs: wasm-build: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Build - uses: swiftwasm/swiftwasm-action@v5.8 + uses: swiftwasm/swiftwasm-action@v5.9 with: shell-action: swift build --triple wasm32-unknown-wasi diff --git a/.github/workflows/ci-windows.yml b/.github/workflows/ci-windows.yml index 0432d28..7614153 100644 --- a/.github/workflows/ci-windows.yml +++ b/.github/workflows/ci-windows.yml @@ -10,16 +10,30 @@ jobs: windows-test-build-release: runs-on: windows-latest steps: - - uses: compnerd/gha-setup-swift@main + - name: Setup + uses: compnerd/gha-setup-swift@v0.2.3 with: - branch: swift-5.7-release - tag: 5.7-RELEASE + branch: swift-5.10-release + tag: 5.10-RELEASE - name: Checkout - uses: actions/checkout@v3 - + uses: actions/checkout@v4 + - name: Test - run: swift test -v --skip-update --parallel --enable-test-discovery + run: swift test -c release --parallel --xunit-output .build/xUnit-output.xml - - name: Build Release - run: swift build -c release + - name: Upload test artifacts + if: failure() + uses: actions/upload-artifact@v4.4.2 + with: + name: test-artifacts-windows-${{ github.run_id }} + path: | + .build/*.yaml + .build/*.xml + .build/*.json + .build/*.txt + .build/**/*.xctest + .build/**/*.json + .build/**/*.txt + if-no-files-found: warn + include-hidden-files: true diff --git a/Tests/FirebladeECSPerformanceTests/HashingPerformanceTests.swift b/Tests/FirebladeECSPerformanceTests/HashingPerformanceTests.swift index 8446ebf..5b64f5e 100644 --- a/Tests/FirebladeECSPerformanceTests/HashingPerformanceTests.swift +++ b/Tests/FirebladeECSPerformanceTests/HashingPerformanceTests.swift @@ -5,6 +5,7 @@ // Created by Christian Treffs on 14.02.19. // +#if os(macOS) import FirebladeECS import XCTest @@ -97,3 +98,6 @@ class HashingPerformanceTests: XCTestCase { #endif } } +#else + #warning("Skipping HashingPerformanceTests") +#endif diff --git a/Tests/FirebladeECSPerformanceTests/TypeIdentifierPerformanceTests.swift b/Tests/FirebladeECSPerformanceTests/TypeIdentifierPerformanceTests.swift index 661ee98..e073174 100644 --- a/Tests/FirebladeECSPerformanceTests/TypeIdentifierPerformanceTests.swift +++ b/Tests/FirebladeECSPerformanceTests/TypeIdentifierPerformanceTests.swift @@ -5,6 +5,7 @@ // Created by Christian Treffs on 05.10.19. // +#if os(macOS) import FirebladeECS import XCTest @@ -30,7 +31,7 @@ final class TypeIdentifierPerformanceTests: XCTestCase { /// release: 1.034 sec /// debug: func testPerformanceHash() { - measure { + measure(options: .default) { for _ in 0.. [XCTestCaseEntry] { - return [ - testCase(ComponentIdentifierTests.__allTests__ComponentIdentifierTests), - testCase(HashingPerformanceTests.__allTests__HashingPerformanceTests), - testCase(TypeIdentifierPerformanceTests.__allTests__TypeIdentifierPerformanceTests), - testCase(TypedFamilyPerformanceTests.__allTests__TypedFamilyPerformanceTests), - ] -} -#endif diff --git a/Tests/FirebladeECSTests/XCTestManifests.swift b/Tests/FirebladeECSTests/XCTestManifests.swift deleted file mode 100644 index 5b55420..0000000 --- a/Tests/FirebladeECSTests/XCTestManifests.swift +++ /dev/null @@ -1,454 +0,0 @@ -#if !canImport(ObjectiveC) -import XCTest - -extension ComponentIdentifierTests { - // DO NOT MODIFY: This is autogenerated, use: - // `swift test --generate-linuxmain` - // to regenerate. - static let __allTests__ComponentIdentifierTests = [ - ("testMirrorAsStableIdentifier", testMirrorAsStableIdentifier), - ("testStringDescribingAsStableIdentifier", testStringDescribingAsStableIdentifier), - ] -} - -extension ComponentInstanceProviderTests { - // DO NOT MODIFY: This is autogenerated, use: - // `swift test --generate-linuxmain` - // to regenerate. - static let __allTests__ComponentInstanceProviderTests = [ - ("testProviderReturnsTheInstance", testProviderReturnsTheInstance), - ("testProvidersWithDifferentInstanceHaveDifferentIdentifier", testProvidersWithDifferentInstanceHaveDifferentIdentifier), - ("testProvidersWithSameInstanceHaveSameIdentifier", testProvidersWithSameInstanceHaveSameIdentifier), - ] -} - -extension ComponentSingletonProviderTests { - // DO NOT MODIFY: This is autogenerated, use: - // `swift test --generate-linuxmain` - // to regenerate. - static let __allTests__ComponentSingletonProviderTests = [ - ("testProviderReturnsAnInstanceOfType", testProviderReturnsAnInstanceOfType), - ("testProviderReturnsSameInstanceEachTime", testProviderReturnsSameInstanceEachTime), - ("testProvidersWithDifferentTypeHaveDifferentIdentifier", testProvidersWithDifferentTypeHaveDifferentIdentifier), - ("testProvidersWithSameTypeHaveDifferentIdentifier", testProvidersWithSameTypeHaveDifferentIdentifier), - ] -} - -extension ComponentTests { - // DO NOT MODIFY: This is autogenerated, use: - // `swift test --generate-linuxmain` - // to regenerate. - static let __allTests__ComponentTests = [ - ("testComponentIdentifier", testComponentIdentifier), - ] -} - -extension ComponentTypeProviderTests { - // DO NOT MODIFY: This is autogenerated, use: - // `swift test --generate-linuxmain` - // to regenerate. - static let __allTests__ComponentTypeProviderTests = [ - ("testProviderReturnsAnInstanceOfType", testProviderReturnsAnInstanceOfType), - ("testProviderReturnsNewInstanceEachTime", testProviderReturnsNewInstanceEachTime), - ("testProvidersWithDifferentTypeHaveDifferentIdentifier", testProvidersWithDifferentTypeHaveDifferentIdentifier), - ("testProvidersWithSameTypeHaveSameIdentifier", testProvidersWithSameTypeHaveSameIdentifier), - ] -} - -extension DynamicComponentProviderTests { - // DO NOT MODIFY: This is autogenerated, use: - // `swift test --generate-linuxmain` - // to regenerate. - static let __allTests__DynamicComponentProviderTests = [ - ("testProviderReturnsTheInstance", testProviderReturnsTheInstance), - ("testProvidersWithDifferentMethodsHaveDifferentIdentifier", testProvidersWithDifferentMethodsHaveDifferentIdentifier), - ("testProvidersWithSameMethodHaveSameIdentifier", testProvidersWithSameMethodHaveSameIdentifier), - ] -} - -extension EntityCreationTests { - // DO NOT MODIFY: This is autogenerated, use: - // `swift test --generate-linuxmain` - // to regenerate. - static let __allTests__EntityCreationTests = [ - ("testBulkCreateEntitiesMultipleComponents", testBulkCreateEntitiesMultipleComponents), - ("testBulkCreateEntitiesOneComponent", testBulkCreateEntitiesOneComponent), - ("testCreateEntityMultipleComponents", testCreateEntityMultipleComponents), - ("testCreateEntityOneComponent", testCreateEntityOneComponent), - ] -} - -extension EntityIdGenTests { - // DO NOT MODIFY: This is autogenerated, use: - // `swift test --generate-linuxmain` - // to regenerate. - static let __allTests__EntityIdGenTests = [ - ("testGenerateWithInitialIds", testGenerateWithInitialIds), - ("testGeneratorDefaultInit", testGeneratorDefaultInit), - ("testGeneratorMarkUnused", testGeneratorMarkUnused), - ("testGeneratorWithDefaultEmptyCollection", testGeneratorWithDefaultEmptyCollection), - ("testLinearIncrement", testLinearIncrement), - ] -} - -extension EntityStateMachineTests { - // DO NOT MODIFY: This is autogenerated, use: - // `swift test --generate-linuxmain` - // to regenerate. - static let __allTests__EntityStateMachineTests = [ - ("testCallChangeStateWithSameNameLeavesEntityComponentsIntact", testCallChangeStateWithSameNameLeavesEntityComponentsIntact), - ("testCreateStateAddsState", testCreateStateAddsState), - ("testCreateStateDoesNotChangeState", testCreateStateDoesNotChangeState), - ("testEnterSecondStateAddsSecondStatesComponents", testEnterSecondStateAddsSecondStatesComponents), - ("testEnterSecondStateDoesNotRemoveOverlappingComponents", testEnterSecondStateDoesNotRemoveOverlappingComponents), - ("testEnterSecondStateRemovesDifferentComponentsOfSameType", testEnterSecondStateRemovesDifferentComponentsOfSameType), - ("testEnterSecondStateRemovesFirstStatesComponents", testEnterSecondStateRemovesFirstStatesComponents), - ("testEnterStateAddsStatesComponents", testEnterStateAddsStatesComponents), - ("testGetsDeinitedWhileBeingStronglyReferencedByComponentAssignedToEntity", testGetsDeinitedWhileBeingStronglyReferencedByComponentAssignedToEntity), - ] -} - -extension EntityStateTests { - // DO NOT MODIFY: This is autogenerated, use: - // `swift test --generate-linuxmain` - // to regenerate. - static let __allTests__EntityStateTests = [ - ("testAddInstanceCreatesMappingAndSetsInstanceProviderForInstanceType", testAddInstanceCreatesMappingAndSetsInstanceProviderForInstanceType), - ("testAddMappingWithInstanceQualifierCreatesInstanceProvider", testAddMappingWithInstanceQualifierCreatesInstanceProvider), - ("testAddMappingWithMethodQualifierCreatesDynamicProvider", testAddMappingWithMethodQualifierCreatesDynamicProvider), - ("testAddMappingWithNoQualifierCreatesTypeProvider", testAddMappingWithNoQualifierCreatesTypeProvider), - ("testAddMappingWithSingletonQualifierCreatesSingletonProvider", testAddMappingWithSingletonQualifierCreatesSingletonProvider), - ("testAddMappingWithTypeQualifierCreatesTypeProvider", testAddMappingWithTypeQualifierCreatesTypeProvider), - ("testAddMethodCreatesMappingAndSetsDynamicProviderForType", testAddMethodCreatesMappingAndSetsDynamicProviderForType), - ("testAddProviderCreatesMappingAndSetsProvider", testAddProviderCreatesMappingAndSetsProvider), - ("testAddSingletonCreatesMappingAndSetsSingletonProviderForType", testAddSingletonCreatesMappingAndSetsSingletonProviderForType), - ("testAddTypeCreatesMappingAndSetsTypeProviderForType", testAddTypeCreatesMappingAndSetsTypeProviderForType), - ("testHasProviderReturnsFalseForNotCreatedProvider", testHasProviderReturnsFalseForNotCreatedProvider), - ("testHasProviderReturnsTrueForCreatedProvider", testHasProviderReturnsTrueForCreatedProvider), - ("testProviderForTypeReturnsDynamicProvider", testProviderForTypeReturnsDynamicProvider), - ("testProviderForTypeReturnsInstanceProvider", testProviderForTypeReturnsInstanceProvider), - ("testProviderForTypeReturnsPassedProvider", testProviderForTypeReturnsPassedProvider), - ("testProviderForTypeReturnsSingletonProvider", testProviderForTypeReturnsSingletonProvider), - ("testProviderForTypeReturnsTypeProvider", testProviderForTypeReturnsTypeProvider), - ("testProviderForTypeReturnsTypeProviderByDefault", testProviderForTypeReturnsTypeProviderByDefault), - ] -} - -extension EntityTests { - // DO NOT MODIFY: This is autogenerated, use: - // `swift test --generate-linuxmain` - // to regenerate. - static let __allTests__EntityTests = [ - ("testAllComponentsOfEntity", testAllComponentsOfEntity), - ("testComponentsIteration", testComponentsIteration), - ("testEntityCreationIntrinsic", testEntityCreationIntrinsic), - ("testEntityDescriptions", testEntityDescriptions), - ("testEntityEquality", testEntityEquality), - ("testEntityIdentifierAndIndex", testEntityIdentifierAndIndex), - ("testEntityIdGenerator", testEntityIdGenerator), - ("testEntitySubscripts", testEntitySubscripts), - ("testRemoveAllComponentsFromEntity", testRemoveAllComponentsFromEntity), - ] -} - -extension Family1Tests { - // DO NOT MODIFY: This is autogenerated, use: - // `swift test --generate-linuxmain` - // to regenerate. - static let __allTests__Family1Tests = [ - ("testComponentIteration", testComponentIteration), - ("testEntityComponentIteration", testEntityComponentIteration), - ("testEntityIteration", testEntityIteration), - ("testFamilyDecoding", testFamilyDecoding), - ("testFamilyEncoding", testFamilyEncoding), - ("testFamilyFailDecoding", testFamilyFailDecoding), - ("testMemberCreation", testMemberCreation), - ("testMemberCreationBuilder", testMemberCreationBuilder), - ] -} - -extension Family2Tests { - // DO NOT MODIFY: This is autogenerated, use: - // `swift test --generate-linuxmain` - // to regenerate. - static let __allTests__Family2Tests = [ - ("testComponentIteration", testComponentIteration), - ("testEntityComponentIteration", testEntityComponentIteration), - ("testEntityIteration", testEntityIteration), - ("testFamilyDecoding", testFamilyDecoding), - ("testFamilyEncoding", testFamilyEncoding), - ("testFamilyFailDecoding", testFamilyFailDecoding), - ("testMemberCreation", testMemberCreation), - ("testMemberCreationBuilder", testMemberCreationBuilder), - ] -} - -extension Family3Tests { - // DO NOT MODIFY: This is autogenerated, use: - // `swift test --generate-linuxmain` - // to regenerate. - static let __allTests__Family3Tests = [ - ("testComponentIteration", testComponentIteration), - ("testEntityComponentIteration", testEntityComponentIteration), - ("testEntityIteration", testEntityIteration), - ("testFamilyDecoding", testFamilyDecoding), - ("testFamilyEncoding", testFamilyEncoding), - ("testFamilyFailDecoding", testFamilyFailDecoding), - ("testMemberCreation", testMemberCreation), - ("testMemberCreationBuilder", testMemberCreationBuilder), - ] -} - -extension Family4Tests { - // DO NOT MODIFY: This is autogenerated, use: - // `swift test --generate-linuxmain` - // to regenerate. - static let __allTests__Family4Tests = [ - ("testComponentIteration", testComponentIteration), - ("testEntityComponentIteration", testEntityComponentIteration), - ("testEntityIteration", testEntityIteration), - ("testFamilyDecoding", testFamilyDecoding), - ("testFamilyEncoding", testFamilyEncoding), - ("testFamilyFailDecoding", testFamilyFailDecoding), - ("testMemberCreation", testMemberCreation), - ("testMemberCreationBuilder", testMemberCreationBuilder), - ] -} - -extension Family5Tests { - // DO NOT MODIFY: This is autogenerated, use: - // `swift test --generate-linuxmain` - // to regenerate. - static let __allTests__Family5Tests = [ - ("testComponentIteration", testComponentIteration), - ("testEntityComponentIteration", testEntityComponentIteration), - ("testEntityIteration", testEntityIteration), - ("testFamilyDecoding", testFamilyDecoding), - ("testFamilyEncoding", testFamilyEncoding), - ("testFamilyFailDecoding", testFamilyFailDecoding), - ("testMemberCreation", testMemberCreation), - ("testMemberCreationBuilder", testMemberCreationBuilder), - ] -} - -extension Family6Tests { - // DO NOT MODIFY: This is autogenerated, use: - // `swift test --generate-linuxmain` - // to regenerate. - static let __allTests__Family6Tests = [ - ("testComponentIteration", testComponentIteration), - ("testEntityComponentIteration", testEntityComponentIteration), - ("testEntityIteration", testEntityIteration), - ("testFamilyDecoding", testFamilyDecoding), - ("testFamilyEncoding", testFamilyEncoding), - ("testFamilyFailDecoding", testFamilyFailDecoding), - ("testMemberCreation", testMemberCreation), - ("testMemberCreationBuilder", testMemberCreationBuilder), - ] -} - -extension Family7Tests { - // DO NOT MODIFY: This is autogenerated, use: - // `swift test --generate-linuxmain` - // to regenerate. - static let __allTests__Family7Tests = [ - ("testComponentIteration", testComponentIteration), - ("testEntityComponentIteration", testEntityComponentIteration), - ("testEntityIteration", testEntityIteration), - ("testFamilyDecoding", testFamilyDecoding), - ("testFamilyEncoding", testFamilyEncoding), - ("testFamilyFailDecoding", testFamilyFailDecoding), - ("testMemberCreation", testMemberCreation), - ("testMemberCreationBuilder", testMemberCreationBuilder), - ] -} - -extension Family8Tests { - // DO NOT MODIFY: This is autogenerated, use: - // `swift test --generate-linuxmain` - // to regenerate. - static let __allTests__Family8Tests = [ - ("testComponentIteration", testComponentIteration), - ("testEntityComponentIteration", testEntityComponentIteration), - ("testEntityIteration", testEntityIteration), - ("testFamilyDecoding", testFamilyDecoding), - ("testFamilyEncoding", testFamilyEncoding), - ("testFamilyFailDecoding", testFamilyFailDecoding), - ("testMemberCreation", testMemberCreation), - ("testMemberCreationBuilder", testMemberCreationBuilder), - ] -} - -extension FamilyCodingTests { - // DO NOT MODIFY: This is autogenerated, use: - // `swift test --generate-linuxmain` - // to regenerate. - static let __allTests__FamilyCodingTests = [ - ("testDecodeFamily4", testDecodeFamily4), - ("testDecodeFamily5", testDecodeFamily5), - ("testDecodingFamily1", testDecodingFamily1), - ("testDecodingFamily2", testDecodingFamily2), - ("testDecodingFamily3", testDecodingFamily3), - ("testEncodeFamily2", testEncodeFamily2), - ("testEncodeFamily3", testEncodeFamily3), - ("testEncodeFamily4", testEncodeFamily4), - ("testEncodeFamily5", testEncodeFamily5), - ("testEncodingFamily1", testEncodingFamily1), - ("testFailDecodingFamily", testFailDecodingFamily), - ] -} - -extension FamilyTests { - // DO NOT MODIFY: This is autogenerated, use: - // `swift test --generate-linuxmain` - // to regenerate. - static let __allTests__FamilyTests = [ - ("testFamilyAbandoned", testFamilyAbandoned), - ("testFamilyBulkDestroy", testFamilyBulkDestroy), - ("testFamilyCreateMembers", testFamilyCreateMembers), - ("testFamilyCreation", testFamilyCreation), - ("testFamilyDestroyMembers", testFamilyDestroyMembers), - ("testFamilyExchange", testFamilyExchange), - ("testFamilyLateMember", testFamilyLateMember), - ("testFamilyMemberBasicIteration", testFamilyMemberBasicIteration), - ("testFamilyReuse", testFamilyReuse), - ] -} - -extension FamilyTraitsTests { - // DO NOT MODIFY: This is autogenerated, use: - // `swift test --generate-linuxmain` - // to regenerate. - static let __allTests__FamilyTraitsTests = [ - ("testTraitCommutativity", testTraitCommutativity), - ("testTraitMatching", testTraitMatching), - ] -} - -extension HashingTests { - // DO NOT MODIFY: This is autogenerated, use: - // `swift test --generate-linuxmain` - // to regenerate. - static let __allTests__HashingTests = [ - ("testCollisionsInCritialRange", testCollisionsInCritialRange), - ("testStringHashes", testStringHashes), - ] -} - -extension NexusEventDelegateTests { - // DO NOT MODIFY: This is autogenerated, use: - // `swift test --generate-linuxmain` - // to regenerate. - static let __allTests__NexusEventDelegateTests = [ - ("testEventComponentAdded", testEventComponentAdded), - ("testEventComponentRemoved", testEventComponentRemoved), - ("testEventEntityCreated", testEventEntityCreated), - ("testEventEntityDestroyed", testEventEntityDestroyed), - ("testFamilyMemberRemoved", testFamilyMemberRemoved), - ("testFamilyMemeberAdded", testFamilyMemeberAdded), - ] -} - -extension NexusTests { - // DO NOT MODIFY: This is autogenerated, use: - // `swift test --generate-linuxmain` - // to regenerate. - static let __allTests__NexusTests = [ - ("testComponentCreation", testComponentCreation), - ("testComponentDeletion", testComponentDeletion), - ("testComponentRetrieval", testComponentRetrieval), - ("testComponentUniqueness", testComponentUniqueness), - ("testEntityCreate", testEntityCreate), - ("testEntityDestroy", testEntityDestroy), - ("testEntityIteration", testEntityIteration), - ] -} - -extension SingleTests { - // DO NOT MODIFY: This is autogenerated, use: - // `swift test --generate-linuxmain` - // to regenerate. - static let __allTests__SingleTests = [ - ("testSingleCreation", testSingleCreation), - ("testSingleCreationOnExistingFamilyMember", testSingleCreationOnExistingFamilyMember), - ("testSingleEntityAndComponentCreation", testSingleEntityAndComponentCreation), - ("testSingleReuse", testSingleReuse), - ] -} - -extension SparseSetTests { - // DO NOT MODIFY: This is autogenerated, use: - // `swift test --generate-linuxmain` - // to regenerate. - static let __allTests__SparseSetTests = [ - ("testAlternativeKey", testAlternativeKey), - ("testEquality", testEquality), - ("testSparseSetAdd", testSparseSetAdd), - ("testSparseSetAddAndReplace", testSparseSetAddAndReplace), - ("testSparseSetClear", testSparseSetClear), - ("testSparseSetDoubleRemove", testSparseSetDoubleRemove), - ("testSparseSetGet", testSparseSetGet), - ("testSparseSetNonCongiuousData", testSparseSetNonCongiuousData), - ("testSparseSetReduce", testSparseSetReduce), - ("testSparseSetRemove", testSparseSetRemove), - ("testSparseSetRemoveAndAdd", testSparseSetRemoveAndAdd), - ("testSparseSetRemoveNonPresent", testSparseSetRemoveNonPresent), - ("testStartEndIndex", testStartEndIndex), - ("testSubscript", testSubscript), - ] -} - -extension StateComponentMappingTests { - // DO NOT MODIFY: This is autogenerated, use: - // `swift test --generate-linuxmain` - // to regenerate. - static let __allTests__StateComponentMappingTests = [ - ("testAddAddsProviderToState", testAddAddsProviderToState), - ("testAddReturnsSameMappingForDifferentComponentTypes", testAddReturnsSameMappingForDifferentComponentTypes), - ("testAddReturnsSameMappingForSameComponentType", testAddReturnsSameMappingForSameComponentType), - ] -} - -extension SystemsTests { - // DO NOT MODIFY: This is autogenerated, use: - // `swift test --generate-linuxmain` - // to regenerate. - static let __allTests__SystemsTests = [ - ("testSystemsUpdate", testSystemsUpdate), - ] -} - -public func __allTests() -> [XCTestCaseEntry] { - return [ - testCase(ComponentIdentifierTests.__allTests__ComponentIdentifierTests), - testCase(ComponentInstanceProviderTests.__allTests__ComponentInstanceProviderTests), - testCase(ComponentSingletonProviderTests.__allTests__ComponentSingletonProviderTests), - testCase(ComponentTests.__allTests__ComponentTests), - testCase(ComponentTypeProviderTests.__allTests__ComponentTypeProviderTests), - testCase(DynamicComponentProviderTests.__allTests__DynamicComponentProviderTests), - testCase(EntityCreationTests.__allTests__EntityCreationTests), - testCase(EntityIdGenTests.__allTests__EntityIdGenTests), - testCase(EntityStateMachineTests.__allTests__EntityStateMachineTests), - testCase(EntityStateTests.__allTests__EntityStateTests), - testCase(EntityTests.__allTests__EntityTests), - testCase(Family1Tests.__allTests__Family1Tests), - testCase(Family2Tests.__allTests__Family2Tests), - testCase(Family3Tests.__allTests__Family3Tests), - testCase(Family4Tests.__allTests__Family4Tests), - testCase(Family5Tests.__allTests__Family5Tests), - testCase(Family6Tests.__allTests__Family6Tests), - testCase(Family7Tests.__allTests__Family7Tests), - testCase(Family8Tests.__allTests__Family8Tests), - testCase(FamilyCodingTests.__allTests__FamilyCodingTests), - testCase(FamilyTests.__allTests__FamilyTests), - testCase(FamilyTraitsTests.__allTests__FamilyTraitsTests), - testCase(HashingTests.__allTests__HashingTests), - testCase(NexusEventDelegateTests.__allTests__NexusEventDelegateTests), - testCase(NexusTests.__allTests__NexusTests), - testCase(SingleTests.__allTests__SingleTests), - testCase(SparseSetTests.__allTests__SparseSetTests), - testCase(StateComponentMappingTests.__allTests__StateComponentMappingTests), - testCase(SystemsTests.__allTests__SystemsTests), - ] -} -#endif diff --git a/Tests/LinuxMain.swift b/Tests/LinuxMain.swift deleted file mode 100644 index 7889cf4..0000000 --- a/Tests/LinuxMain.swift +++ /dev/null @@ -1,10 +0,0 @@ -import XCTest - -import FirebladeECSPerformanceTests -import FirebladeECSTests - -var tests = [XCTestCaseEntry]() -tests += FirebladeECSPerformanceTests.__allTests() -tests += FirebladeECSTests.__allTests() - -XCTMain(tests) diff --git a/renovate.json b/renovate.json index 39a2b6e..e6838fd 100644 --- a/renovate.json +++ b/renovate.json @@ -1,6 +1,13 @@ { "$schema": "https://docs.renovatebot.com/renovate-schema.json", - "extends": [ - "config:base" + "extends": ["config:base"], + "packageRules": [ + { + "description": "Accumulate non-major updates into one pull request", + "matchUpdateTypes": ["minor", "patch"], + "matchCurrentVersion": ">=1", + "groupName": "all non-major dependencies", + "groupSlug": "all-minor-patch" + } ] }