TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Show HN: Testcontainers, Docker support for JUnit integrated tests

3 点作者 killing_time超过 9 年前

1 comment

killing_time超过 9 年前
Developer here! This library arose out of frustration with running Java tests that had some kind of non-Java dependencies - e.g. databases and web browsers for UI testing. Testcontainers lets you add Docker containers to your tests, linked to the lifecycle of the test rather than having to be externally managed from the outside. I&#x27;ve found it useful, and hope others do too.<p>A few blog posts outline some of the ways the library can be used:<p>* JUnit integration testing with Docker and Testcontainers [1]<p>* Fun with Disque, Java and Spinach [2]<p>* Better JUnit Selenium testing with Docker and Testcontainers [3]<p>[1] <a href="https:&#x2F;&#x2F;rnorth.org&#x2F;24&#x2F;junit-integration-testing-with-docker-and-testcontainers" rel="nofollow">https:&#x2F;&#x2F;rnorth.org&#x2F;24&#x2F;junit-integration-testing-with-docker-...</a><p>[2] <a href="https:&#x2F;&#x2F;rnorth.org&#x2F;25&#x2F;fun-with-disque-java-and-spinach" rel="nofollow">https:&#x2F;&#x2F;rnorth.org&#x2F;25&#x2F;fun-with-disque-java-and-spinach</a><p>[3] <a href="https:&#x2F;&#x2F;rnorth.org&#x2F;26&#x2F;better-junit-selenium-testing-with-docker-and-testcontainers" rel="nofollow">https:&#x2F;&#x2F;rnorth.org&#x2F;26&#x2F;better-junit-selenium-testing-with-doc...</a>