 private let isRunningOnDevice = TARGET_IPHONE_SIMULATOR == 0
 
 class SwiftPerformanceTests: TestCase {
-    override class func defaultTestSuite() -> XCTestSuite? {
+    override class func defaultTestSuite() -> XCTestSuite {
+#if !DEBUG && os(iOS)
         if (isRunningOnDevice) {
             return super.defaultTestSuite()
         }
-        return nil
+#endif
+        return XCTestSuite(name: "SwiftPerformanceTests")
     }
 
     override class func setUp() {

        let realm = copyRealmToTestPath(mediumRealm)
        measureBlock {
            for stringObject in realm.objects(SwiftStringObject).filter("stringCol = 'a'") {
                let string = stringObject.stringCol
            }
        }
    }

        let realm = copyRealmToTestPath(mediumRealm)
        measureBlock {
            for stringObject in realm.objects(SwiftStringObject) {
                _ = stringObject.stringCol
            }
        }
    }
