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

EmbeddedKafkaCluster missing?

This blog entry https://www.confluent.io/blog/stream-processing-part-2-testing-your-streaming-application/ refers to the class EmbeddedKafkaCluster, which is supposed to be in the library kafka-streams-test-utils. However, this class is missing in…
3
votes
6 answers

Can I use PostgreSQL in Maven build?

I am trying to create an integration test, which requires a running PostgreSQL server. Is it possible to start the server in maven build and stop it when tests are completed (in a separate process, I think)? Assuming the PostgreSQL server is not…
yegor256
  • 102,010
  • 123
  • 446
  • 597
3
votes
3 answers

Functional Testing For Java

I want to write some functional tests for a java servlet and I want to make sure it works with all the filters and other random java web stuff that might interfere with the servlet. Is there a nice way to do this in java? I noticed the play…
benmmurphy
  • 2,503
  • 1
  • 20
  • 30
3
votes
1 answer

How to use Embedded MongoDB in Spring Boot 2.2 integration tests?

I want to use Embedded MongoDB instance instead of connecting to my localhost MongoDB. In integration tests I use only mockMvc. Annotations on my test class @Profile("it") @SpringBootTest //@DataMongoTest - tried to do with that and can't run app…
Szymon Żak
  • 491
  • 1
  • 3
  • 17
3
votes
2 answers

How can I write a JUnit test for a JNI call that crashes?

I'm working on fixing a JNI call that's crashing at the moment. Striving to be a good TDD practitioner, I've created a JUnit test to replicate the problem, which it does admirably. However, by crashing, the JNI call never returns. Is it possible…
Darcy Casselman
  • 2,574
  • 3
  • 24
  • 26
3
votes
1 answer

How to Avoid Cypress Flakiness Using Ng-Select Elements

We are using Cypress E2E testing framework on an Ionic 5 / Angular 9 project. Our tests mostly work as expected when running in the Cypress Test Runner GUI. However, when running in CLI-mode we get a lot of flakiness (i.e. not always, but certainly…
3
votes
1 answer

PHPUnit Zend_Test_PHPUnit_DatabaseTestCase fails to truncate table

I am setting up some db integration testing using Zend_Test_PHPUnit_DatabaseTestCase. My tests run but the db tables do not get truncated so an add test fails assertion - as the xml I provide as a dataset does not match the db can anybody suggest…
Shaun Hare
  • 3,771
  • 2
  • 24
  • 36
3
votes
1 answer

How to end to end/integration test a Go app that use a reverse proxy to manage subdomain?

I have a Go app that use Gin gonic and a Nginx reverse proxy that send trafic to another app on domain.com and send all the *.domain.com subdomains traffic directly to my go app. My Go app then has a middleware that will read the hostname that…
estabanf
  • 33
  • 4
3
votes
1 answer

How to test with Response.OnCompleted delegate in a finally block

I have the following netcore 2.2 controller method that I am trying to write an xUnit integration test for: private readonly ISoapSvc _soapSvc; private readonly IRepositorySvc _repositorySvc; public SnowConnectorController(ISoapSvc…
ogg130
  • 353
  • 1
  • 3
  • 19
3
votes
0 answers

WebRTC Safari integration test: How to mock getUserMedia video?

I would like to implement an integration test mocking a WebCam video stream using the Safari browser. Following the WebRTC testing documentation Chrome provides the --use-file-for-fake-video-capture= flag to mock the video stream. I have…
DrDirk
  • 1,937
  • 3
  • 25
  • 36
3
votes
1 answer

Integrate flutter ui test with docker: drive test on headless chrome

I need to integrate flutter test drive into GitlabCI. I thing that easiest way to create a docker container (I use GitlabCI but you have the same problem if you use pure Docker or CircleCI or TravisCI or some pipeline into AWS or many other way)…
3
votes
0 answers

How to setup continuous integration test for push notifications?

I am developing a service that sends push notifications via APNS and Firebase to an app I have written. I have integration tests that run continuously (plus monitoring) to alert me if the service has a problem. Ideally these tests requests to my…
3
votes
1 answer

How to seed test data using WebApplicationFactory?

I'm working on integration tests for .NET Core 3.1 Web API. I followed this article Painless Integration Testing with ASP.NET Core Web API. This is my CustomWebApplicationFactory: public class CustomWebApplicationFactory :…
Ish Thomas
  • 2,270
  • 2
  • 27
  • 57
3
votes
1 answer

Jest has detected the following 2 open handles potentially keeping Jest from exiting:

I am new to testing. I am using JEST to test my nodejs API's. When i am writing all the tests in one file its running properly without any error but when i am separating it its giving me port is already under use As for each file its running…
Cycl0n3
  • 611
  • 1
  • 6
  • 25
3
votes
2 answers

@DirtiesContext does not work with @Nested tests

After hours of research on Google I still can't figure out how to use @DirtiesContext with @Nestedclasses. Assuming the following Integration Test class : @ExtendWith(SpringExtension.class) @SpringBootTest @AutoConfigureMockMvc(addFilters =…
Pierre Jones
  • 620
  • 1
  • 11
  • 24