Loading

Slzii.com Search

https://testcontainers.com

Testcontainers
Testcontainers is an opensource library for providing lightweight, throwaway instances of common databases, Selenium web browsers, or anything else that can run in a Docker container.
Testcontainers 🚨 AtomicJar is now part of Docker 🐋! Read the blog Dismiss Announcement MenuDesktop NEWCloudGetting StartedGuidesModules Docs Java Go .NET Node.js Clojure Elixir Haskell Python Ruby RustBlog Slack GitHubUnit tests with real dependenciesTestcontainers is an open source library for providing throwaway, lightweight instances of databases, message brokers, web browsers, or just about anything that can run in a Docker container.How it worksTest dependencies as codeNo more need for mocks or complicated environment configurations. Define your test dependencies as code, then simply run your tests and containers will be created and then deleted.With support for many languages and testing frameworks, all you need is Docker.Get started with Get started with Get started with Get started with Get started with Get started with Get started with Get started with Get started with Get started with Java Go .NET Node.js Python Rust Haskell Ruby Clojure ElixirGenericContainer redis = new GenericContainer("redis:5.0.3-alpine") .withExposedPorts(6379); container, err := testcontainers.GenericContainer(ctx, testcontainers.GenericContainerRequest{ ContainerRequest: testcontainers.ContainerRequest{ Image: "redis:5.0.3-alpine", ExposedPorts: []string{"6379/tcp"}, WaitingFor: wait.ForLog("Ready to accept connections"), }, Started: true, }) RedisContainer redisContainer = new RedisBuilder().Build(); await redisContainer.StartAsync(); const redis = await new GenericContainer("redis:5.0.3-alpine") .withExposedPorts(6379) .withWaitStrategy(Wait.forLogMessage("Ready to accept connections")) .start(); redis = ( DockerContainer("redis:5.0.3-alpine") .with_exposed_ports(6379) ) redis.start() wait_for_logs(redis, "Ready to accept connections") let redis = GenericImage::new("redis", "7.2.4") .with_exposed_port(6379) .with_wait_for(WaitFor::message_on_stdout("Ready to accept connections")) .start(); redis <- run $ containerRequest (TestContainers.fromTag "redis:5.0.3-alpine") & setExpose ["6379/tcp"] & setWaitingFor (waitUntilMappedPortReachable "6379/tcp") redis = Testcontainers::DockerContainer.new("redis:5.0.3-alpine").with_exposed_port(6379) redis.start (def container (-> (tc/create {:image-name "redis:5.0.3-alpine") :exposed-ports [6379]}) (tc/start!))) {:ok, _} = Testcontainers.start_link() config = %Testcontainers.Container{image: "redis:5.0.3-alpine"} {:ok, container} = Testcontainers.start_container(config) ModulesTest Anything You Can Containerize: Database, Message Broker, And More See all 50+ ModulesUse casesHow Testcontainers® can help youData access layer integration testsUse a containerized instance of your database to test your data access layer code for complete compatibility, without requiring a complex setup on developer machines. Trust that your tests will always start with a known state.UI/Acceptance testsUse containerized web browsers, compatible with Selenium, to run automated UI tests. Each test gets a fresh, clean instance of the browser, without having to worry about variations in plugins or required updates.Application integration testsRun your application in a short-lived test mode with dependencies, such as databases, message queues or web servers, to give you a rich interactive and explorative testing environment.Get startedSupported LanguagesThere are implementations of Testcontainers® in all of your favorite languages. Click through to read their specific documentation. Java Go .NET Node.js Clojure Elixir Haskell Python Ruby RustIndustry standardCompanies using Testcontainers Articles About Testcontainersengineering.atspotify.comAnnouncing the Recipients of the 2023 Spotify FOSS FundTestcontainers was also part of last year’s fund, receiving 13,000 EUR. And there’s a good reason why it’s back in 2023devblogs.microsoft.comTrying out MongoDB with EF Core using TestcontainersAn introduction to the MongoDB database provider for EF Core, including use of Testcontainersuber.comHandling Flaky Unit Tests in JavaBuilding a stable and reliable testing system is often a key requirement for software development organizationsdoordash.engineeringHow to Boost Code Coverage with Functional TestingIntroducing a non manual functional testing approach that can be run like unit tests locally or in a Continuous Integration (CI) pipeline.capitalone.comTestcontainers & LocalStack for Spring Boot functional testsA guide from Capital One to using Docker and Testcontainers to make functional tests more portable & economical without sacrificing testing quality.cloud.google.comDevelop and Test Spring Boot Applications ConsistentlyLearn how to consistently build and test with environment parity from development to production with Emulators and open-source Testcontainers.A huge thankyou to our sponsorsBronze Sponsors Donors BackersPhilip Riecks Karl Heinz Marbaise Sascha Frinken Christoph Dreis Nikita Zhevnitskiy Bas Stoker Oleg Nenashev Rik Glover Amitosh Swain Mahapatra Paris Apostolopoulos XDEV SoftwareCommunity ChampionsInspirational members of the communityTestcontainers Community Champions actively contribute to the growth and betterment of the Testcontainers community. They are passionate about Testcontainer, and use their knowledge and skills to help others succeed.Meet our Community ChampionsWant to stay up to date?Read the NewsletterLinksCommunity ChampionsTestcontainers for JavaTestcontainers for GoTestcontainers for .NETTestcontainers for Node.jsTestcontainers for ClojureTestcontainers for ElixirTestcontainers for HaskellTestcontainers for PythonTestcontainers for RubyTestcontainers for RustJoin the communityWe hope that you find Testcontainers reliable and intuitive to use. However sometimes things don't go the way we'd expect and we'd like to try and help out if we can.Privacy Policy Cookie Policy Your Privacy Choices Notice at Collection
en
us
en-us
1726605372
https://testcontainers.com

Edit your site?

What are you doing?

0.0059850215911865


Webdirectory
Webdirectory

Webdirectory
Testcontainers is an opensource library for providing lightweight, throwaway instances of common databases, Selenium web browsers, or anythi...
Webdirectory