micronaut-test icon indicating copy to clipboard operation
micronaut-test copied to clipboard

Remove @MicronautTest(transactional=true)

Open sdelamo opened this issue 11 months ago • 2 comments

@dstepanov

Remove by default “transaction=true” from @MicronautTest and require @Transactional annotation on the test class / method like Spring https://docs.spring.io/spring-framework/reference/testing/testcontext-framework/tx.html (This will drop support for running all tests in one TX)

sdelamo avatar Mar 05 '24 13:03 sdelamo

this will break a lot of code

graemerocher avatar May 20 '24 14:05 graemerocher

Can we at least be able to turn this off for the whole project in config? I tried to find such config, but currently, I am just writing all annotations with transaction=false

GeitV avatar Jun 06 '24 08:06 GeitV