Hi Kotest-ers 👋
I'm new to the concept of Test Factories in Kotest.
I wonder if it could relate to the "Test Suite" concept in other test frameworks.
I mean, is it a proper use of it for a SpringBootTest starting an application, making a single call to a controller, and then
include
a list of spec execution?
At the moment I have a bunch of SpringBootTest making always the same thing and I want to raise the context just once.
🙏
d
Davio
12/14/2022, 10:29 AM
I try to avoid
@SpringBootTest
as much as possible, for controllers I use
@WebMvcTest
with a list of controllers, if I need other classes such as ControllerAdvice I add them as well
g
Giorgio Vespucci
12/14/2022, 10:32 AM
Interesting and thanks for your reply. simple smile
Well, indeed it's a test Vs. a GraphQL-Kotlin endpoint and I only followed what they describe on their GitHub.
Anyway, how is it related to my question on Kotest Test Factories?
🤔
🙏
d
Davio
12/14/2022, 10:38 AM
Hmm, sorry I don't use test factories, I think they should be used for very similar things, like different implementations of an interface