Skip to main content
Filter by
Sorted by
Tagged with
0 votes
1 answer
42 views

Description I am using a test Postgres container (from testcontainers) for more accurate integration tests. To prevent repeating code, I want to use my existing SQL migration files to setup the ...
rc07jnr's user avatar
  • 67
0 votes
1 answer
59 views

I am trying to create multiple containers using testcontainers lib which are sharing the same Network. What do I have right now is the following: network = Network.newNetwork(); container1 = new ...
user1234SI.'s user avatar
  • 1,878
0 votes
2 answers
88 views

I'm using Spring boot 3.5.6 and below is my container configuration package com.transmonix.utils; import org.junit.jupiter.api.BeforeAll; import org.junit.jupiter.api.BeforeEach; import org....
Tarunjeet Singh Salh's user avatar
0 votes
0 answers
63 views

I'm working on an Integration test, where I want to use Testcontainers.CosmosDb, however it takes quite a long time (about 2min) for the CosmosDb to be ready. var network = new NetworkBuilder() ...
smolesen's user avatar
  • 1,405
151 votes
24 answers
236k views

I am very new to using test containers. My test is failing with below exception. Running com.mastercard.example.testcontainers.testcontainersexampple.DemoControllerTest 2020-04-08 14:27:08.441 INFO ...
Ketan's user avatar
  • 3,442
1 vote
0 answers
39 views

I have a SpringBoot app and I have added JUnit5 integration tests that use testcontainers: class ControllerClassTest extends AbstractIntegrationTest { @ParameterizedTest(name = "{0}") ...
bash UI's user avatar
  • 11
0 votes
0 answers
32 views

When using Spanner Emulator with Testcontainers, it starts up pretty quickly (1-2 seconds) but then the connection from Java takes a very long time (even 2 minutes!). I start it up with: new ...
gotch4's user avatar
  • 13.3k
0 votes
2 answers
1k views

I'm trying to create a Redis cluster using TestContainers to test my application, which depends on a Redis cluster. Here's what I have tried so far: Code snippet for starting container: Network ...
djGowda's user avatar
  • 49
0 votes
0 answers
94 views

I'm currently working on integration tests for my project, which consists of two main components: an application and an engine. Both components are deployed into Azure Container Apps. The engine ...
user1877600's user avatar
5 votes
1 answer
193 views

Trying to create an integrationtest with a 'TestContainer.ServiceBus', however I'm not able to start the container, it just timesout, without not information about the reason. [Fact] public async Task ...
smolesen's user avatar
  • 1,405
1 vote
3 answers
635 views

I need to write an integration test for Kafka and Schema Registry working together because of utilizing AVRO serialization. My Maven configured as following (Apple M2 Max) % mvn -version Apache Maven ...
Aliaksandr Arashkevich's user avatar
1 vote
1 answer
93 views

I'm writing integration tests in my .NET Web API. I'm using XUnit for this. I am using factory and collection. And everything works as expected. I run factory there I have used PostgreSql database ...
pietro's user avatar
  • 221
58 votes
8 answers
68k views

I'm using TestContainers with Spring Boot to run unit tests for repositories like this: @Testcontainers @ExtendWith(SpringExtension.class) @ActiveProfiles("itest") @SpringBootTest(classes = ...
Martin Schröder's user avatar
0 votes
2 answers
343 views

I have an application with Springboot and AWS Cloud SQS and I want to test it using Localstack. All my tests run with a green status successfully, but my terminal is full of errors. The errors are as ...
Sparkmuse's user avatar
0 votes
1 answer
99 views

I'm writing integration tests using Testcontainers in a Spring Boot application. I am testing the user service, which calls the authentication service in order to encode the password when a user is ...
Razvan Anghel's user avatar
0 votes
1 answer
151 views

We are using Testcontainers.PostgreSql for functional testing in an API we are making and currently a new container is being made for each individual test. This is causing problem when running all the ...
Nyle Alliss's user avatar
2 votes
1 answer
82 views

I'm facing a problem where one of my integration tests affects the other. For example this delete test: class DeleteCustomerIntegrationTest extends AbstractConfigurationTest { @Test void ...
vrz-dev's user avatar
  • 31
0 votes
1 answer
292 views

I have just migrated my code to Testcontainer (for testing). If I run the test locally with Docker enabled, the test runs fine. Now, the issue comes when I try to run the same test in Docker [Docker-...
Akash Jain's user avatar
7 votes
2 answers
9k views

docker run <ryuk_image_id> fails because of the following error: panic: Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running? I have set up the ...
Katia Iacomussi's user avatar
0 votes
1 answer
80 views

I have multiple test classes that use the mongo test container. Instead of declaring a container using the same code multiple times, I wanted to create a test configuration, to avoid repetitive code. ...
Feldmarshall's user avatar
0 votes
1 answer
64 views

I use NUnit and Testcontainers to test my custom method for fetching data from Elasticsearch. The code to interact with elasric is this using ArticleStorage.Api.Models; using ArticleStorage.Api.Models....
waifu_anton's user avatar
0 votes
1 answer
186 views

I want to be able to simply do @MyTestConfig class MyTests { @Autowired SomeJpaRepo repo; @Test void findAll() { assertThatCode(repo::findAll).doesNotThrowAnyExceptions(); } } What I ...
Archimedes Trajano's user avatar
1 vote
1 answer
187 views

Can anyone using DBRider / Test Container in spring boot give advice ? I've been using DBRider/Testcontainer without any issue, but at some point , it doesn't work out. It seesm ...
Tony Lim's user avatar
5 votes
3 answers
8k views

I'm using TestContainer PostgresSql module for running jest tests with NodeJS. I installed the module and tried running the out of the box example here, but got the following error: Could not find a ...
Zigzagoon's user avatar
  • 857
0 votes
2 answers
176 views

public class AbstractContainerBaseTest { @ServiceConnection static final MySQLContainer<?> MY_SQL_CONTAINER = new MySQLContainer<>("mysql:8.0.32") static { ...
Frank Castle's user avatar

1
2 3 4 5
24