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

Mock service for xUnit

I have an application that currently works as designed, but I am trying to setup integration testing with xUnit before I expand upon it. At the moment the test will only use the original service when performing the test and I don't see why. This the…
Jeff
  • 1,727
  • 2
  • 17
  • 29
3
votes
3 answers

How can I run Integration Test to Kafka with Testcontainer using Junit 5

I'm trying to write an integration test for my Kafka consumer. I'm using JUnit 5, so I can׳t initialize it using @Rule, and the examples I saw with @Container initialization it is not working as well. I tried to change my Junit version to Junit 4…
reut
  • 241
  • 1
  • 3
  • 11
3
votes
1 answer

How to do Integration Tests with Mediatr on .net framework 4.7?

I'm using the Mediatr library to register and call my RequestHandlers. Everything went fine until I started reading more about integrated tests. PLEASE READ AFTER EDIT I can't call my class which inherits from the RequesHandler. My class looks like…
3
votes
1 answer

Hoverfly: Custom JSON request body matcher matching specific parts

Is there a way in Hoverly-Java APIs to custom match a JSON request body? For instance, say I have this request body that my service will use { "name": "Tom", "age": 24, "timestamp": } I want to be able to skip the…
Higher-Kinded Type
  • 1,964
  • 5
  • 27
  • 44
3
votes
3 answers

Java / JUnit and Selenium RC - is there a wrapper library?

I use JUnit and Selenium (1) to write automated integration tests. I've used it on a couple of projects so far. I find the Selenium API too low-level, and end up writing generic 'wrapper' code, to deal with things like: checking the fields of a…
artbristol
  • 32,010
  • 5
  • 70
  • 103
3
votes
1 answer

How to mock BLoC in Integration Test

I have a Flutter app that uses the bloc and flutter_bloc packages. I am trying to write an integration test using flutter_driver and mockito. How do I mock the BlocProvider and its children to always emit a single mocked state? The original…
Thomas
  • 333
  • 2
  • 8
3
votes
1 answer

Only run integration test when deploying from staging to production

I have 3 main branches in my gitlab project: dev , staging, production. I'm using postman newman for integration testing like this in .gitlab-ci.yml: postman_tests: stage: postman_tests image: name: postman/newman_alpine33 …
3
votes
1 answer

Django Tests Against a Read Only Database

I'm looking for some best-practice advice on how to go about writing tests in this specific scenario I have. I've got a Django API that runs against a postgres database (which I have control over on my server) as well as a remote read-only MySQL…
NotSimon
  • 1,795
  • 1
  • 21
  • 31
3
votes
2 answers

Launch and call methods on WPF app from unit test project

I would like to launch a WPF app and call methods on the ViewModel to control the app for the purpose of integration testing. Something like: [Test] public void Test1() var application = new MyApp(); …
Ben Power
  • 1,786
  • 5
  • 27
  • 35
3
votes
1 answer

Reset RabbitMQ-node for integration testing

I am using RabbitMQ in a project and am running my integration tests against it. Since the tests need to be independent from each other, I would like to reset the RabbitMQ instance before each test and currently solve this by restarting the…
Lars
  • 5,757
  • 4
  • 25
  • 55
3
votes
1 answer

How to Integrate Testing a Controller, which inside that controller, methods gets token from another site

I'm setting up an API which it gets authenticated to another server through JWT. one of Controller's methods I want to test, gets the token from an external site. how can I test this method? I made a Test server and tried to mimic the website action…
3
votes
2 answers

Integration Testing - How to hit endpoints using Microsoft.Owin.Testing.TestServer?

I have setup a basic Web API project to test writing integration tests, with the below setup Startup: using Microsoft.Owin; using Owin; [assembly: OwinStartup(typeof(WebApiTest.Startup))] namespace WebApiTest { public class Startup { …
Delfino
  • 967
  • 4
  • 21
  • 46
3
votes
2 answers

Overriding spring @Configuration in an integration test

I have a spring boot configuration class like this: @Configuration public class ClockConfiguration { @Bean public Clock getSystemClock() { return Clock.systemUTC(); } } and I have some integration tests like…
user952342
  • 2,602
  • 7
  • 34
  • 54
3
votes
1 answer

Why does Teamcity send a keyboard interrupt to kill my build?

I have a build running in TeamCity, with only one build step: launching a BAT file. TeamCity sometimes kills my build with a (double) keyboard interrupt, and I have no idea why. The output at the end of the build is like this: Running build…
3
votes
1 answer

assert_redirected_to in Rails Testing

I am trying to run some tests on my Customers controller. When I manually test the controller, all is working fine, however when I do written Integration tests on it, I get an error. Here is my Test code: context "non-empty Customer model" do …
J86
  • 14,345
  • 47
  • 130
  • 228
1 2 3
99
100