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
0 answers

Code stuck when querying CosmosDB in java integration test

I'm writing integration test for an API. In DAO class, when I try to fetch data from Cosmos DB using AsyncDocumentClient instance queryDocuments method, program has stuck indefinitely. This is how my function call looks like: Iterator<…
3
votes
1 answer

RSpec: Integration test for homepage

I am trying to learn to test drive the code using RSpec. For this I am creating an inventory management system. Let the product model has three attributes: sku_code name price And the warehouse model have four…
Rajkaran Mishra
  • 4,532
  • 2
  • 36
  • 61
3
votes
0 answers

Serilog console outputs doesn't show up during Integration Testing with WebApplicationFactory

The log entry shows up fine in the test console when I call Log.Information("Test") from my integration test file. If I call the same static function from within the controller being tested with a WebApplicationFactory, nothing will show up in the…
3
votes
1 answer

How to enable negative testing for the Braintree PayPal checkout?

We are integrating with PayPal checkout using the Braintree integration - as such we have sandbox accounts with Braintree and PayPal and have also enabled negative testing in the PayPal developer account linked to our PayPal merchant account. All…
3
votes
0 answers

How to do integration tests for @RabbitListener / @RabbitHandler?

I intend to write integration tests to check whether my listener/handlers work properly. I am using Spring Boot 2.1.9.RELEASE with the according amqp dependency. I have written a custom sender (publisher) and listener (receiver). When conducting…
du-it
  • 2,561
  • 8
  • 42
  • 80
3
votes
1 answer

Spring Boot @RestClientTest how test with real server (not mock)

I need to create an integration test against a REST API. My service is using Resttemplate as HTTP client. The client code is generated from swagger file. Running the test yields an error java.lang.AssertionError: No further requests expected: HTTP…
dermoritz
  • 12,519
  • 25
  • 97
  • 185
3
votes
1 answer

How to override services that mocked using IWebHostBuilder.ConfigureTestServices in some tests

I have a custom WebApplicationFactory for that i mocked some services to use for integration testing, like DatabaseSeeder in order to make the tests run faster. Now i want to test the database seeding so I want to override the configuration…
vroyibg
  • 95
  • 1
  • 7
3
votes
1 answer

Run Integration test and Unit test using Maven in Scala project

In my Scala project I have two packages such as "src/test/scala/integration" and "src/test/scala/unit". All the unit test and integration test are in their respective packages. I want to execute them (either Unit tests or Integration tests) as per…
3
votes
1 answer

Integration Test with TypeORM

I'm doing an integration test by making requests to my dev server by Supertest. But I have trouble with how to put data into the database. For example, before run GET test, I want to insert data to the database. But I even can't get a connection…
Tran B. V. Son
  • 759
  • 2
  • 12
  • 31
3
votes
0 answers

Using Amazon DynamoDB with jest - how can I wait for the db to populate before the tests run?

I have a nodejs express app using AWS Lambda that writes to, and searches a DynamoDB. I am trying to write integration tests using Jest and @shelf/jest-dynamodb, but having problems clearing and populating the db before each test file runs - it is…
3
votes
2 answers

JUnit change class or method behaviour in integration tests

I have a java application (no Spring inside) that I want to test with an integration test. My main use case is the main function that with a specified input do some things on the database and send some request to two different services, one SOAP and…
matfur92
  • 330
  • 2
  • 12
3
votes
1 answer

Is it possible to host a windows console in a headless unit testing runner like resharper?

I have a software library which targets console applications. I would like to run a slim set of integration tests that use the windows Console in a headless runner that would ideally be run on our build server and in the resharper test runner. To…
3
votes
1 answer

How to start docker images for my integration tests in bazel?

I was searching for a build system for my Go projects. In the Java world, things look much easier. You have maven and it's so easy to make test/integration test and package the project. I'm trying to find the solution for starting Redis in docker…
Max Grigoriev
  • 1,021
  • 2
  • 13
  • 29
3
votes
3 answers

Mocking Hashicorp vault in Go

Is there an easy way to mock Hashicorp vault in go tests ? I created a service in Go that accesses Vault, and would like to create proper testing for it. I didn't find a simple solution I like (like moto in python). I also tried using a vault in dev…
Gil Zellner
  • 889
  • 1
  • 9
  • 20
3
votes
1 answer

Why is runloop called when testing

I usually see RunLoop.current.run(until: Date()) called in integration tests. For example in this article and in this open source project. The explanation given in the article is The RunLoop.current.run(until: Date()) statement makes sure the run…
3366784
  • 2,423
  • 1
  • 14
  • 27