{"id":16284965,"url":"https://github.com/goodforgod/testcontainers-extensions","last_synced_at":"2026-03-11T02:04:00.290Z","repository":{"id":180205656,"uuid":"664752714","full_name":"GoodforGod/testcontainers-extensions","owner":"GoodforGod","description":"🧰 Testcontainers Extensions with advanced testing capabilities.","archived":false,"fork":false,"pushed_at":"2026-03-10T11:47:45.000Z","size":949,"stargazers_count":7,"open_issues_count":1,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2026-03-10T18:42:51.801Z","etag":null,"topics":["assertions","cassandra","cockroachdb","extensions","flyway","kafka","liquibase","mariadb","migration","mockserver","mysql","oracle","postgresql","redis","testcontainers"],"latest_commit_sha":null,"homepage":"http://goodforgod.dev/testcontainers-extensions/","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/GoodforGod.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2023-07-10T17:05:42.000Z","updated_at":"2025-11-26T20:08:00.000Z","dependencies_parsed_at":"2026-02-11T07:04:11.264Z","dependency_job_id":null,"html_url":"https://github.com/GoodforGod/testcontainers-extensions","commit_stats":null,"previous_names":["goodforgod/testcontainers-extensions"],"tags_count":27,"template":false,"template_full_name":"GoodforGod/java-library-template","purl":"pkg:github/GoodforGod/testcontainers-extensions","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GoodforGod%2Ftestcontainers-extensions","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GoodforGod%2Ftestcontainers-extensions/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GoodforGod%2Ftestcontainers-extensions/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GoodforGod%2Ftestcontainers-extensions/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/GoodforGod","download_url":"https://codeload.github.com/GoodforGod/testcontainers-extensions/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GoodforGod%2Ftestcontainers-extensions/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30367810,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-10T21:41:54.280Z","status":"online","status_checked_at":"2026-03-11T02:00:07.027Z","response_time":84,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["assertions","cassandra","cockroachdb","extensions","flyway","kafka","liquibase","mariadb","migration","mockserver","mysql","oracle","postgresql","redis","testcontainers"],"created_at":"2024-10-10T19:21:44.395Z","updated_at":"2026-03-11T02:04:00.265Z","avatar_url":"https://github.com/GoodforGod.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Testcontainers Extensions\n\n[![Minimum required Java version](https://img.shields.io/badge/Java-17%2B-blue?logo=openjdk)](https://openjdk.org/projects/jdk/17/)\n[![Maven Central](https://img.shields.io/maven-central/v/io.goodforgod/testcontainers-extensions-postgres.svg)](https://central.sonatype.com/artifact/io.goodforgod/testcontainers-extensions-postgres)\n[![GitHub Action](https://github.com/goodforgod/testcontainers-extensions/workflows/Release/badge.svg)](https://github.com/GoodforGod/testcontainers-extensions/actions?query=workflow%3A\"CI+Master\"++)\n[![Coverage](https://sonarcloud.io/api/project_badges/measure?project=GoodforGod_testcontainers-extensions\u0026metric=coverage)](https://sonarcloud.io/dashboard?id=GoodforGod_testcontainers-extensions)\n[![Maintainability Rating](https://sonarcloud.io/api/project_badges/measure?project=GoodforGod_testcontainers-extensions\u0026metric=sqale_rating)](https://sonarcloud.io/dashboard?id=GoodforGod_testcontainers-extensions)\n[![Lines of Code](https://sonarcloud.io/api/project_badges/measure?project=GoodforGod_testcontainers-extensions\u0026metric=ncloc)](https://sonarcloud.io/dashboard?id=GoodforGod_testcontainers-extensions)\n\nTestcontainers Extensions with advanced testing capabilities.\n\nMakes testing \u0026 asserts with Testcontainers even easier.\n\n## Featured extensions\n\n- [Postgres](postgres)\n- [Kafka](kafka)\n- [Oracle](oracle)\n- [MariaDB](mariadb)\n- [MySQL](mysql)\n- [Cockroachdb](cockroachdb)\n- [Cassandra](cassandra)\n- [Redis](redis)\n- [MockServer](mockserver)\n- [Minio](minio)\n- [Clickhouse](clickhouse)\n- [Redpanda](redpanda)\n- [Scylla](scylla)\n- [NATS](nats)\n\n## Usage\n\nHere is an example of [Kafka Extension](kafka) where KafkaContainer is started in `PER_RUN` mode with topic reset per method:\n\n```java\n@TestcontainersKafka(mode = ContainerMode.PER_RUN,\n        topics = @Topics(value = \"my-topic-name\", reset = Topics.Mode.PER_METHOD))\nclass ExampleTests {\n\n    @ConnectionKafka\n    private KafkaConnection kafkaConnection;\n\n    @Test\n    void test() {\n        var consumer = kafkaConnection.subscribe(\"my-topic-name\");\n        kafkaConnection.send(\"my-topic-name\", Event.ofValue(\"event1\"), Event.ofValue(\"event2\"));\n        consumer.assertReceivedAtLeast(2, Duration.ofSeconds(5));\n    }\n}\n```\n\nHere is an example of [Postgres Extension](postgres) where PostgresContainer is started `PER_RUN` mode and migrations are applied per method:\n\n```java\n@TestcontainersPostgreSQL(mode = ContainerMode.PER_RUN,\n        migration = @Migration(\n                engine = Migration.Engines.FLYWAY,\n                apply = Migration.Mode.PER_METHOD,\n                drop = Migration.Mode.PER_METHOD))\nclass ExampleTests {\n\n    @ConnectionPostgreSQL\n    private JdbcConnection postgresConnection;\n\n    @Test\n    void test() {\n        postgresConnection.execute(\"INSERT INTO users VALUES(1);\");\n        var usersFound = postgresConnection.queryMany(\"SELECT * FROM users;\", r -\u003e r.getInt(1));\n        assertEquals(1, usersFound.size());\n    }\n}\n```\n\n## Testcontainers compatibility\n\n- Version 0.13+ - build on top of Testcontainers [1.21.3](https://mvnrepository.com/artifact/org.testcontainers/testcontainers/1.21.3)\n- Version 0.12+ - build on top of Testcontainers [1.19.8](https://mvnrepository.com/artifact/org.testcontainers/testcontainers/1.19.8)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgoodforgod%2Ftestcontainers-extensions","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgoodforgod%2Ftestcontainers-extensions","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgoodforgod%2Ftestcontainers-extensions/lists"}