Set up postgresql testcontainers
- add .json to .editorconfig - add spring-configuration-metadata.json - update README.md - add testcontainers dependencies - add PostgresContainer - add PostgresInitializer
This commit is contained in:
13
README.md
13
README.md
@@ -2,6 +2,19 @@
|
||||
|
||||
In the forge of software development, where annotations ignite, A crucible of testing, common classes to excite. Each annotation examined, with attention to detail and might, Their effects on code behavior, tested through day and night. From mockk objects to test doubles, a toolkit to refine, Developers and testers, their skills to redefine. The Annotation Validator, a sentinel of code integrity true, A library of verification, where testing wisdom shines anew.
|
||||
|
||||
## Postgres Test Container
|
||||
|
||||
`@PostgresContainer` Annotation for integration tests.
|
||||
|
||||
Initialize Postgres test container using spring properties for R2DBC,
|
||||
script located in `src/<test path>/resources/postgres` folder.
|
||||
|
||||
* `schema.sql` file containing all structure and functions when star.
|
||||
* `data.sql` file containing all data added before all test.
|
||||
* `reset.sql` file containing all to reset database after all test.
|
||||
|
||||
if file exist it will be loaded...
|
||||
|
||||
## Releasing library
|
||||
|
||||
Run `release.sh` script from `master` branch.
|
||||
|
||||
Reference in New Issue
Block a user