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

Using Correct Authentication Scheme In .NET Core API Integration Test

We are trying to support multiple authentication schemes. This is working in non-test code, but not working in our integration tests. In our integration tests, we are unable to use the correct authentication scheme for a given test. Some tests test…
3
votes
1 answer

jest + supertest: how to reset the mocked dependency

I am not able to reset jest mocks of a dependency after it's being used once by supertest. I appreciate any help or hint. The following is my api test with supertest: import request from 'supertest'; import router from '../index'; const app =…
Node.JS
  • 1,042
  • 6
  • 44
  • 114
3
votes
1 answer

Does order of annotations matter in SB application?

It seems to me that having annotations in different order breaks my build. Does annotations order matter? Answers from above say, in general, annotations order should not matter. In my case it is breaking. This is module…
Yan Khonski
  • 12,225
  • 15
  • 76
  • 114
3
votes
1 answer

How to Flush IAppCache Between Integration Tests

I'm running integration tests with xUnit in ASP.NET, and one of which ensures that querying the data multiple times results in only 1 query to the server. If I run this test alone, then it works. If I run all the tests, then the server gets queried…
Etienne Charland
  • 3,424
  • 5
  • 28
  • 58
3
votes
2 answers

On a testing phase, run method before spring context starts (run embedded service before spring context initializes)

I have a spring boot application (spring boot 2.2.6), and I'm trying to prepare an integration tests environment (embedded in the application); I have a method which initializes an embedded elasticsearch service; During a testing phase, how can I…
Mihai Cicu
  • 1,879
  • 1
  • 14
  • 19
3
votes
1 answer

Run unit tests on git push and integration tests on pull request

When building R packages, we use testthat to write tests. We have 2 files: a test file for the specific package (specific.R), and one that we use to make sure all packages continue to work together and the overall result is fine (overall.R). Both…
Amit Kohli
  • 2,860
  • 2
  • 24
  • 44
3
votes
2 answers

Separating integration tests in spring boot app

I am writing tests for SpringBoot application. I would like to separate integration tests from unit tests. Now my project structure looks something like this: ├── Demo │ ├── src │ │ ├── main | | | └──java │ │ ├── test | | | …
3
votes
1 answer

Cucumber: Stub, mock or record client calls (google maps)

I'm wondering if this is possible. I use the VCR gem (http://rubygems.org/gems/vcr) for recording API calls within my models for my unit tests. This works fine. For more higher level testing I'm using Cucumber. In my app I also test stuff with…
23tux
  • 14,104
  • 15
  • 88
  • 187
3
votes
1 answer

Cypress click() failed because this element is detached from the DOM in iteration

I try to test my Single Page Application with cypress. The first page has multiple buttons as anchor tags which direct you to the second site(Angular routing). On the second site i have a "back" button. So i want my test to click on a button, wait…
WastedFreeTime
  • 195
  • 2
  • 3
  • 16
3
votes
1 answer

Zombie.js unable to access dataset property of DOM elements

I have a page which contains a rich-text editor. I used CKEditor for this. You pass it a div element and it loads the editor into that element. Now I wanted to write integration tests for that page. I am using zombie.js with version 4.2.1 (old, I…
Laura L.
  • 401
  • 1
  • 4
  • 7
3
votes
1 answer

Flutter call http requests from a unit\widget test without mocking

I have an app that follows MVC+service architecture. The service layer makes the http requests for rest APIs. However the response of the http requests change intermittently which cause my models to change or else random crashes in my app. SO to…
Sisir
  • 4,584
  • 4
  • 26
  • 37
3
votes
1 answer

@SpringBootTest how to pre-populate embedded MongoDB?

Doing implementation of a microservice with a few endpoints based on Spring Boot and MongoDB and trying to write integration tests using @SpringBootTest annotation capabilities. At the moment, I am facing an issue that I need to pre-populate an…
user471011
  • 7,104
  • 17
  • 69
  • 97
3
votes
0 answers

Cucumber and SpringBootTest via Failsafe plugin

I'm having issues getting my cucumber tests to be invoked. I'm using SpringBootTest for these and invoking them via the maven failsafe plugin. I know for a fact that the features path is correct because 1. If I run the tests directly using…
xandermonkey
  • 4,054
  • 2
  • 31
  • 53
3
votes
4 answers

Testing nested components with Jest and snapshot returns null

I am trying to create SelectColumn.test.js similar to Summary.test.js https://gitlab.com/sosy-lab/software/benchexec/-/blob/SelectColumn.test/benchexec/tablegenerator/react-table/src/tests/SelectColumn.test.js But unfortunately not successful, I…
Martin
  • 83
  • 1
  • 5
3
votes
1 answer

How can I do integration testing in elasticsearch with spring-data-elasticsearch?

I am using spring-data-elasticsearch v3.2.4.RELEASE which is available via spring-boot-starter-data-elasticsearch v2.2.4.RELEASE. I want to do the integration tests for this but the available option which is…