micronaut-projects / micronaut-test

Repository for Test Related Utilities for Micronaut
Apache License 2.0
80 stars 60 forks source link

Remove @MicronautTest(transactional=true) #967

Open sdelamo opened 3 months ago

sdelamo commented 3 months ago

@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)

graemerocher commented 1 month ago

this will break a lot of code

GeitV commented 3 weeks ago

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