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

Sql Linux docker container throws error when trying to deploy dapac: The path specified by File Ggroup FG.mdf file is not in a valid directory

I am trying to deploy a .dacpac which was generated from a SQL connection string into a SQL server 2017 ubuntu docker container for integration testing. I am using the DacFx NuGet package from Microsoft to generate the .dacpac. I tried to find…
David P
  • 71
  • 1
  • 6
3
votes
0 answers

Add integration tests for API gateway endpoints

I have implemented an API gateway in .NET Core and I want to write functional tests to verify the behavior of the endpoints in the API gateway. I am using TestServer to test integration events between microservices, but I am not sure how to use it…
3
votes
1 answer

SpringBoot+Liquibase+TestContainer db - not able to populate db during integration test

I am trying to use TestContainers for my integration tests. What I am trying to do is use sql script to populate with some data, and then also add new data using tests. Below is the test setup: Integration test where I am trying to get the data…
3
votes
0 answers

Is there a way to test toast messages in Flutter?

Is there a way to get the test driver to see the toast messages on the screen in an integration test in flutter? I used find.byText and added a delay to the test but it didn't work. Any work around this?
MDias
  • 41
  • 5
3
votes
1 answer

Integration test for API that has @Secured

I have a spring REST API that is secured by spring security and Keycloak, and I am using keycloak testcontainers for the integration test. I can add a user to keycloak and get a token to use while testing most of the APIs. The question is, If I…
3
votes
1 answer

Cypress multi reporters: using mochawesome with autoset-status-cypress-testrail-reporter

I need to use two reporters with my Cypress tests: mochawesome to generate html reports, and autoset-status-cypress-testrail-reporter to publish test results to Testrail. The main tool I could find that would enable me to use multiple reporters is…
3
votes
1 answer

How can I write unit tests that exercise CockroachDB enterprise-only features when I don't have a license?

If I'm paying for a Cockroach Cloud cluster (managed CockroachDB), I can run tests for my application without spending money by running them against a temporary cockroachdb instance I start up myself. But if my test requires an enterprise feature…
histocrat
  • 2,291
  • 12
  • 21
3
votes
1 answer

Flutter integration test, how to ensure user is signed out? (flushed state)

I'm writing my first Flutter integrations tests, and noticed that when the app starts up, the user is already signed in and lands on the page after sign in. I don't know why this happens, maybe because the app has been running previously on the same…
Majoren
  • 983
  • 5
  • 16
  • 36
3
votes
1 answer

Aerospike Testcontainers: 2 namespaces

I'm using official Aerospike Docker image to run it with Testcontainers. I can specify a default namespace as the environment variable. Unfortunately, I cannot create 2 namespaces on container start. Is there any approach to achieve it?
3
votes
1 answer

How to write an integration test for a http server event loop?

Taking the base example for the final project on The Book: use std::net::TcpListener; mod server { fn run() { let listener = TcpListener::bind("127.0.0.1:7878").unwrap(); for stream in listener.incoming() { let…
Alex Vergara
  • 1,766
  • 1
  • 10
  • 29
3
votes
1 answer

The entry point exited without ever building an IHost

I try to run integration tests and get this error System.InvalidOperationException: The entry point exited without ever building an IHost. at Microsoft.Extensions.Hosting.HostFactoryResolver.HostingListener.CreateHost() at…
Eugene Sukh
  • 2,357
  • 4
  • 42
  • 86
3
votes
1 answer

PACT Testing: Unexpected Request body: 500

I have a request class which has this fields: private final String pk; private final String sk; private final List tags; private final ZoneId timeZone; private final String pattern; private final SomeEnum action; private final String…
Yamini
  • 67
  • 1
  • 6
3
votes
1 answer

Override Host configuration in Integration Testing using ASP NET Core 6 Minimal APIs model

Being able to customize the Host configuration in integration tests is useful to avoid calling services that shouldn't run at all during testing. This was easily achievable using the standard Startup model, overriding the CreateHostBuilder from the…
Mahmoud Ali
  • 1,289
  • 1
  • 16
  • 31
3
votes
1 answer

Controllers Not Mapping on WebApplicationFactory for TestClient .NET 6

So I'm upgrading a bunch of our APIs and migrating them to the new shiny top-level statement style of startup. These projects all also have integration tests that rely upon a WebApplicationFactory to create a TestClient for them. For the most-part,…
ScottishTapWater
  • 3,656
  • 4
  • 38
  • 81
3
votes
1 answer

Alter DbContext connection string for integration tests

When running integration tests, I would like to use a partially randomly generated connection string for the DbContext where the database part of the connection string has a format like AppName_{RandomGuid}. This would allow multiple integration…
Mark Lisoway
  • 619
  • 1
  • 6
  • 20