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