当前位置: 首页 > 软件库 > 云计算 > >

testcontainers-java

授权协议 MIT License
开发语言 Java
所属分类 云计算
软件类型 开源软件
地区 不详
投 递 者 张鸿宝
操作系统 跨平台
开源组织
适用人群 未知
 软件概览

Testcontainers

Testcontainers is a Java library that supports JUnit tests, providing lightweight, throwaway instances of common databases, Selenium web browsers, or anything else that can run in a Docker container.

Read the documentation here

License

See LICENSE.

Copyright

Copyright (c) 2015 - 2021 Richard North and other authors.

MS SQL Server module is (c) 2017 - 2021 G DATA Software AG and other authors.

Hashicorp Vault module is (c) 2017 - 2021 Capital One Services, LLC and other authors.

See contributors for all contributors.

  • 我们喜欢定期浏览未被充分认识的Java库,以了解一些宝石。 今天,我们来看看Testcontainers ,这是一个支持JUnit测试的Java库。 现在,开发人员可以轻松地在他们的JUnit测试期间启动有用的Docker容器,这些容器可以满足他们的所有需求。 Testcontainer提供了可以装入容器的任何东西的轻量,一次性的实例。 这使得使用Docker容器进行测试变得比以往更加容易。 那么

  • docker和服务器集成 We, as good developers, create unit tests for every piece of code we write, so we can be confident to iterate on the code. Unit tests are fast, reliable and relatively easy to write and m

  • 在UTDD的流程中,通常会从上到下进行模拟,流程如下: Controller接口单元测试 –》Controller接口代码实现 –》Api接口单元测试 –》Api接口代码实现 那么我们先从Controller的单元测试模拟开始: 一、MockMvc功能介绍: MockMvc是由spring-test包提供,实现了对Http请求的模拟,能够直接使用网络的形式,转换到Controller的调用,使得测

 相关资料
  • Data services library If you develop services using Spring Boot and maybe Spring Cloud and you domedium sized tests during build process, then this set ofSpring Boot auto-configurations might be handy

  • 我正在尝试对停靠数据库运行DropWizard的集成测试。 DropWizard 测试容器 我试过的: 我得到由:java.lang.IllegalStateException引起的 将这些链接在一起也不起作用 最后,这是可行的,但据我所知,它在每次测试中都运行新的DropwizardAppRule,这是不好的... 那么,如何将规则链接起来,使PostgreSQLContainer首先启动,并且

  • 我在玩Testcontainers、Micronaut和Kotlin,不知何故Micronaut不想替换到我正在启动的MongoDB的动态端口及其目前的工作状态。 我还没有替换 这是我的设置代码: 错误消息:消息:无法解析占位符${MONGO_PORT}

  • 我正在尝试JUnit5TestContainers快速启动示例:

  • 我有慢的互联网连接,但我已经有我需要的docker映像。: 或使用通用的: 但结果是错误的: 如何优化testcontainers以使用本地映像?

  • 我想在play应用程序(使用slick)启动之前,从docker compose文件(postgres和kafka实例)启动testcontainers。我想要这个,这样我就可以写一个端到端的测试。我似乎不明白这是怎么可能的。 Scala版本2.12.10 Testcontainer版本0.35.0 Play slick版本5.0.0 当我在没有“TestFunSpec”的情况下执行测试时,doc