<@U0RM4EPC7> try this: ``` class CustomInstanceFac...
# spek
r
@simon.vergauwen try this:
Copy code
class CustomInstanceFactory: InstanceFactory {
    override fun <T: Spek> create(spek: KClass<T>): T {
        return spek.objectInstance ?: spek.constructors.first { it.parameters.isEmpty() }
            .call()
    }
}

@CreateWith(CustomInstanceFactory::class)
open class MySpec(...): Spek({ ... })