Hlæja Test
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.
Kafka Test Container
@KafkaTestContainer Annotation for integration tests.
Initialize Kafka test container using test container default properties
Postgres Test Container
@PostgresTestContainer Annotation for integration tests.
Initialize Postgres test container using test container default properties, script located in src/<test path>/resources/postgres/ folder.
Properties For Test Container
| file | required | info |
|---|---|---|
| postgres/schema.sql | ✓ | Postgres init script containing all structure and functions |
| postgres/data.sql | Postgres data script containing all data to populate database | |
| postgres/reset.sql | Postgres reset script containing all command to reset database |
Releasing library
Run release pipeline from master branch.
Publishing library
Publish library locally
./gradlew clean build publishToMavenLocal
Publish library to repository
./gradlew clean build publish
Global Settings
This services rely on a set of global settings to configure development environments. These settings, managed through Gradle properties or environment variables.
Note: For more information on global properties, please refer to our global settings documentation.
Gradle Properties
repository.user=your_user
repository.token=your_token_value
Environment Variables
REPOSITORY_USER=your_user
REPOSITORY_TOKEN=your_token_value