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

Wiremock withBodyFile OutOfMemoryError for large files

In the following stub request, I use withBodyFile which loads large files (>300MB) from specific locations on local disk using streams: public void mockGetUrlContent(String url) { stubFor(get(urlEqualTo(url)) .willReturn(ok() …
DeJaVo
  • 3,091
  • 2
  • 17
  • 32
3
votes
1 answer

gradle integrationTest and testFixtures

I'm using gradle 7.4.2 so I decided to split the tests to proper unit-test and integration-tests. I moved one class from src/test/java/com/example to src/integrationTest/java/com/example, and started to add the missing dependencies. The problem is…
Gavriel
  • 18,880
  • 12
  • 68
  • 105
3
votes
0 answers

Is there a way to load a specific view in a Flutter app integration test?

I'm working on creating some integration tests for a complex app with many views. I have already managed to write some tests for user authentication - this was fairly simple because it required some initial setup (locators, Firebase initialization…
3
votes
2 answers

Accessing servletContext from a service within an integration test

I am trying to access the servletContext (application context) from a service into an integration test. Here is how I try to allow it into my integration test: import org.codehaus.groovy.grails.web.context.ServletContextHolder as SCH class…
Alexandre Bourlier
  • 3,972
  • 4
  • 44
  • 76
3
votes
1 answer

Is there any general integration test framework for console java application?

For example, I am going to write an application. Its core requirement is simple. It keeps scanning a folder. If new files arrive, it will transfer it to a FTP site. It will be written in JAVA as a console application. I am wondering if there is…
Smartmarkey
  • 1,979
  • 5
  • 22
  • 25
3
votes
0 answers

How exactly does jest's code coverage work during integration tests?

While doing integration tests on my express server, the code coverage feature of jest seems to only be working when the server is running in the same process as the test. For example:- importing express app and passing it to the supertest function,…
3
votes
2 answers

How can I reuse containers during integration tests with quarkus?

I currently have a few integration tests that are running fine, however I'm using the annotation @QuarkusTestResource to launch containers via testcontainers before quarkus is launched and I adapt my properties to the random test container port by…
Tapaka
  • 367
  • 4
  • 17
3
votes
1 answer

MSW request handler not working in playwright test

I have a Nextjs project with tests in playwright and for mocking API, I am using Mock Service Worker (MSW) library. I have installed and set up everything and also when I run the MSW worker in the _app.tsx file, it mocks the API correctly. Here is…
Raj
  • 1,928
  • 3
  • 29
  • 53
3
votes
1 answer

Flutter test: The value of a foundation debug variable was changed by the test

When I run my integration test, the test failed with this error: [+1358 ms] flutter: ══╡ EXCEPTION CAUGHT BY FLUTTER TEST FRAMEWORK ╞════════════════════════════════════════════════════ [ ] flutter: The following assertion was thrown running…
dante
  • 984
  • 3
  • 10
  • 24
3
votes
1 answer

I get an error when I try to test if there is a widget after the screen transition in the integration test

What I want to do and what I can't do I am trying to verify that there is a Textwidget after the screen transition in the integration test, but I get an error that it has not been discovered. Error statement (The following exception is now…
3
votes
1 answer

Zend Framework: How to do unit testing in case of remote API calls

I'm writing some integration tests for a big Zend Framework app of mine, using Zend_Test. But I'm stuck knowing how to write tests for a few of my controllers that utilize a custom-built web API. I am aware of…
curtisdf
  • 4,130
  • 4
  • 33
  • 42
3
votes
0 answers

What's the best way to do end to end testing that can be run via CI pipeline when the frontend and backend are in separate repos?

I currently have an Angular frontend and a dockerized Django backend. Both are deployed separately. Angular via Netlify and Django via Heroku. Both are triggered to deploy any publishes to the master branch. I've written end to end tests using…
Ragav Y
  • 1,662
  • 1
  • 18
  • 32
3
votes
0 answers

Gradle test fails with OutOfMemory when run together BUT passes when run individually

I have tried everything to try at least understand why this is happening even if I can't solve it. I have the following integration test which is part of a larger test suite of 893…
ng.newbie
  • 2,807
  • 3
  • 23
  • 57
3
votes
2 answers

Python multiprocessing: AttributeError: Can't pickle local object

I wrote a ChatOps bot for the collaboration tool Mattermost using this framework. Now I'm trying to write and run integration tests and I used their examples. By cloning the git repository you can run the tests by yourself. Their docker-compose.yml…
3
votes
1 answer

How can you right-click, save target as using WatiN?

I've seen various solutions to saving a file using WatiN. My current issue is similar to the others described, I need to save a PDF file, but there's a registry key that tells IE to automatically open the PDF in a new window, rather than save…
Ian P
  • 12,840
  • 6
  • 48
  • 70