Relative Content

Tag Archive for kotlinunit-testingtestingjunitjunit5

ParameterizedTest JUNIT5 with suspend functions

I’m trying to clean a little bit my code and when testing my datasource I’m repeating a lot the test that returns connection and service error, and I’d like to have a bunch of code that tests everything, I’m using ParameterizedTest for other things and I thought this could be another way to do so, but I’m facing some problems like :
1.- I don’t have access to the classes I want the method of
2.- They are suspend fun so Arguments.arguments() doesn’t accept that