Questions tagged [integration-testing]
A form of software testing where individual software modules (or components) are combined and tested as a group. Integration testing happens after unit testing, and before system testing.
6,988
questions
0
votes
0
answers
14
views
WebApplicationFactory DI gets overriden by Program.cs
I have an API that I would like to make integration tests for. I have a Program.cs and a custom made Startup.cs which is basically a static class containing extension methods to WebApplicationBuilder ...
0
votes
0
answers
9
views
Moved NUnit 3 test to new project results in poor performance
Setup of dotnet 7 project:
<namespace>.Api
<namespace>.Api.Test
some others
I started with an integration test, within <namespace>.Api.Test project.
The integration test basically ...
0
votes
0
answers
41
views
NUnit tests on Azure DevOps split across VMs
I have an Azure DevOps build pipeline with NUnit3Adaptor 4.5.0, running integration tests in parallel across 3 VMs. A number of our tests are in a single file, single setup, and many tests that run ...
0
votes
0
answers
13
views
How to mock 3rd party API calls in next.js integration tests?
I am calling OpenAI APIs from my next routes, I can intercept browser requests using nock library like below, but it won't mock server-side API calls since I am not calling OpenAI API from the browser ...
-2
votes
0
answers
27
views
Consider defining a bean of type 'com.fasterxml.jackson.databind.ObjectMapper' in your configuration
Getting this error on this class everytime I'm trying to run any test case in my application, java springboot
Error
Consider defining a bean of type 'com.fasterxml.jackson.databind.ObjectMapper' in ...
0
votes
1
answer
34
views
TouchableOpacity fails on second render with React Native Testing Library
When I test component containing TouchableOpacity with React-Native testing library, first time render is ok, second time in test suite test always fails.
If I replace TouchableOpacity with ...
0
votes
0
answers
15
views
How do I write an integration test for openai's node SDK with streaming: true using jest
I am having difficulty writing a test for openai's node.js SDK using the streaming: true flag.
The code that follows works great in the browser, I just wish to write a test for it.
I would like to ...
0
votes
0
answers
18
views
Laravel7: Running integrations tests end in failure, NOT Found
I am upgrading my Laravel app form L6 to L7 and when I try to run integration tests, it ends in failure. So here is my setup code:
protected function runCommand($command, array $arguments = [], ...
0
votes
0
answers
32
views
Cargo `OUT_DIR` env var not found when run a specific test
Can someone help me to understand this?
I have a rust project that has a lib crate: my_crate_2. Here is the file structure of it:
my_project/
├── Cargo.toml
└── src/
└── main.rs
my_crate_2/
├── ...
1
vote
0
answers
29
views
Mock 2 clocks for different integration in same class - Micronaut
I'm facing an issue in my Micronaut integration test where I'm trying to use two different fixed clocks in two separate tests. One should be set to 10th Oct 1800, and the other to 10th Oct 1900. ...
0
votes
0
answers
15
views
SpringBootTest: No servlet with name springServlet defined in web.xml
I want to write integration tests for my spring boot 3 application. During test execution the first thing is logging in with a test user and retrieve a JSESSIONID cookie (I use form login). after ...
0
votes
0
answers
20
views
Quarkus integration tests cannot connect
We have a Quarkus 3.6 application that is using the quarkus-amazon-lambda extension. Now we are trying to create integration tests under src/integrationTest/java directory.
When I run the test with ./...
0
votes
0
answers
26
views
Database is cleared after first integration test, .NET
Im trying to build my first integration test in .NET API. But unfortunately it seems that my database is clearing after the first test.
CustomWebApplicationFactory
public class ...
-1
votes
0
answers
26
views
Get code coverage of integration test of binary
C language supports gcovr to get code coverage of unit test. If I have a integration test which uses binary(build by cmake in one project) with different options to test different cases. Is there any ...
0
votes
0
answers
37
views
Adding integration tests to cloud functions
I am trying to follow this documentation to add integration tests to a cloud function:
https://cloud.google.com/functions/docs/samples/functions-storage-integration-test
The first step (setup) ...
0
votes
1
answer
26
views
How to initiate integration test project for httpApi Rest Api in Abp Framework
I have already Abp framework project without UI. And I am using HttpApi for create rest api
And now i want have integration test for testing this project. But i don't know how to initiate this by ...
-1
votes
0
answers
31
views
Integration Testing for Azure CI/CD - how to? [duplicate]
Re-asking my Q, as it was closed and not re-opened, after my edit of it.
Advice on Integration Testing for Azure CI/CD
Before I start Thank You to Mark Seemann for your answer and reply.
I would just ...
0
votes
0
answers
30
views
Test cases logging increased number of kafka client connection issues after upgrading spring-kafka to 3.0.10
We have a Spring Test, where we create a @MockBean of a Kafka template, so that the context doesn't fail to initialize during the startup. This is just a base class and does not have any tests in it ...
0
votes
1
answer
33
views
Test Container test cases do not run due to "Could not find a valid Docker environment", scalatest, os x, Docker Desktop
Trying to run integrations tests with Scalatest on my mac. Got the error:
java.lang.IllegalStateException: Could not find a valid Docker environment. Please see logs and check configuration
The ...
-1
votes
0
answers
53
views
Spring Boot Reactive : integration testing
I am working on a Spring Boot Reactive application. I am trying to do integration test:
@Configuration
class Config {
@Bean
ServiceImpl service(List<A> a) {
return a ->...
0
votes
0
answers
18
views
Run Codeception Acceptance Test within two Integration Tests coded in simple PHPUnit
Consider the following Integration test file extract based on PHPUnit:
...
/**
* @return void
*/
public function test_first() {
$this->assertTrue(true);
}
/**
* @depends ...
0
votes
0
answers
23
views
My Bitbucket pipeline never stops after completing the integration test
I'm running integration testing in the bitbucket pipeline. To run the integration test I need to run the project first then run the karma to test my test cases. But after the test is completed my ...
0
votes
1
answer
14
views
Integration testing in Laravel
I am currently learning how to perform tests in Laravel. I created an integration test of the Product controller in the ProductController test and tested the store function.
class ...
0
votes
0
answers
65
views
How to solve "Failed to instrospect class" in Spring Testing Context?
Upgrading from Spring Boot 2 to 3 brought some problems with our app.
The following Dependency
<dependency>
<groupId>it.ozimov</groupId>
<artifactId>spring-...
0
votes
0
answers
33
views
Apk file not found
Cannot find module '\Program Files\nodejs\node_modules\npm\bin\node_modules\npm\bin\npm-cli.js'
at Module._resolveFilename (node:internal/modules/cjs/loader:1144:15)
at Module._load (node:...
0
votes
0
answers
25
views
Does it make sense to write integration/end-to-end tests for api-gateway?
just want to know/see different point of views regarding this type of tests for api-gateway and your experience if you had something similar in your practice.
Thank you.
0
votes
0
answers
54
views
Durable Orchestrator not calling Activity in Integration Test
I have application that uses Azure Durable Orchestrators and Activties and I am trying to write Integration Test for it by following the instructions here.. Mind you this Function App runs ...
0
votes
1
answer
102
views
Using Testcontainers.MsSql.MsSqlBuilder and create database for .NET Core/C# integration tests
I'm trying to use Testcontainers to perform integration tests on my .NET Core 7 Web API which has a SQL Server data store. I can create the container, but I'm lost on where/when to create my database/...
0
votes
0
answers
83
views
Error: P1001: Can't reach database server at localhost:5432 in GitHub Actions
Currently I have CI/CD on my back-end project with Prisma through GitHub actions. The one part of it is integration tests. Before running the tests there is created a testing PostgreSQL database in ...
0
votes
0
answers
29
views
How to test Spring Boot @Retryable in cucumber?
How do I write integration test for Spring Boot @Retryable in cucumber? I have a service method annotated with @Retryable. MaxAttempt is set to 3 and delay is 1. To mock the server, I am going to use ...
1
vote
0
answers
28
views
Automated OAuth 2.0 Authorization Code Flow in CI/CD Pipeline with Postman CLI
Description:
I am working on setting up a CI/CD pipeline using GitLab, and I'm using Postman CLI to automate OAuth 2.0 flows for testing purposes. The specific scenario involves the OAuth 2.0 ...
0
votes
0
answers
29
views
Mock firebase functions in cypress
I am using signInWithEmailAndPassword from firebase/auth to log in my users in my next.js app and I want to write a cypress test for my login page.
I don't want to fire a login request to Firebase in ...
0
votes
0
answers
38
views
How to catch custom exception?
I'm working on a reactive Kotlin project, I wrote a test where, when information is missing (layout), it will trigger a custom exception.
Debugging I saw that the exception is thrown during the test ...
0
votes
1
answer
69
views
ASP.NET Core 7.0 integration tests could not find reference
I have the following projects:
XY.Api
XY.IntegrationTests (I use xUnit)
I added XY.Api reference to the test project and I write a basic test like this:
public class UnitTest1
{
[Fact]
...
0
votes
0
answers
20
views
Spring Boot RestTemplate call in test class doesn't work in second method
This is my RestUtil class
import org.springframework.boot.web.client.RestTemplateBuilder;
import org.springframework.http.HttpEntity;
import org.springframework.http.HttpMethod;
import org....
1
vote
0
answers
56
views
Testcontainers: DOCKER_HOST is not listening error when running Spring integration tests
I am trying to run Spring integration tests with Testcontainers, but I keep getting the following error:
WARN org.testcontainers.dockerclient.DockerClientProviderStrategy -- DOCKER_HOST unix:///var/...
0
votes
0
answers
19
views
Verify constructor call in dart testing
I have a class A that has a method b().
The method B creates the object C with some specific args and execute the d() method.
So A().b() calls C(specific args).d().
The signature of B and D methods ...
1
vote
0
answers
21
views
Does H2 database support configure condition of @Where clouse
I'm using MySql for development mode and h2 in memory database for integration testing. Below My Configuration:
src\test\resources\application.yaml
spring:
datasource:
primary:
url: jdbc:...
1
vote
1
answer
31
views
In Rails testing / rspec what is the difference between `request: true` and `type: request`?
I've been looking over tests and I've seen request: true and type: request used, seemingly interchangeably.
I was wondering what the difference between them are and if there is any, and which the ...
3
votes
1
answer
44
views
Is there a practical workflow for developing Gnome Shell extensions on Wayland?
I'm trying to work on a Gnome Shell extension project (to see if it can be ported to Gnome 45), on a Wayland device. The workflow I have so far is:
Open GEdit and edit the code.
Build the extension ...
1
vote
0
answers
39
views
why my integration test trying to connect 172.19.0.2:6565 address and why connection refused
Hello i'm trying to build an integration test for my project and it's been difficult. I'm trying to do it with using docker. Here is my docker-compose.yml and Dockerfile.
version: '2.3'
services:
...
0
votes
0
answers
15
views
Integration testing with keycloak
Keycloak is my identity provider, and I have an endpoint that is secured by Keycloak. I want to write an integration test to test that endpoint, but obviously, my identity provider blocks any ...
0
votes
0
answers
69
views
Playwright automation running in locally but it is failing in Jenkins Pipeline
I write a playwright test which is passing in local but when i try integration test in jenkins it is keep failing
[2023-10-30T12:52:12.327Z] Test timeout of 60000ms exceeded.
[2023-10-30T12:52:12....
0
votes
0
answers
38
views
Configuring TestContainers for Per-Test Database Containers in Integration Tests
I'm attempting to set up integration tests for my Campaign repository and I'm encountering an issue with the TestContainers NuGet package. My goal is to have a separate database container created for ...
0
votes
2
answers
38
views
Startup class: how to add scoped service and middleware
I am trying to add correlationid to request, and track them everywhere.
I have the following lines in the startup class:
services.AddScoped<ICorrelationIdGenerator, CorrelationIdGenerator>();
// ...
1
vote
1
answer
36
views
How to perform Automation testing for two-three days business process [closed]
I'm relatively new to Automation testing. I've seen notes on automation testing for Static web pages and dynamic ones, even data driven. But in my project, we've got a web page where we load trades ...
0
votes
2
answers
62
views
Detecting when Laravel Dusk is running
Often in Laravel I need to detect the environment to avoid triggering certain code while running tests, like logging or sending an email:
if (!app()->environment("testing")) {
Mail::...
0
votes
1
answer
43
views
How to do integration tests for code that uses ClickHouse dictionaries?
There is backend code in .Net Core. Integration tests need to be written.
But, this code performs queries to the ClickHouse dictionary. A dictionary is created from other dictionaries, and other ...
0
votes
1
answer
41
views
GreenMail server works in single integration test class but not when all integration classes are started
I have several integration test classes, when I'm executing a single one, the greenmail server will be started and works as expected. But when I'm starting all integrations tests it fails, and it's ...
0
votes
1
answer
65
views
Kafka Consumer with TestContainers in Integration Test
In my project, I have Test containers for the Kafka Integration Test. I can produce messages and consume them. For consuming I have a Kafka consumer that follows a CQRS (Command Query Responsibility ...