Public Access
test: one test container and one context per test kind
This commit is contained in:
1 parent
1f94c87a20
commit
3336181cdb
20 files changed
+65
-130
No files matched your search
@@ -153,7 +153,9 @@ use each other.
|
||||
ArchUnit enforces these rules in `src/test/java/auth_service/architecture/ArchitectureTest.java`, so a layer
|
||||
violation fails the build. It also keeps the modules independent of each other and free of cycles. Test base
|
||||
classes (`AbstractUnitTest`, `AbstractWebMvcTest`, `AbstractPersistenceTest`, `AbstractIntegrationTest`) live in
|
||||
`auth_service.shared.test`; all integration tests share one PostgreSQL container.
|
||||
`auth_service.shared.test`. Integration and persistence tests share one PostgreSQL container (`TestPostgres`), and
|
||||
the base classes carry every annotation, so each kind starts one Spring context. A test with its own annotations
|
||||
starts another one.
|
||||
|
||||
### Login flow
|
||||
|
||||
|
||||
Reference in new issue
Block a user