https://github.com/raeperd/avoid-transactional-in-test
You should avoid `@Transactional` in test. This repo proves that.
https://github.com/raeperd/avoid-transactional-in-test
h2-database kotlin spring-data-jpa springboot
Last synced: about 1 month ago
JSON representation
You should avoid `@Transactional` in test. This repo proves that.
- Host: GitHub
- URL: https://github.com/raeperd/avoid-transactional-in-test
- Owner: raeperd
- Created: 2023-07-22T17:52:10.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2023-07-30T09:34:02.000Z (almost 3 years ago)
- Last Synced: 2025-01-12T15:10:23.105Z (over 1 year ago)
- Topics: h2-database, kotlin, spring-data-jpa, springboot
- Language: Kotlin
- Homepage:
- Size: 67.4 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Avoid `@Transactional` in test
This repository is executable sample repository from article [How To Clean Up Database Tables After Each Integration Test](https://raeperd.github.io/articles/how-to-clean-up-database-tables-after-each-integration-test/)
## Referenced
- [Don’t Use @Transactional in Tests - DEV Community](https://dev.to/henrykeys/don-t-use-transactional-in-tests-40eb)
- [(2) How To Clean Your Database Between JUnit 5 Tests With Spring Boot - YouTube](https://www.youtube.com/watch?v=lfHG9qnSvpQ)
- [Cleaning up database tables after each integration test method with Spring Boot 2 and Kotlin | by Sébastien Dubois. | Medium](https://dsebastien.medium.com/cleaning-up-database-tables-after-each-integration-test-method-with-spring-boot-2-and-kotlin-7279abcdd5cc)
- [Eradicating Non-Determinism in Tests](https://martinfowler.com/articles/nonDeterminism.html)
- [Test case is not represents real applications transaction scope · Issue #33 · raeperd/realworld-springboot-kotlin](https://github.com/raeperd/realworld-springboot-kotlin/issues/33)
- [raeperd/avoid-transactional-in-test: You should avoid @Transactional in test. This repo proves that.](https://github.com/raeperd/avoid-transactional-in-test)