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

Gradle run unit and integration tests in parallel for same project on same machine

I am trying to reduce the time taken to run tests using gradle. Since there are multiple projects, one of the ways that I can think of doing that is to split tests into Unit and Integration tests. For each project, I have created two different…
3
votes
3 answers

How can I create a detached clone of an EF codefirst class for testing purposes?

I want to create an integration test which grabs an EF entity from the DB, clones it to a detached object, modifies it and then saves it back and compares it again to the original. However, I was using AutoMapper to create the clone of the class,…
jaffa
  • 26,770
  • 50
  • 178
  • 289
3
votes
1 answer

testcontainers-go: p.client.DaemonHost undefined

I am trying to add TestContainers-Go to my project. I use glide and TestNginxLatestReturn example from Github readme file. In glide I put - package: github.com/testcontainers/testcontainers-go version: v0.0.3 but at runtime I get this error in…
Nikolay Kuznetsov
  • 9,467
  • 12
  • 55
  • 101
3
votes
1 answer

How to override application.properties in Spring Boot integration test?

I've set up integration tests with Gradle and want to use Spring's "property inheritance". But the application.properties from main gets completely replaced. Directory structure: src/ intTest/ kotlin/my/package/ SomethingTest.kt …
deamon
  • 89,107
  • 111
  • 320
  • 448
3
votes
2 answers

TestCafe: import tests from another file into the current fixture

I have a file tests.js that contains some test(...) definitions. I want to reuse these tests across multiple fixtures, preferably without making any modifications to the original code. So I wrote a main.js that defines a fixture and imports…
3
votes
1 answer

What strategy to use with xUnit for integration tests when knowing they run in parallel?

I use dotnet core with xUnit for my unit tests and also for my integration tests. I have a base abstract class for all my tests following the Given-Then-When philosophy in this way: namespace ToolBelt.TestSupport { public abstract class…
diegosasw
  • 13,734
  • 16
  • 95
  • 159
3
votes
1 answer

MockServer and OkHttp: body type missmatch (json vs string)

Hi Stack Overflow community! I'm trying to mock a microservice in some java integration tests. To do so, I'm using MockServer version 5.5.1. To do the rest-requests I'm using OkHttp version 3.13.1 The code in java: final SomeDTO requestObject = new…
Thomas Stubbe
  • 1,945
  • 5
  • 26
  • 40
3
votes
0 answers

Open Workspace during integration testing for vscode extension

I have a use case where I need to have a workspace open in the host environment for vscode testing. I want to know a function to open a default workspace and another function which I can use with await so that the testing function waits till a…
3
votes
3 answers

Should repositories in Spring Boot applications be tested directly?

Not sure if this will be considered a "legitimate question" or "purely opinion based", but is there a "best practice" with regards to directly testing a repository in a Spring Boot application? Or, should any integration testing simply target the…
SoCal
  • 801
  • 1
  • 10
  • 23
3
votes
1 answer

How to test Rest Controller with static util invocation using JUnit and Mockito

I have Rest Controller with the method create(validation using util class + databaseService(databaseDao + caching)) @RestController @RequestMapping("files") public class FilesController { private IDbFilesDao dbFilesService; private…
Donatello
  • 353
  • 6
  • 19
3
votes
1 answer

enable screenshots feature of failed tests in testfx

I'm currently building tests for a JavaFX app with TestFX with it's following versions : testfx-core 4.0.1-alpha testfx-junit 4.0.1-alpha There is not much information about how to enable screeshot taking feature for failed tests and in case it is…
Hassam Abdelillah
  • 2,246
  • 3
  • 16
  • 37
3
votes
2 answers

flutter integration test with FlutterDrive how to do a long press

I am trying to do a long-press with flutter drive integration test. using await driver.tap(longPressButtonFinder); does not help, is there something better than that?
Thomas Frick
  • 189
  • 1
  • 2
  • 12
3
votes
0 answers

How to write an Integration test for API with Message Queue?

Consider that I have an API end-point http://localhost/add-page-view. When we send a post request with data {url: "google.com"} it will be sent to a message queue, then later will be inserted to the DB by the queue subscriber I need to write a test…
Gijo Varghese
  • 11,264
  • 22
  • 73
  • 122
3
votes
1 answer

Testing nested components in React

I have some problems with testing events for nested components. This is how my component tree look like: - ModalComponent (Stateful with value for Input and update handler) - - ModalType (stateless, passes value and update down to input) - - - Input…
Pommesloch
  • 492
  • 5
  • 17
3
votes
1 answer

Grails 3 integrationTest "No Session found for current thread" when GEB tests included

I am using Grails 3.3.1 and I am getting a "No Session found for current thread" error when running all of my integration tests using the Gradle "integrationTest" command. I have several service integrations tests which run fine on their own.…
Tabbykat
  • 41
  • 2
1 2 3
99
100