Dependency updates 2024-10 (#65)
* Update actions/checkout action to v4 * Update swiftwasm/swiftwasm-action action to v5.9 * Update codecov/codecov-action action to v4 * Update actions/upload-artifact action to v4 * Accumulate all non-major dependency updates into one pull request * Update CI Xcode versions * Update pipeline * Swift 5.10 on windows * Upload test failure artifacts * Debug linux CI * Always * Swift test help line comment * Linux testing * Linux testing * Upload artifacts * Include hidden files * Update testing * Update tests * Skip some performance tests on non Mac machines * Remove XCTestManifest files * Fix codecov on macOS --------- Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
This commit is contained in:
parent
7ad5a96f16
commit
a5c98c4963
|
|
@ -16,24 +16,24 @@ jobs:
|
||||||
image: swift:${{ matrix.swift }}
|
image: swift:${{ matrix.swift }}
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v4
|
||||||
- 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
|
|
||||||
- name: Test
|
- name: Test
|
||||||
run: swift test -v --skip-update --parallel --enable-test-discovery --enable-code-coverage
|
run: swift test -c release --enable-xctest --parallel --xunit-output .build/xUnit-output.xml
|
||||||
- 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 test artifacts
|
||||||
- name: Upload code coverage report
|
if: failure()
|
||||||
uses: codecov/codecov-action@v3.1.3
|
uses: actions/upload-artifact@v4.4.2
|
||||||
with:
|
with:
|
||||||
token: ${{secrets.CODECOV_TOKEN}}
|
name: test-artifacts-linux-${{ matrix.swift }}-${{ github.run_id }}
|
||||||
file: coverage.lcov
|
path: |
|
||||||
fail_ci_if_error: true
|
.build/*.yaml
|
||||||
- name: Build Release
|
.build/*.xml
|
||||||
run: swift build -c release
|
.build/*.json
|
||||||
|
.build/*.txt
|
||||||
|
.build/**/*.xctest
|
||||||
|
.build/**/*.json
|
||||||
|
.build/**/*.txt
|
||||||
|
if-no-files-found: warn
|
||||||
|
include-hidden-files: true
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -11,46 +11,37 @@ jobs:
|
||||||
runs-on: macOS-latest
|
runs-on: macOS-latest
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
xcode: ["13.4.1", "14.2"]
|
xcode: ["14.3.1", "15.4", "16.0"]
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v4
|
||||||
- name: Select Xcode ${{ matrix.xcode }}
|
- name: Select Xcode ${{ matrix.xcode }}
|
||||||
run: sudo xcode-select -s /Applications/Xcode_${{ matrix.xcode }}.app
|
run: sudo xcode-select -s /Applications/Xcode_${{ matrix.xcode }}.app
|
||||||
- name: Test
|
- 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:
|
env:
|
||||||
DEVELOPER_DIR: /Applications/Xcode_${{ matrix.xcode }}.app/Contents/Developer
|
DEVELOPER_DIR: /Applications/Xcode_${{ matrix.xcode }}.app/Contents/Developer
|
||||||
- name: Upload test artifacts
|
- name: Upload test artifacts
|
||||||
if: failure()
|
if: failure()
|
||||||
uses: actions/upload-artifact@v3.1.2
|
uses: actions/upload-artifact@v4.4.2
|
||||||
with:
|
with:
|
||||||
name: test-artifacts-${{ matrix.xcode }}-${{ github.run_id }}
|
name: test-artifacts-${{ matrix.xcode }}-${{ github.run_id }}
|
||||||
path: |
|
path: |
|
||||||
.build/**/*.json
|
.build/*.yaml
|
||||||
|
.build/*.xml
|
||||||
|
.build/*.json
|
||||||
|
.build/*.txt
|
||||||
.build/**/*.xctest
|
.build/**/*.xctest
|
||||||
|
.build/**/*.json
|
||||||
|
.build/**/*.txt
|
||||||
|
if-no-files-found: warn
|
||||||
|
include-hidden-files: true
|
||||||
|
|
||||||
- name: Generate coverage report
|
- 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
|
- name: Upload code coverage report
|
||||||
uses: codecov/codecov-action@v3.1.3
|
uses: codecov/codecov-action@v4.6.0
|
||||||
with:
|
with:
|
||||||
token: ${{secrets.CODECOV_TOKEN}}
|
token: ${{ secrets.CODECOV_TOKEN }}
|
||||||
file: coverage.lcov
|
file: coverage.lcov
|
||||||
fail_ci_if_error: true
|
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
|
|
||||||
|
|
|
||||||
|
|
@ -10,8 +10,8 @@ jobs:
|
||||||
wasm-build:
|
wasm-build:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v4
|
||||||
- name: Build
|
- name: Build
|
||||||
uses: swiftwasm/swiftwasm-action@v5.8
|
uses: swiftwasm/swiftwasm-action@v5.9
|
||||||
with:
|
with:
|
||||||
shell-action: swift build --triple wasm32-unknown-wasi
|
shell-action: swift build --triple wasm32-unknown-wasi
|
||||||
|
|
|
||||||
|
|
@ -10,16 +10,30 @@ jobs:
|
||||||
windows-test-build-release:
|
windows-test-build-release:
|
||||||
runs-on: windows-latest
|
runs-on: windows-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: compnerd/gha-setup-swift@main
|
- name: Setup
|
||||||
|
uses: compnerd/gha-setup-swift@v0.2.3
|
||||||
with:
|
with:
|
||||||
branch: swift-5.7-release
|
branch: swift-5.10-release
|
||||||
tag: 5.7-RELEASE
|
tag: 5.10-RELEASE
|
||||||
|
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
- name: Test
|
|
||||||
run: swift test -v --skip-update --parallel --enable-test-discovery
|
|
||||||
|
|
||||||
- name: Build Release
|
- name: Test
|
||||||
run: swift build -c release
|
run: swift test -c release --parallel --xunit-output .build/xUnit-output.xml
|
||||||
|
|
||||||
|
- 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
|
||||||
|
|
|
||||||
|
|
@ -5,6 +5,7 @@
|
||||||
// Created by Christian Treffs on 14.02.19.
|
// Created by Christian Treffs on 14.02.19.
|
||||||
//
|
//
|
||||||
|
|
||||||
|
#if os(macOS)
|
||||||
import FirebladeECS
|
import FirebladeECS
|
||||||
import XCTest
|
import XCTest
|
||||||
|
|
||||||
|
|
@ -97,3 +98,6 @@ class HashingPerformanceTests: XCTestCase {
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
#else
|
||||||
|
#warning("Skipping HashingPerformanceTests")
|
||||||
|
#endif
|
||||||
|
|
|
||||||
|
|
@ -5,6 +5,7 @@
|
||||||
// Created by Christian Treffs on 05.10.19.
|
// Created by Christian Treffs on 05.10.19.
|
||||||
//
|
//
|
||||||
|
|
||||||
|
#if os(macOS)
|
||||||
import FirebladeECS
|
import FirebladeECS
|
||||||
import XCTest
|
import XCTest
|
||||||
|
|
||||||
|
|
@ -30,7 +31,7 @@ final class TypeIdentifierPerformanceTests: XCTestCase {
|
||||||
/// release: 1.034 sec
|
/// release: 1.034 sec
|
||||||
/// debug:
|
/// debug:
|
||||||
func testPerformanceHash() {
|
func testPerformanceHash() {
|
||||||
measure {
|
measure(options: .default) {
|
||||||
for _ in 0..<maxIterations {
|
for _ in 0..<maxIterations {
|
||||||
_ = StringHashing.singer_djb2(String(describing: Color.self))
|
_ = StringHashing.singer_djb2(String(describing: Color.self))
|
||||||
_ = StringHashing.singer_djb2(String(describing: EmptyComponent.self))
|
_ = StringHashing.singer_djb2(String(describing: EmptyComponent.self))
|
||||||
|
|
@ -91,3 +92,6 @@ final class TypeIdentifierPerformanceTests: XCTestCase {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
#else
|
||||||
|
#warning("Skipping TypeIdentifierPerformanceTests tests")
|
||||||
|
#endif
|
||||||
|
|
|
||||||
|
|
@ -1,70 +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 = [
|
|
||||||
("testMeasureComponentIdentifier", testMeasureComponentIdentifier),
|
|
||||||
("testMeasureStaticComponentIdentifier", testMeasureStaticComponentIdentifier),
|
|
||||||
]
|
|
||||||
}
|
|
||||||
|
|
||||||
extension HashingPerformanceTests {
|
|
||||||
// DO NOT MODIFY: This is autogenerated, use:
|
|
||||||
// `swift test --generate-linuxmain`
|
|
||||||
// to regenerate.
|
|
||||||
static let __allTests__HashingPerformanceTests = [
|
|
||||||
("testMeasureBernsteinDjb2", testMeasureBernsteinDjb2),
|
|
||||||
("testMeasureCombineHash", testMeasureCombineHash),
|
|
||||||
("testMeasureSDBM", testMeasureSDBM),
|
|
||||||
("testMeasureSetOfSetHash", testMeasureSetOfSetHash),
|
|
||||||
("testMeasureSingerDjb2", testMeasureSingerDjb2),
|
|
||||||
("testMeasureSwiftHasher", testMeasureSwiftHasher),
|
|
||||||
]
|
|
||||||
}
|
|
||||||
|
|
||||||
extension TypeIdentifierPerformanceTests {
|
|
||||||
// DO NOT MODIFY: This is autogenerated, use:
|
|
||||||
// `swift test --generate-linuxmain`
|
|
||||||
// to regenerate.
|
|
||||||
static let __allTests__TypeIdentifierPerformanceTests = [
|
|
||||||
("testPerformanceHash", testPerformanceHash),
|
|
||||||
("testPerformanceMirrorReflectingDescription", testPerformanceMirrorReflectingDescription),
|
|
||||||
("testPerformanceObjectIdentifier", testPerformanceObjectIdentifier),
|
|
||||||
("testPerformanceStringDescribing", testPerformanceStringDescribing),
|
|
||||||
("testPerformanceStringReflecting", testPerformanceStringReflecting),
|
|
||||||
]
|
|
||||||
}
|
|
||||||
|
|
||||||
extension TypedFamilyPerformanceTests {
|
|
||||||
// DO NOT MODIFY: This is autogenerated, use:
|
|
||||||
// `swift test --generate-linuxmain`
|
|
||||||
// to regenerate.
|
|
||||||
static let __allTests__TypedFamilyPerformanceTests = [
|
|
||||||
("testMeasureTraitMatching", testMeasureTraitMatching),
|
|
||||||
("testPerformanceArray", testPerformanceArray),
|
|
||||||
("testPerformanceTypedFamilyEntities", testPerformanceTypedFamilyEntities),
|
|
||||||
("testPerformanceTypedFamilyEntityFiveComponents", testPerformanceTypedFamilyEntityFiveComponents),
|
|
||||||
("testPerformanceTypedFamilyEntityFourComponents", testPerformanceTypedFamilyEntityFourComponents),
|
|
||||||
("testPerformanceTypedFamilyEntityOneComponent", testPerformanceTypedFamilyEntityOneComponent),
|
|
||||||
("testPerformanceTypedFamilyEntityThreeComponents", testPerformanceTypedFamilyEntityThreeComponents),
|
|
||||||
("testPerformanceTypedFamilyEntityTwoComponents", testPerformanceTypedFamilyEntityTwoComponents),
|
|
||||||
("testPerformanceTypedFamilyFiveComponents", testPerformanceTypedFamilyFiveComponents),
|
|
||||||
("testPerformanceTypedFamilyFourComponents", testPerformanceTypedFamilyFourComponents),
|
|
||||||
("testPerformanceTypedFamilyOneComponent", testPerformanceTypedFamilyOneComponent),
|
|
||||||
("testPerformanceTypedFamilyThreeComponents", testPerformanceTypedFamilyThreeComponents),
|
|
||||||
("testPerformanceTypedFamilyTwoComponents", testPerformanceTypedFamilyTwoComponents),
|
|
||||||
]
|
|
||||||
}
|
|
||||||
|
|
||||||
public func __allTests() -> [XCTestCaseEntry] {
|
|
||||||
return [
|
|
||||||
testCase(ComponentIdentifierTests.__allTests__ComponentIdentifierTests),
|
|
||||||
testCase(HashingPerformanceTests.__allTests__HashingPerformanceTests),
|
|
||||||
testCase(TypeIdentifierPerformanceTests.__allTests__TypeIdentifierPerformanceTests),
|
|
||||||
testCase(TypedFamilyPerformanceTests.__allTests__TypedFamilyPerformanceTests),
|
|
||||||
]
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
|
|
@ -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
|
|
||||||
|
|
@ -1,10 +0,0 @@
|
||||||
import XCTest
|
|
||||||
|
|
||||||
import FirebladeECSPerformanceTests
|
|
||||||
import FirebladeECSTests
|
|
||||||
|
|
||||||
var tests = [XCTestCaseEntry]()
|
|
||||||
tests += FirebladeECSPerformanceTests.__allTests()
|
|
||||||
tests += FirebladeECSTests.__allTests()
|
|
||||||
|
|
||||||
XCTMain(tests)
|
|
||||||
|
|
@ -1,6 +1,13 @@
|
||||||
{
|
{
|
||||||
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
|
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
|
||||||
"extends": [
|
"extends": ["config:base"],
|
||||||
"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"
|
||||||
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue