{"id":20196169,"url":"https://github.com/shaikrasheed99/kotlin-springboot-testcontainers-example","last_synced_at":"2026-05-16T17:38:08.390Z","repository":{"id":209639415,"uuid":"724584906","full_name":"shaikrasheed99/kotlin-springboot-testcontainers-example","owner":"shaikrasheed99","description":"Example of Testcontainers with Spring Boot in Kotlin.","archived":false,"fork":false,"pushed_at":"2023-11-29T16:35:54.000Z","size":76,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-12T00:03:26.884Z","etag":null,"topics":["spring-boot-testcontainers","springboot","testcontainers","testcontainers-junit-5","testcontainers-junit-jupiter","testcontainers-kotlin","testcontainers-postgres"],"latest_commit_sha":null,"homepage":"","language":"Kotlin","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/shaikrasheed99.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}},"created_at":"2023-11-28T11:35:32.000Z","updated_at":"2023-11-29T16:35:20.000Z","dependencies_parsed_at":"2023-11-29T17:47:46.688Z","dependency_job_id":null,"html_url":"https://github.com/shaikrasheed99/kotlin-springboot-testcontainers-example","commit_stats":null,"previous_names":["shaikrasheed99/kotlin-springboot-testcontainers-example"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/shaikrasheed99/kotlin-springboot-testcontainers-example","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shaikrasheed99%2Fkotlin-springboot-testcontainers-example","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shaikrasheed99%2Fkotlin-springboot-testcontainers-example/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shaikrasheed99%2Fkotlin-springboot-testcontainers-example/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shaikrasheed99%2Fkotlin-springboot-testcontainers-example/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/shaikrasheed99","download_url":"https://codeload.github.com/shaikrasheed99/kotlin-springboot-testcontainers-example/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shaikrasheed99%2Fkotlin-springboot-testcontainers-example/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279009475,"owners_count":26084609,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-10-11T02:00:06.511Z","response_time":55,"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":["spring-boot-testcontainers","springboot","testcontainers","testcontainers-junit-5","testcontainers-junit-jupiter","testcontainers-kotlin","testcontainers-postgres"],"created_at":"2024-11-14T04:22:11.753Z","updated_at":"2025-10-12T00:06:02.531Z","avatar_url":"https://github.com/shaikrasheed99.png","language":"Kotlin","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Testcontainers with Spring Boot in Kotlin\n\nIn this example, I have created a simple Spring Boot project integrated with JPA to interact with a PostgreSQL database.\n\nThis project includes two sets of tests:\n\n* **Unit Tests:**\n    * Uses a local machine's postgres database for testing.\n\n* **Integration Tests with Testcontainers:**\n    * Uses Testcontainers to run tests with a real PostgreSQL container.\n\n## Testcontainers\n\n[Testcontainers](https://testcontainers.com/), a powerful Java library that simplifies and enhances the testing of your applications by providing\ndisposable containers for databases, web browsers, and more.\n\nTestcontainers allows you to write more realistic and reliable tests by running your dependencies, such as databases, in\nisolated containers.\n\n* **Easily Manage Dependencies:**\n    * Run databases, queues, and other services as Docker containers for testing purposes.\n\n* **Realistic Testing:**\n    * Testcontainers allows you to test against real instances of your dependencies, ensuring a more accurate\n      representation of your production environment.\n\n* **Disposable Containers:**\n    * Containers are started before tests and stopped afterward, ensuring a clean and isolated environment for each\n      test.\n\n## Getting Started\n\n1. Clone the Repository:\n\n```bash\ngit clone https://github.com/shaikrasheed99/kotlin-springboot-testcontainers-example\n```\n\n2. Move to the project directory:\n\n```bash\ncd kotlin-springboot-testcontainers-example\n```\n\n3. Build the Project:\n\n```bash\n./gradlew clean build\n```\n\n4. Run the Application:\n\n```bash\n./gradlew bootRun\n```\n\nThe application will start, and you can access it at `http://localhost:8080`.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshaikrasheed99%2Fkotlin-springboot-testcontainers-example","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fshaikrasheed99%2Fkotlin-springboot-testcontainers-example","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshaikrasheed99%2Fkotlin-springboot-testcontainers-example/lists"}