Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove @MicronautTest(transactional=true) #967

Open
sdelamo opened this issue Mar 5, 2024 · 2 comments
Open

Remove @MicronautTest(transactional=true) #967

sdelamo opened this issue Mar 5, 2024 · 2 comments
Labels
status: next major version The issue will be considered for the next major version status: under consideration The issue is being considered, but has not been accepted yet

Comments

@sdelamo
Copy link
Contributor

sdelamo commented Mar 5, 2024

@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 sdelamo added the status: next major version The issue will be considered for the next major version label Mar 5, 2024
@sdelamo sdelamo moved this to Todo in 5.0.0 Release Mar 5, 2024
@graemerocher
Copy link
Contributor

this will break a lot of code

@GeitV
Copy link

GeitV commented Jun 6, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status: next major version The issue will be considered for the next major version status: under consideration The issue is being considered, but has not been accepted yet
Projects
Status: Todo
Development

No branches or pull requests

3 participants