Each module's documentation describes the Maven/Gradle dependency to add to your project's build.įor the core library, the latest Maven/Gradle dependency is as follows: A separate JAR file for each of the specialised modules.A core JAR file for core functionality, generic containers and docker-compose support.Testcontainers is distributed as separate JARs with a common version number: Or manually add code to control the container/test lifecycle (See hints for this approach).JUnit 4 - See the JUnit 4 Quickstart Guide.Docker - please see General Docker requirements.Much more! Check out the various contributed modules or create your own custom container classes using GenericContainer as a base.And you get a video recording of each test session, or just each session where tests failed. Each test can get a fresh instance of the browser, with no browser state, plugin variations or automated browser upgrades to worry about. UI/Acceptance tests: use containerized web browsers, compatible with Selenium, for conducting automated UI tests.Application integration tests: for running your application in a short-lived test mode with dependencies, such as databases, message queues or web servers. ![]() Any other database type that can be containerized can also be used.
0 Comments
Leave a Reply. |