micronaut-projects / micronaut-test

Repository for Test Related Utilities for Micronaut
Apache License 2.0
83 stars 61 forks source link

Remove @MicronautTest(transactional=true) #967

Open sdelamo opened 8 months ago

sdelamo commented 8 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 6 months ago

this will break a lot of code

GeitV commented 5 months 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