Is it good to test all error case in one test func...
# test
c
Is it good to test all error case in one test func? for example:
Copy code
@Test
fun `my error test`() {
    every { apiManager.foo() }.returnsMany(
        Observable.just(Response.error("Error A".toResponseBody())),
        Observable.just(Response.error("Error B".toResponseBody())),
        Observable.just(Response.error("Error C".toResponseBody())),
    )

    repeat(3) { presenter.bar() }

    verifyOrder {
        view.showErrorA()
        view.showErrorB()
        view.showErrorC()
    }
}
🚫 1
c
no. test one thing per test case
then you can give your tests a good name too.
displays XY when …