GaltSoft / kitura-manager

API Management inspired by Django REST framework
Apache License 2.0
3 stars 0 forks source link

Added unit test cases for KMModel #14 #15

Closed ahalls closed 6 years ago

ahalls commented 6 years ago

Refactored KMModel into own file

ahalls commented 6 years ago

@KingAndroid The test run from Xcode ... they also need to run from the command line. First on MacOS. Then I'll be running them on Docker/Linux

swift test

To get your tests to run from the command line add this similar code to your test class file

extension KMModelTests {
    public static var allTests: [(String, (KMModelTests) -> () throws -> Void)] {
        return [
            ("testClassName", testClassName),
            ("testPropertyList", testPropertyList),
        ]
    }
}