7,075 questions
0
votes
1
answer
54
views
Cannot deactivate scheduling for Spring Boot integration test
I'm on Spring Boot 3.5.6 with Java 25 (Temurin). I followed this tutorial.
My config:
@Configuration
@EnableScheduling
@Profile(value = "!integrationtest")
public class SchedulingConfig
{
}
...
0
votes
0
answers
39
views
Testcontainers.CosmosDb takes a long time to be ready
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()
...
2
votes
1
answer
59
views
Why @Transactional method does not behave as expected in tests?
I'm testing that:
@RunWith(SpringRunner.class)
@DataJpaTest
@Import({ OrderService.class, UserService.class })
@AutoConfigureTestDatabase(replace = AutoConfigureTestDatabase.Replace.NONE)
public class ...
-4
votes
1
answer
97
views
A global sync.Mutex don't work with multiple client packages?
I have a package "tools" that expose a method that must execute some logic only one time. The next calls don't do nothing.
The file tools/tools.go is like:
package tools
import (
"...
1
vote
0
answers
39
views
How to make Microcks access my application during Quarkus integration tests
I developed a REST API Quarkus project based on an OpenAPI specification to validate contract testing with Microcks.
OpenAPI Specification
openapi: 3.0.0
x-stoplight:
id: 1q8257l49074g
info:
title:...
1
vote
1
answer
72
views
How to test .NET Core Console application which uses Dependency Injection using xUnit?
I have a console app constructed using the following code:
public partial class Program
{
private static async Task<int> Main(string[] args)
{
Host.CreateDefaultBuilder(args)
...
0
votes
0
answers
73
views
How to make Chromium work during automated testing?
I'm working on an ASP.NET Core Web API that uses PuppeteerSharp to create PDF files from HTML.
It has a Program class:
public partial class Program
{
public static void Main(string[] callParams)
...
3
votes
0
answers
46
views
How can I force EF6 to create a test database from the current model, bypassing migrations?
I am setting up an automated integration test environment for a large, existing Entity Framework 6 project that uses a MySQL database.
My goal is to create a fresh, empty database schema directly from ...
0
votes
0
answers
44
views
How to start a long-running server process with Node.js' native test runner without blocking subsequent tests?
I have an application that's currently using Mocha as its test runner, I've been exploring the native Node.js test runner but one stumbling block I've run into almost immediately is the question of ...
1
vote
0
answers
36
views
Conditional data sources in SpringBoot integration test
I have a SpringBoot app and I have added JUnit5 integration tests that use testcontainers:
class ControllerClassTest extends AbstractIntegrationTest {
@ParameterizedTest(name = "{0}")
...
3
votes
1
answer
117
views
How to pass command line args from ASP.NET Core integration test to tested app
I'm integration testing an ASP.NET Core app by using WebApplicationFactory. When starting the test server, I want to pass a command-line argument to the tested app, so to the Main method contained in ...
-1
votes
1
answer
86
views
How can I modify a git branch merged from multiple other branches, then propagate the changes back to the correct origin branches?
I have a dozen feature branches that I would like to manually test at the same time by merging them into a single test branch, to avoid repeating the overhead of setting up the test environment for ...
0
votes
0
answers
42
views
Use Mongo db container in integration tests on arm64 / M-processor, with transaction support
I started working on an existing .NET Core project, where the underlying database is MongoDb. The solution includes integration tests, which use the bitnami/mongo image with success. On a x64 machine, ...
0
votes
0
answers
91
views
Unable to Connect to Azurite Container from Custom Engine Container in Integration Tests
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 ...
1
vote
1
answer
73
views
.NET - TestContainers many instance PostgreSql conflict
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 ...