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.

Integration testing is 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.

In an integration test, all input modules are modules that have already been unit tested. These modules are grouped in larger aggregates and integration tests are applied to those aggregates. After a successful integration test, the integrated system is ready for system testing.

6972 questions
3
votes
1 answer

How to test Material-UI Popover close implementation

I would like to make sure that my implementation of a Popover element combined with a trigger button works as expected. I was unable to have a working test for asserting that the Popover gets closed after the user presses esc. I was able to make…
3
votes
0 answers

Run multiple Integration Tests that use Wiremock

In my Specflow project i have a .features file with multiple test scenarios. the thing those tests have in common is that they all use a single Wiremock Server. Now when I run the tests they always fail except for one. This problem also occurs when…
Amin
  • 31
  • 5
3
votes
1 answer

Integration tests give compilation error CS0051

I'm using ASP.NET 6 Core and writing a basic integration test for a controller that uses a mocked DBContext. Trying to base it on the Microsoft docs. But I can't build because I'm getting CS0051 Inconsistent accessibility: parameter type…
r .r
  • 383
  • 2
  • 9
3
votes
2 answers

TypeError: Cannot read properties of undefined (reading 'and')

Please help! I get the type error up above when trying to run a shallow integration test. I have severally looked through my code to check if I have something amiss, but everything seems to be in place. I'm trying to get this test to…
3
votes
1 answer

Options or alternatives to Testcontainers for Spring Boot integration testing in Kubernetes?

I need to setup integration tests in a Spring Boot project using Postgres, Redis and Elasticsearch (at some point later also Kafka will be added). So far I've found two options: H2 Database and Embedded Redis. This could work but we are using some…
Alex
  • 1,336
  • 10
  • 19
3
votes
0 answers

Android: Instrumented test for location updates receives no location updates

After I updated my phone to Android 12, my app (TargetSDKVersion 29) stopped to get location updates. So I have to update the app to API 31. For this I want to write some instrumented tests for the location updates. I started with the simple test…
Sqrt-1764
  • 321
  • 1
  • 17
3
votes
1 answer

Solution root could not be located using application root - WebApplicationFactory

I am trying to get some tests to properly run in CI using the WebApplicationFactory These tests pass locally when we run them through the IDE but they fail with System.InvalidOperationException: Solution root could not be located using application…
tapizquent
  • 668
  • 11
  • 24
3
votes
3 answers

Automatically terminate all integration tests if `Failed to load ApplicationContext` error occurs

We have some integration tests(written using spring framework) that are failing due to bean initialisation exception which eventually leads to Failed to load ApplicationContext . As per my understanding from spring testing docs , the loading of…
do5
  • 51
  • 5
3
votes
1 answer

SQL Test Container Fails to start on MacBook M1

According to Docker official website , Docker doesn't support SQL image for M1 processors ; however , it supports installing it by passing " --platform linux/x86_64 mysql" . Actually , SQL docker is pulled successfully using this command docker…
3
votes
3 answers

How to run @QuarkusIntegrationTest in a Gradle project?

I want to run a Quarkus integration test in order to verify OpenAPI yaml generated from the source code. According to the documentation, it should be possible to do it using the @QuarkusIntegrationTest annotation. However the it is not explained how…
Sasha Shpota
  • 9,436
  • 14
  • 75
  • 148
3
votes
0 answers

Zephyr Scale integration with Cypress

we need to integrate Cypress with Zephyr Scale, to execute test cases and put pass/fail resolution. googled this question we found several solutions, but they are not…
Max Volobuev
  • 79
  • 2
  • 11
3
votes
1 answer

How to allow web requests when using VCR / WebMock?

I'm currently using RSpec2, Cucumber and VCR (via WebMock), and everything's working great. With VCR normally all requests are recorded and then replayed against the recorded cassettes. Now I want to allow real web requests in some scenarios: In…
Cory Schires
  • 2,146
  • 2
  • 14
  • 26
3
votes
1 answer

How do we initialize schema in Testcontainers R2DBC?

Currently, I want to create an integration test for my system. I'm using testcontainers to spawn my temporary database instance, and use R2DBC Database to make my system reactive. The problem is I don't know how to create a schema in R2DBC…
3
votes
2 answers

JsonConverter not working in integration tests

I've enabled my API to serialize/deserialize enum using string values. To do that I've added JsonStringEnumConverter to the list of supported JsonConverters in my API's Startup class: .AddJsonOptions(opts => { var enumConverter = new…
RiskX
  • 561
  • 6
  • 20
3
votes
2 answers

WireMock.Net How to response sometimes an error and others OK

I'm working with WireMock.Net, and I want to configure Wiremock with the same URI, it sometimes returns OK(200) and sometimes Error Response(500). The examples I've seen is always returning the same status code, for…