Make tests run in release mode
This commit is contained in:
parent
e1ac76513c
commit
344b0465dd
|
|
@ -1,11 +1,11 @@
|
||||||
#if !canImport(ObjectiveC)
|
#if !canImport(ObjectiveC)
|
||||||
import XCTest
|
import XCTest
|
||||||
|
|
||||||
extension ComponentTests {
|
extension ComponentIdentifierTests {
|
||||||
// DO NOT MODIFY: This is autogenerated, use:
|
// DO NOT MODIFY: This is autogenerated, use:
|
||||||
// `swift test --generate-linuxmain`
|
// `swift test --generate-linuxmain`
|
||||||
// to regenerate.
|
// to regenerate.
|
||||||
static let __allTests__ComponentTests = [
|
static let __allTests__ComponentIdentifierTests = [
|
||||||
("testMeasureComponentIdentifier", testMeasureComponentIdentifier),
|
("testMeasureComponentIdentifier", testMeasureComponentIdentifier),
|
||||||
("testMeasureStaticComponentIdentifier", testMeasureStaticComponentIdentifier)
|
("testMeasureStaticComponentIdentifier", testMeasureStaticComponentIdentifier)
|
||||||
]
|
]
|
||||||
|
|
@ -16,8 +16,12 @@ extension HashingPerformanceTests {
|
||||||
// `swift test --generate-linuxmain`
|
// `swift test --generate-linuxmain`
|
||||||
// to regenerate.
|
// to regenerate.
|
||||||
static let __allTests__HashingPerformanceTests = [
|
static let __allTests__HashingPerformanceTests = [
|
||||||
|
("testMeasureBernsteinDjb2", testMeasureBernsteinDjb2),
|
||||||
("testMeasureCombineHash", testMeasureCombineHash),
|
("testMeasureCombineHash", testMeasureCombineHash),
|
||||||
("testMeasureSetOfSetHash", testMeasureSetOfSetHash)
|
("testMeasureSDBM", testMeasureSDBM),
|
||||||
|
("testMeasureSetOfSetHash", testMeasureSetOfSetHash),
|
||||||
|
("testMeasureSingerDjb2", testMeasureSingerDjb2),
|
||||||
|
("testMeasureSwiftHasher", testMeasureSwiftHasher)
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -26,6 +30,7 @@ extension TypeIdentifierPerformanceTests {
|
||||||
// `swift test --generate-linuxmain`
|
// `swift test --generate-linuxmain`
|
||||||
// to regenerate.
|
// to regenerate.
|
||||||
static let __allTests__TypeIdentifierPerformanceTests = [
|
static let __allTests__TypeIdentifierPerformanceTests = [
|
||||||
|
("testPerformanceHash", testPerformanceHash),
|
||||||
("testPerformanceMirrorReflectingDescription", testPerformanceMirrorReflectingDescription),
|
("testPerformanceMirrorReflectingDescription", testPerformanceMirrorReflectingDescription),
|
||||||
("testPerformanceObjectIdentifier", testPerformanceObjectIdentifier),
|
("testPerformanceObjectIdentifier", testPerformanceObjectIdentifier),
|
||||||
("testPerformanceStringDescribing", testPerformanceStringDescribing),
|
("testPerformanceStringDescribing", testPerformanceStringDescribing),
|
||||||
|
|
@ -56,7 +61,7 @@ extension TypedFamilyPerformanceTests {
|
||||||
|
|
||||||
public func __allTests() -> [XCTestCaseEntry] {
|
public func __allTests() -> [XCTestCaseEntry] {
|
||||||
return [
|
return [
|
||||||
testCase(ComponentTests.__allTests__ComponentTests),
|
testCase(ComponentIdentifierTests.__allTests__ComponentIdentifierTests),
|
||||||
testCase(HashingPerformanceTests.__allTests__HashingPerformanceTests),
|
testCase(HashingPerformanceTests.__allTests__HashingPerformanceTests),
|
||||||
testCase(TypeIdentifierPerformanceTests.__allTests__TypeIdentifierPerformanceTests),
|
testCase(TypeIdentifierPerformanceTests.__allTests__TypeIdentifierPerformanceTests),
|
||||||
testCase(TypedFamilyPerformanceTests.__allTests__TypedFamilyPerformanceTests)
|
testCase(TypedFamilyPerformanceTests.__allTests__TypedFamilyPerformanceTests)
|
||||||
|
|
|
||||||
|
|
@ -5,7 +5,8 @@
|
||||||
// Created by Christian Treffs on 22.10.17.
|
// Created by Christian Treffs on 22.10.17.
|
||||||
//
|
//
|
||||||
|
|
||||||
import FirebladeECS
|
#if DEBUG
|
||||||
|
@testable import FirebladeECS
|
||||||
import XCTest
|
import XCTest
|
||||||
|
|
||||||
class EntityTests: XCTestCase {
|
class EntityTests: XCTestCase {
|
||||||
|
|
@ -27,3 +28,4 @@ class EntityTests: XCTestCase {
|
||||||
XCTAssertTrue(EntityIdentifier(23) > EntityIdentifier(4))
|
XCTAssertTrue(EntityIdentifier(23) > EntityIdentifier(4))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
|
||||||
|
|
@ -5,6 +5,7 @@
|
||||||
// Created by Christian Treffs on 09.10.17.
|
// Created by Christian Treffs on 09.10.17.
|
||||||
//
|
//
|
||||||
|
|
||||||
|
#if DEBUG
|
||||||
@testable import FirebladeECS
|
@testable import FirebladeECS
|
||||||
import XCTest
|
import XCTest
|
||||||
|
|
||||||
|
|
@ -186,3 +187,4 @@ class FamilyTests: XCTestCase {
|
||||||
XCTAssertEqual(family.memberIds.count, count + (count / 2))
|
XCTAssertEqual(family.memberIds.count, count + (count / 2))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
|
||||||
|
|
@ -5,6 +5,7 @@
|
||||||
// Created by Christian Treffs on 16.10.17.
|
// Created by Christian Treffs on 16.10.17.
|
||||||
//
|
//
|
||||||
|
|
||||||
|
#if DEBUG
|
||||||
@testable import FirebladeECS
|
@testable import FirebladeECS
|
||||||
import XCTest
|
import XCTest
|
||||||
|
|
||||||
|
|
@ -51,3 +52,4 @@ class HashingTests: XCTestCase {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
|
||||||
|
|
@ -5,7 +5,8 @@
|
||||||
// Created by Christian Treffs on 09.10.17.
|
// Created by Christian Treffs on 09.10.17.
|
||||||
//
|
//
|
||||||
|
|
||||||
import FirebladeECS
|
#if DEBUG
|
||||||
|
@testable import FirebladeECS
|
||||||
import XCTest
|
import XCTest
|
||||||
|
|
||||||
class NexusTests: XCTestCase {
|
class NexusTests: XCTestCase {
|
||||||
|
|
@ -158,3 +159,4 @@ class NexusTests: XCTestCase {
|
||||||
XCTAssert(pB.y != pA.y)
|
XCTAssert(pB.y != pA.y)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
|
||||||
|
|
@ -5,6 +5,7 @@
|
||||||
// Created by Christian Treffs on 13.02.19.
|
// Created by Christian Treffs on 13.02.19.
|
||||||
//
|
//
|
||||||
|
|
||||||
|
#if DEBUG
|
||||||
@testable import FirebladeECS
|
@testable import FirebladeECS
|
||||||
import XCTest
|
import XCTest
|
||||||
|
|
||||||
|
|
@ -63,3 +64,4 @@ class SingleTests: XCTestCase {
|
||||||
XCTAssertTrue(singleGame === single.component)
|
XCTAssertTrue(singleGame === single.component)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
|
||||||
|
|
@ -5,6 +5,7 @@
|
||||||
// Created by Christian Treffs on 31.10.17.
|
// Created by Christian Treffs on 31.10.17.
|
||||||
//
|
//
|
||||||
|
|
||||||
|
#if DEBUG
|
||||||
@testable import FirebladeECS
|
@testable import FirebladeECS
|
||||||
import XCTest
|
import XCTest
|
||||||
|
|
||||||
|
|
@ -539,3 +540,4 @@ class SparseSetTests: XCTestCase {
|
||||||
XCTAssertEqual(mapped, ["C", "A", "B"])
|
XCTAssertEqual(mapped, ["C", "A", "B"])
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
|
||||||
|
|
@ -5,6 +5,7 @@
|
||||||
// Created by Christian Treffs on 10.05.18.
|
// Created by Christian Treffs on 10.05.18.
|
||||||
//
|
//
|
||||||
|
|
||||||
|
#if DEBUG
|
||||||
@testable import FirebladeECS
|
@testable import FirebladeECS
|
||||||
import XCTest
|
import XCTest
|
||||||
|
|
||||||
|
|
@ -124,3 +125,4 @@ class SystemsTests: XCTestCase {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
|
||||||
|
|
@ -25,8 +25,7 @@ extension EntityTests {
|
||||||
// `swift test --generate-linuxmain`
|
// `swift test --generate-linuxmain`
|
||||||
// to regenerate.
|
// to regenerate.
|
||||||
static let __allTests__EntityTests = [
|
static let __allTests__EntityTests = [
|
||||||
("testEntityIdentifierAndIndex", testEntityIdentifierAndIndex),
|
("testEntityIdentifierAndIndex", testEntityIdentifierAndIndex)
|
||||||
("testEntityIdentifierComparison", testEntityIdentifierComparison)
|
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -60,16 +59,8 @@ extension HashingTests {
|
||||||
// `swift test --generate-linuxmain`
|
// `swift test --generate-linuxmain`
|
||||||
// to regenerate.
|
// to regenerate.
|
||||||
static let __allTests__HashingTests = [
|
static let __allTests__HashingTests = [
|
||||||
("testCollisionsInCritialRange", testCollisionsInCritialRange)
|
("testCollisionsInCritialRange", testCollisionsInCritialRange),
|
||||||
]
|
("testStringHashes", testStringHashes)
|
||||||
}
|
|
||||||
|
|
||||||
extension NexusCodingTests {
|
|
||||||
// DO NOT MODIFY: This is autogenerated, use:
|
|
||||||
// `swift test --generate-linuxmain`
|
|
||||||
// to regenerate.
|
|
||||||
static let __allTests__NexusCodingTests = [
|
|
||||||
("testEncodeDecodeNexusJSON", testEncodeDecodeNexusJSON)
|
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -149,7 +140,6 @@ public func __allTests() -> [XCTestCaseEntry] {
|
||||||
testCase(FamilyTests.__allTests__FamilyTests),
|
testCase(FamilyTests.__allTests__FamilyTests),
|
||||||
testCase(FamilyTraitsTests.__allTests__FamilyTraitsTests),
|
testCase(FamilyTraitsTests.__allTests__FamilyTraitsTests),
|
||||||
testCase(HashingTests.__allTests__HashingTests),
|
testCase(HashingTests.__allTests__HashingTests),
|
||||||
testCase(NexusCodingTests.__allTests__NexusCodingTests),
|
|
||||||
testCase(NexusTests.__allTests__NexusTests),
|
testCase(NexusTests.__allTests__NexusTests),
|
||||||
testCase(SceneGraphTests.__allTests__SceneGraphTests),
|
testCase(SceneGraphTests.__allTests__SceneGraphTests),
|
||||||
testCase(SingleTests.__allTests__SingleTests),
|
testCase(SingleTests.__allTests__SingleTests),
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue