7,074 questions
0
votes
0
answers
15
views
How do I create Test Suites in Kiwi TCMS?
I'm using Kiwi TCMS and I can't find the option to create a new Test Suite.
I expected to see a "New Suite" button under Test Cases, but it's not visible in my interface.
These are the steps ...
Advice
0
votes
2
replies
52
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
72
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
68
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
53
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
100
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
77
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
40
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
132
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 ...
1
vote
1
answer
99
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 ...
0
votes
0
answers
92
views
Testing Kafka flow with Test Containers
I am trying to use TestContainers to set up integration testing for kafka. I am using generic apache kafka client in my code for setting up kafka producer and consumer.Now my scenario is to test a ...
2
votes
1
answer
110
views
How to do integration tests for Web API controller with Serilog setup configuration dependency?
My Program.cs file looks like this:
public class Program
{
private static IConfigurationRoot _apiConfiguration = null!;
public static async Task Main(string[] args)
{
try
{...
0
votes
0
answers
55
views
How to override the request host name in integration tests
I have a system that supports multiple simultaneous customer accounts for which I am trying to write integration tests. At present it extracts part of the request hostname in order to determine the ...
3
votes
2
answers
261
views
How to setup JWT authentication with TimeProvider in .NET 9 integration tests - token validation fails with expiration errors
My application is an ASP.NET Core 9 Web API. I configure authentication with this extension method:
public static void SetupAuthentication(this IServiceCollection services)
{
var authSettings = ...
0
votes
1
answer
83
views
Error when trying to use test Jpa configuration in integration testing
What I am trying to achieve:
Run an integration test for a Spring Controller in a test container, use a TestJpaConfig instead of JpaConfig:
@SpringBootTest(webEnvironment = SpringBootTest....
0
votes
1
answer
63
views
How can I rigorously test an Elixir application that depends on both AMQP and AWS S3?
When I run mix test, the supervision tree declared in Application.ex attempts to start, which in turn attempts to start AMQP connections, but because the AMQP broker is unavailable in the test ...
2
votes
0
answers
81
views
How to use WebApplicationFactory for integration tests together with Hangfire?
I want to add integration tests to the project. The project also has a Hangfire. I decided to do it using test containers and WebApplicationFactory. But when trying to add to Hangfire services
...
0
votes
1
answer
25
views
Accessing variables passed into JestCLI - NestJs, Integration Testing
I'd like to use Jest as a testing framework to kick off a suite of Integration tests, and inside each test, I need to access a SALT - which will be passed in via a HTTP request, the same request which ...
0
votes
0
answers
81
views
Cucumber java integration tests are running twice in Intellij
I have AWS lambda with Java 21 and integration tests with cucumber using test containers and cucumber junit platform (including @Suite).
When I am running tests from it/java package, Cucumber tests ...
0
votes
0
answers
30
views
Avoiding multiple sessions in integration test
I'm workgin on a FastAPI app, using SQLAlchemy for the ORM, writing tests in pytest. I've got the following integration test:
async def test_list_items_success(authed_client, db_session):
await ...
0
votes
0
answers
48
views
Testing interaction between two web services
I'm learning integration tests on very simple example.
Specs:
I have 2 .Net Core apps: App1 and App2.
App1 uri: "http://localhost:1111",
App2 uri: "http://localhost:2222"
Scenario:
...
2
votes
0
answers
111
views
Spring 3.4.1 integration test-> Unable to evaluate the children renderer expression Method threw 'java.lang.AssertionError'
recently I have updated spring boot from 3.3.8 to newer version which is 3.4.1 and suddenly I have started to face a lot of new problems with integration tests. Few of them were really easy to adjust, ...
0
votes
0
answers
56
views
Spring Boot Maven Plugin does not pickup test properties or ansible properties for integration tests
I am trying to run openapi springdoc for my application for which I am using
<groupId>org.springdoc</groupId>`
<artifactId>springdoc-openapi-maven-plugin</artifactId>`
<...
0
votes
0
answers
30
views
WebFactory Releases Before Tests Begin Without Entering DisposeAsync
I have an integration test for which I have defined a factory where I am raising a Postgres container
public class IntegrationTestsWebFactory: WebApplicationFactory<Program>,IAsyncLifetime
{
...
1
vote
1
answer
77
views
MockMvc Test doesnt work when internal API is called
I am developing a Spring Boot application/library where i have a Service that sends a request to a an API. When in integration Test the Entry Point into the Service is an /integration Endpoint. The ...
0
votes
1
answer
69
views
Integration Test reports are getting generated under /target/surefire-reoport instead of /target/failsafe-report
The project I am working on currently has unit tests and integration tests both. The unit tests are correctly getting generated under /target/surefire-report/junitreports reports but the Integration ...
0
votes
0
answers
50
views
How to register mocked server to Discovery Testcontainer - OpenFeign & Wiremock
TL;DR:
How to mock a microservice in integration tests when using Feign and Eureka?
I am running integration tests on the Controller Layer of my Employee Service, which uses OpenFeign to create a ...
0
votes
0
answers
103
views
How to automatically adapt database connection in Rust integration tests without modifying function signatures?
I am encountering an issue with writing integration tests in Rust for an application that uses a database (PostgreSQL managed via SeaORM).
Some of my tests need to use the database to be properly ...
0
votes
1
answer
44
views
How to write an integration test on an urwid tui?
While trying to test a urwid-based question with input validation and autocomplete suggestions, I am experiencing some difficulties. The code that I am trying to test using pytest is given in the two ...
0
votes
0
answers
140
views
Spring Boot integration test with WebTestClient always returns 403 Forbidden
I'm trying to write an integration test for a Spring Boot application (written in Kotlin but should be similar in Java). It's a codebase I've inherited so I'm not too familiar with Spring Boot, but I'...
0
votes
1
answer
90
views
How to use Karma/Jasmine to test web application that opens a link in a new window/tab?
I have a small webapp that opens a link in a new window. The document in the new window then interacts with the original webapp through the DOM.
The webapp itself is written in Angular, but the link ...
0
votes
1
answer
66
views
Integration tests for akka http endpoints
I have an akka based application, and it has Application.java file which has structure like what we have defined here.
Now I want to write integration tests for akka http endpoints in this application,...
0
votes
1
answer
222
views
Issue with Manually Setting ID in Spring Boot Integration Test with WebTestClient
Issue with Manually Setting ID in Spring Boot Integration Test with WebTestClient
I am writing an integration test for my Spring Boot controller using WebTestClient. However, when I manually set the ...
0
votes
0
answers
38
views
Can't match API request from the system to stub data
I am trying to create a mock api (Oracle fusion) by using stub data. But struggling with one of the endpoints. API request from the app -> /hcmRestApi/resources/11.13.18.05/workers?fields=...
1
vote
1
answer
94
views
Running db migrations before integration tests
Suppose I have a web app consisting of an API and a db.
I also have a bunch of db migrations. Some of them update tables structure, while others also update the data. For instance, in migration_5 I do ...
0
votes
1
answer
48
views
.NET - Complex testing services
Hey,
We have two .NET http api services. Let's say Service A and Service B. We use Azure Service Bus with Mass Transit implementation to communicate between the services.
Of course, we write unit ...
2
votes
0
answers
96
views
ASP.NET Core Integration Test Failing in GitHub Actions (403 Forbidden) but Passing Locally
I'm running integration tests for an ASP.NET Core 8 Web API project, and I have a test that passes in my local IDE (Visual Studio Test Explorer) but fails in GitHub Actions with a 403 Forbidden error.
...
0
votes
0
answers
19
views
How to Test renderCart function without executing dependent paymentSummary.js in Jasmine?
I’m trying to write a unit test for the renderCart function in my orderSummary.js file using Jasmine. However, I’m encountering an issue where the paymentSummary.js module, which is imported in ...
0
votes
0
answers
32
views
Testing Desktop Applications
Let's assume we have a desktop application that implements the CreateMyFile function and this function is tested via unit tests. On the other hand, we have a Make file menu item that, when selected, ...
1
vote
2
answers
145
views
Integration tests failing because 'The following constructor parameters did not have matching fixture data'
I’m trying to create integration tests in .NET 9 C# using xUnit and TestContainers. However, whenever I run the tests, a new database container is created for each test class. I want to initialize ...
0
votes
0
answers
91
views
Integrationtest-Coverage of an Quarkusapplication with Jacoco and Cucumber shows 0% Coverage
Since two days I am struggling with this issue. I have 4 Microservices all running with Quarkus (for now they are all running with differenct ports on localhost). In a local Maven Module I run ...
2
votes
0
answers
92
views
Proper way to test DGS Federation?
I have the following structure of microservices with Apollo Gateway:
Each microservice shares its GraphQL schema with the gateway. Types in these schemas refer to types from neighboring microservice ...
0
votes
1
answer
183
views
How to empty all Queues in a RabbitMQ Testcontainer with Java?
How to empty all Queues for a RabbitMQ Testcontainer in Java?
Scenario
We're in an Integration Test scenario where we hand around a reusable RabbitMQ Testcontainer. Between test runs, we want to clear ...