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

Unit Testing with Firebase

I am building an android app which uses Firebase as the back-end and an model, view, presenter architecture. However, the fact that Firebase is a cloud service complicates the automated testing in my android app. So far I have built most of the…
31
votes
4 answers

How to run a single specific test case when using protractor

I am using protractor for angular js testing in my app and have around 19 test cases at the moment, of which one of them is failing describe('Login page', function() { beforeEach(function() { browser.ignoreSynchronization = true; ptor =…
Shyam Visamsetty
  • 444
  • 2
  • 6
  • 16
30
votes
1 answer

iPhone command line Unit Tests (and File I/O)

The short question is: How can I get iPhone (objective-c) file operations to work correctly from a command line Unit Test? The long question, with explanation: This will eventually become a script to perform automated building/testing for my iPhone…
Robotnik
  • 3,643
  • 3
  • 31
  • 49
30
votes
1 answer

How to return a value when using execute_script in capybara?

I have a really simple line in a test that calls execute script like this: puts page.execute_script("return somefunction();").to_i.inspect And in javascript I have a function like this: function somefunction(){ console.log("test"); return…
CafeHey
  • 5,699
  • 19
  • 82
  • 145
29
votes
12 answers

What are the pros and cons of automated Unit Tests vs automated Integration tests?

Recently we have been adding automated tests to our existing java applications. What we have The majority of these tests are integration tests, which may cover a stack of calls like:- HTTP post into a servlet The servlet validates the request and…
WW.
  • 23,793
  • 13
  • 94
  • 121
29
votes
2 answers

Is there a way to execute a teardown function after all tests have been run?

In Rust, is there any way to execute a teardown function after all tests have been run (i.e. at the end of cargo test) using the standard testing library? I'm not looking to run a teardown function after each test, as they've been discussed in these…
Ivan Gozali
  • 2,089
  • 1
  • 27
  • 25
29
votes
1 answer

TestServer returns 404 not found

I'm using aspnetcore 3.0 preview 7 for my web api project. Currently I'm implementing the integration tests. (To make the tests easier first, I commented out the Authorize attribute on the controllers.) The server responds "404 not found". I'm…
29
votes
1 answer

How do I unit test and integration test my SSIS packages?

This question mentions two libraries, both of which aren't maintained and one has broken links to the source and documentation. SSISUnit was last updated in 2008 and SSIStester has broken links in the documentation and hasn't been updated since…
mattrowsboats
  • 582
  • 1
  • 6
  • 14
29
votes
2 answers

Gradle: How to display androidTest results in the console?

As explained in other threads Gradle can be configured to log test results into the console: Gradle Android: How to Display test results without using --info Gradle: How to Display Test Results in the Console in Real Time? Output unit testing…
JJD
  • 50,076
  • 60
  • 203
  • 339
29
votes
6 answers

Running integration tests with Cobertura Maven plugin

I am having trouble getting the Cobertura plugin to run integration tests in Maven. The closest answer to this question I have found is http://jira.codehaus.org/browse/MCOBERTURA-86. However, the issue remains an open bug. I tried the…
Candy Chiu
  • 6,579
  • 9
  • 48
  • 69
29
votes
3 answers

How should I set up my integration tests to use a test database with Entity Framework?

I am writing integration tests for an application and have not been able to find any best practices on how to set up a test database for my integration suite. I am working on an ASP.NET MVC4 application using Entity Framework code-first. I can…
rouan
  • 5,339
  • 6
  • 22
  • 36
29
votes
2 answers

In-memory MongoDB for test?

I am writing some integration and system tests for my NodeJS application using a MongoDB database. The test framework I use is Mocha and Supertest. Is it possible to setup MongoDB as an in-memory database which I can use to only test which then…
Andreas Selenwall
  • 5,705
  • 11
  • 45
  • 58
28
votes
3 answers

Spring Boot TestContainers Mapped port can only be obtained after the container is started

I'm trying to add automated testing using the TestContainers library to my Spring Boot project Here is my test class to test my jpa repository: package com.ubm.mfi.repo; import com.ubm.mfi.domain.MasterFileIndexRow; import…
28
votes
2 answers

When to choose system test over integration test Rails 5.1?

With the release of Rails 5.1, they included system tests. Which means we can test our JavaScript too in Rails. I see Rails guide explains a sample test creating article in both ways: via system test and via integration test. Now the question is:…
28
votes
3 answers

AppSettings.json for Integration Test in ASP.NET Core

I am following this guide. I have a Startup in the API project that uses an appsettings.json configuration file. public class Startup { public Startup(IHostingEnvironment env) { var builder = new ConfigurationBuilder() …
Kevin Lee
  • 1,104
  • 3
  • 13
  • 33