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

Flutter driver - enter text into field that is off screen

I am trying to write an integration test for a screen with multiple TextFormFields. For each test, I am simply: Tapping the text field Entering some text Checking if the text exists in the text field. Using Flutter driver, the following works well…
user2181948
  • 1,646
  • 3
  • 33
  • 60
3
votes
0 answers

C#: How to manage Charles Proxy to trace calls from Visual Studio or Rider?

I use Charles Proxy on Mac OS, to debug mobile app: it works well on real devices (iOS/Android), on iOS simulator, but it's a little tricky on Android simulators (several IPs are used for the same URL). However, I try to debug APIs Integrations…
3
votes
1 answer

How to make a method do nothing in junit integration test?

I have a mail service and controller which I want to test together but I don't want to send an email when the test is run. I tried using @Autowire on the mail sender in the test class to make it's method doNothing but it failed since it's not a…
InsertKnowledge
  • 1,012
  • 1
  • 11
  • 17
3
votes
0 answers

Is there a way to create an in-memory mongo server in Java?

I want to write an integration test for my service and am trying to set up an in-memory mongodb instance to write and read from within the integration tests. I have found the exact same question for JS, found here, where the answer suggests to use…
NicholasFolk
  • 1,021
  • 1
  • 8
  • 14
3
votes
1 answer

sbt conditional if else style configuration

I want to be able to switch between parallel and serial execution of scala tests using command line. Working example with "test.par" system property: val parallelTestOpt = Option(System.getProperty("test.par")) testOptions in IntegrationTest +=…
Tomas Bartalos
  • 1,256
  • 12
  • 29
3
votes
0 answers

Cypress making a duplicate of DOM element

The Cypress for some reason produces a duplicate of an element, which makes it hard to make certain assertions. We're working in the WordPress environment with our plugin and the flow of the test is: Creating a page with our plugin Adding an…
nikitahl
  • 406
  • 2
  • 7
  • 16
3
votes
2 answers

Gradle : Multiple configurations for Test tasks

I have got two types of tests in my app as follows: Unit tests (large number of tests and quick to execute) Integration tests (small number of tests but each suite takes considerable time) My project uses gradle and I want both sets of tests to…
Darshan Mehta
  • 30,102
  • 11
  • 68
  • 102
3
votes
1 answer

How to debug maven surefire tests running in a docker container?

I have a maven project that contains integration tests and I use the surefire plugin. I can run the tests with mvn clean package and that works fine. I can also remote debug the integration tests using intellij. To do so I execute mvn clean…
3
votes
1 answer

How to use (Microsoft.AspNetCore.TestHost)TestServer with Client Certificate

Enabling certificate authentication in .net core api causes the TestServer to always return 403-Forbidden in integration tests (despite certificate used in request). I tried altering the CertificateValidationService in TestClientProvider but it…
3
votes
0 answers

Integration testing of graphQL query and a page component in gatsbyJS

I would like to have an integration test for my page query + page component: import React from "react"; import { graphql } from "gatsby"; const NotFound = ({ data }) => { const { title, text } = data.allFile.edges[0].node.childDataJson; return…
Aiwatko
  • 385
  • 2
  • 6
  • 17
3
votes
1 answer

Split one big test to couple files in cypress

Is it possible to split one big cypress file with one big integration test suite and move source parts to couple files. In this big suite I have several test-cases. I want to move every test case to another file but it is required to create one big…
MarcinW
  • 51
  • 6
3
votes
3 answers

Testing Library : How to render the same component multiple times without coupling

I'm using React Testing Library with Jest to test my React/Redux App. I want to test the same component in multiple tests without the component's state being shared across each instance. Something like this... import React from "react"; import…
emersonthis
  • 32,822
  • 59
  • 210
  • 375
3
votes
1 answer

Integration testing an application with Scheduler and Rest calls Spring Boot

I have an application with a Cron job that makes a REST call every couple of minutes and stores the data in hazelcast instance. It also exposes REST endpoints to provide the processed data from hazelcast instance to client. I want to write…
3
votes
0 answers

How to Integrate Test @RestControllerAdvice which Has Dependencies?

I have a simple @RestController in Spring Boot 2.1 which has a @RestControllerAdvice assigned to it to handle exceptions, e.g. @RestController @RequestMapping("/path") public class MyController { @Value("${some.property}") private boolean…
3
votes
3 answers

How to close Express server inside Jest afterAll hook

I am trying to write integration tests for my Express server using Jest. Since Jest runs tests in parallel (and I would like to avoid running tests in sequence using --runInBand), I am using the get-port library to find a random available port so…
J. Munson
  • 2,275
  • 2
  • 17
  • 22