Hi Team, While running commonTest Unit testing cod...
# library-development
k
Hi Team, While running commonTest Unit testing code for native iOS I am getting below error Execution failed for task 'sharediosSimulatorArm64Test'. > There were failing tests. See the report at: file:///Desktop/library/shared/build/reports/tests/iosSimulatorArm64Test/index.html Can I run the commonTest cases for iOS or it should be test with XCTestcases in iOS I am able to run the Android without any errors Snippet:
Copy code
enum class  LoginResponse {
    LOGIN_SUCCESS,
    LOGIN_INCORRECT_USERNAME,
    LOGIN_INCORRECT_PASSWORD,
    LOGIN_USER_CANCELLED,
    LOGIN_AUTH_FAILURE,
    LOGIN_AUTHORISATION_FAILURE,
    LOGIN_LICENCE_NOT_VALID
}


object ProductManager {

    var loginResponseType =  LoginResponse.LOGIN_SUCCESS
 @Test
    fun  testIncorrectPassword() {
        ProductManager.loginResponseType = LoginResponse.LOGIN_INCORRECT_PASSWORD
        ProductManager.login(baseView = Any(), onSuccess = {
        }, onFailure = {
            assertEquals(it, "Failure")
        })

    }
}
if I remove below line
Copy code
ProductManager.loginResponseType = LoginResponse.LOGIN_INCORRECT_PASSWORD
its running without error