7,074 questions
Advice
0 votes
2 replies
46 views
ASP.NET Core 10 integration tests using multiple web projects/entry points
When creating integration tests for ASP.NET Core 10 web apps, we use the WebApplicationFactory<TEntryPoint> class. When a single ASP.NET Core web project is used as SUT, it's simple and it works:...
0 votes
1 answer
71 views
Using HTTPkerberosauth with a javascript enabled web scraper
I'm working on integration tests for a web application that's running in a Docker container within our GitLab CI/CD pipeline. The application is a frontend that requires Kerberos/SPNEGO authentication ...
0 votes
1 answer
63 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
66 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
68 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
121 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
52 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
95 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
76 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
47 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
51 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
39 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
131 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
87 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
94 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 ...