I have written a simple application with a class that returns a boolean value. Here is my class:
class Functions {
func someMethod() -> Bool{
return true
}
}
And i have written a simple Unit test class to test Functions class. Such as:
import XCTest
@testable import simpleApplication
class FunctionsTests: XCTestCase {
func testSomeMethod(){
let operation = Functions()
XCTAssertTrue(operation.someMethod())
}
}
The unit test passes. However the coverage is %0. You can see the coverage image . Any idea?
Aucun commentaire:
Enregistrer un commentaire