Hi, is it possible to test an abstract class with kotest?
w
wasyl
07/21/2020, 12:42 PM
How do you mean? How would you test an abstract class with a different framework (e.g. junit4)?
m
Matteo Mirk
07/21/2020, 12:42 PM
Can you instantiate an abstract class? The answer to this question will answer yours too š
š 1
s
savrov
07/21/2020, 2:55 PM
Yeah, this is the way I've went. Just thought there can be a some sort of mock.. anyway, I'm happy with a provided solution
m
Matteo Mirk
07/21/2020, 3:49 PM
When in doubt always ask yourself if it makes sense to test an item. What behavior should I test from it? What value adds to the project? Does it make sense?