Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [integration-tests]

Integration testing is the phase in software testing in which individual software modules are combined and tested as a group. No mocks or stubs are required; everything is tested as in production.

5
votes
3answers
308 views

How to run long (>10 hours running time) verification test for continuous integration of scientific software

This question continues on a previous question asked here about continuous integration for scientific software. Like the poster of that question, I am developing software for numerical simulations and ...
-1
votes
2answers
81 views

Should integration tests use database? [closed]

I know that integration tests test parts of project that interaction with each other somehow. And I need to test this interaction. And there is the question: 1)Should these tests use real database ...
0
votes
1answer
36 views

Best practice for integration test a web form

I have a web application in ruby on rails, that is mainly a big multi-step form that insert data into a db. I want to make integration test to verify all the inserted data is correctly saved. My idea ...
63
votes
6answers
10k views

How exactly should unit tests be written without mocking extensively?

As I understand, the point of unit tests is to test units of code in isolation. This means, that: They should not break by any unrelated code change elsewhere in the codebase. Only one unit test ...
0
votes
2answers
254 views

Unit Test a CRUD Controller MVC

I have looked through answers related to this but they don't seem to solve my problem. I am fairly new unit testing and testing as a whole. I just finished a small web application using ASP.NET Core ...
3
votes
4answers
253 views

Should outgoing messages from object under test be tested?

I was watching a recording of a conference by Sandi Metz on testing. One of the things that I struggled with was that she said not to test outputs of the object under test (her example was query ...
38
votes
3answers
5k views

How do integration tests criticize design?

I'm having a read at J.B. Rainsberger's blog post on integrated tests and wonder in which way an integration test is more harsh with our design? We write more integrated tests, which are bigger and ...
0
votes
2answers
99 views

How to tackle long process system tests?

My service has long running processes. For example - user can signup, but if email not verified after 7 days, we send a reminder email. I need my system test to cover this scenario as well. ...
2
votes
0answers
49 views

Designing a test system on server/message level for large legacy application

I am working on introducing tests to an old system. Because of the amound of technical debt, we have landed on component/interface testing. The system is a servies of servers which sends messages in ...
0
votes
1answer
88 views

How do I create an integration test that tests multiple microservices without mocking?

I understand the concept of mocking API responses and their uses in unit testing, but in functional/integration testing, I actually don't want to mock because that defeats the purpose. For example, ...
0
votes
1answer
103 views

If I am mocking API responses in my unit/integration tests, how do I guarantee that the contract between Service A and B are valid?

Let's say I have microservice A and B. Microservice A calls microservice B for some piece of information. Microservice B requires parameters 1, 2, and 4 for the request to be valid. If I'm simply ...
0
votes
4answers
165 views

Should NullPointerExceptions be avoided in Integration Tests?

While writing Integration tests for spring applications, I tend to come across checks for different Multilevel Data Objects For Eg: AssertNotNull("Node 10 is null", getNode1().getNode8().getNode10()....
1
vote
1answer
51 views

Keeping Stubs in Sync?

If I want to test frontend code (e.g. react SPA) that queries the backend and I stub out the responses from the backend using sinon fake server/fake XHR, then what happens if the backend code changes? ...
0
votes
1answer
73 views

Client-Side TDD Tests?

More specifically, with regards to ATDD (sort of BDD flavored, or some could argue what was actually intended in the first place by TDD) should be there much UI testing? As I have been testing my UI ...
1
vote
1answer
77 views

Test RESTful APIs?

When testing RESTful JSON APIs with ATDD/BDD practices in mind is it good practice to test the structure of the response? I'm thinking that it could too easily change, thus making for a brittle test. ...
-1
votes
1answer
38 views

Testing Application Helper that Depends on Controller

I am working on practicing TDD/BDD/ATDD and I am working on a rails application. I created a helper method that depends conditionally on the type of controller being tested. module ApplicationHelper ...
1
vote
1answer
84 views

Fixtures, Tests, and Preconditions

When using factories, although more work is required up front, you know that you will be setting the correct pre-conditions for your test (up to what you have written.) However, when you use fixtures, ...
0
votes
1answer
91 views

UI Integration test boundaries - nested api calls

I am developing the UI of an e-commerce. Actually it is the checkout page only. The entrance URL looks like this: myEcomerce.com/{orderGuid} On load The ui takes the orderGuid as parameter to call ...
1
vote
2answers
364 views

TDD workflow with integration testing

I'm having troubles with using the right workflow with TDD. Some people say we should design before writing any code, some say we should make a test, make it pass, then refactor the code and that ...
0
votes
0answers
103 views

Where to place integration tests for client-server project?

The project is as follows: Application A that uses the client library for sending requests. Application B that uses the same client library for sending requests. Server A that uses the same client ...
0
votes
1answer
273 views

How to store large test data sets. Git? [duplicate]

We have a camera application that does measurements on pictures. We have a feature for saving a "demo" containing the pictures/data used, and to replay this for test purposes. We use such data sets ...
0
votes
2answers
175 views

How should I structure an automated test with a dependency on an HTTP endpoint?

I'm trying to better understand unit tests and integration tests. I understand unit tests should be in isolation and their dependencies should be mocked. But I'm slightly unclear on the best approach ...
6
votes
6answers
1k views

Why wouldn't my team want to run unit tests automatically?

I'm managing a team in .net. They are writing unit tests, use them locally on a regular basis, and love it. However, they keep pushing to have the unit tests kept as a separate project and only want ...
2
votes
1answer
330 views

Does using fixtures make a unit test an integration test?

Does using touching a database mean a unit test is an integration test even if you are using fixtures? If so, what are the alternatives to write a unit test when you need to use models as a part of a ...
3
votes
2answers
211 views

Test Internals with TDD?

I'm new to TDD, and relatively new to software development in general (e.g. < 4 years experience), but I am trying to learn. I have been toying with TDD but ran into what I know realize is a ...
0
votes
0answers
209 views

Integration Tests of Entity Framework's Fluent API

I have a project using EF6, that was build after the database, but its EF is not DB-first. It's a reversed code-first I would say. The database is very big and really messy, so I didn't want ...
1
vote
2answers
137 views

Should I write integration test that test my code with real-network servers, before I start writing my code?

I am trying to write integration tests for a client-server app. The client app runs on a user's machine and connects to the server app running on a specific Windows server, network-serverA. The ...
0
votes
2answers
192 views

Is it a good idea to have individual data per integration test?

Is it a good idea to have individual/unique data sets for each integration test or should all tests reuse the same data? My idea for having individual data sets for each test is to have more control ...
1
vote
1answer
577 views

What are TDD and integration test naming conventions?

I am building a small web API using .NET Core. I want to practice TDD and this is my first attempt at TDD. These are a few use cases of the API: Users in administrator role can create/edit/delete ...
6
votes
1answer
464 views

Is mocking microservices a thing?

I'm trying to get my head around a the development workflow for working with microservices and docker multicontainer applications. The thing that I'm particularly trying to solve - is getting a good ...
1
vote
1answer
217 views

How to write integration tests for a distributed system highly dependant on current date and flow of time?

My team and I are trying to set up some integration tests of a distributed system that is highly dependant on the flow of time and events coming from external sources. Just to give you an idea about ...
2
votes
1answer
399 views

How to do TDD with Ansible and AWS modules?

I'm using some AWS modules to develop a role which will create users, groups, roles and manage managed policies on AWS. I would like to have some TDD practice while developing this role. For ...
2
votes
3answers
235 views

How should I manipulate the database from within an integration test?

I have an integration test that needs to tweak some values on the database. This sort of tweak is not needed for the real application, only to setup the test scenario. The dilemma: Should I ...
0
votes
1answer
215 views

Software Integration Tests Host vs Target

What criteria do you use to decide whether execute a test on target or on host in a sprint? We have integration testing using a server for an embedded system project. We are starting to learn and ...
13
votes
3answers
481 views

How to make automated tests popular? [closed]

Our code base is growing for 20 years now. We are about 10 devs + sqa working with 500kloc. Some time ago a small team of us (2 devs, one from sqa) started working on an automated test program. ...
5
votes
3answers
476 views

Refactoring and documenting a big monolithic system

I have started working on a new project and to my surprise its written by a single developer with almost no tests at all, the remaining tests are either buggy or feel error prone throwing a lot of ...
3
votes
3answers
778 views

Should Integration test offer more value than unit tests? [duplicate]

In order to ask this question I need to define a couple of terms to ensure everyone reading it is on the same page: Unit testing is the testing of a single class with all dependencies mocked / ...
2
votes
1answer
80 views

Multiple Integration Test Iterations for each sprint

We are going to implement Integration Testing at our project for an Embedded Product. The plan is to develop the Tests and execute them at each sprint. I suggested that the tests could be executed ...
0
votes
2answers
97 views

Sync mismatches - CI/CD Pipeline

We are implementing CI/CD in our company and we have a regulatory project which takes a long time to test. There is no way to break it down since the project contains around 300 rules, each of which ...
4
votes
3answers
2k views

Integration Testing: Testing Service to Service

I'm looking for some advice on testing strategies for service to service communication. I have one service (service A) that makes a call to another service (B) - which is a rest API. Both services ...
3
votes
4answers
349 views

What is the point of logging? [closed]

I got asked a question today that was so basic I was unsure how to answer it. I had added some logging statements to our integration testing package, to find out what part of it was taking so long (...
0
votes
2answers
854 views

Test case for Restful API with connecting database is Unit test or Integration Test

I have a restful api router , where it connects with database and returns some rows. So is it Unit test or Integration test ? From my knowledge, unit test doesn't connect with external services likes ...
0
votes
1answer
94 views

When will writing functional and integration tests be too early?

If a feature that was done in 2, 3 months and before it was merged into the main branch, and both branches were under constant changes every day, should integration tests be written at this stage? ...
2
votes
1answer
53 views

Where should I do integration tests in a multi package project

Background: I am working on a node project which consists of a core package and several addon packages. For the end product to work, the core package and atleast one of the addon packages should be ...
1
vote
0answers
88 views

Integration tests in different environments

Our microservices are going to be deployed on AWS, using Pipelines. A step on this pipeline will execute integration tests using a dedicated database on AWS, a MySQL instance. My question is: since I ...
4
votes
3answers
178 views

TDD: Testing coordination of object-graphs provided by third-party libraries

It seems there are lots of resources on how to Mock third-party code when that code is simple. A JSONRequest, etc. but when using a third-party library which requires the configuration of a relatively ...
0
votes
1answer
77 views

What to test in this module?

Aside from the probable dozens of bugs you can spot in the code below, I'd really like to know what would most people would consider testing in the code below. I have 8 similar exported functions, so ...
4
votes
1answer
3k views

Integration vs Functional Testing

Alright....so this is driving me nuts as I'm trying to encourage the team to write more tests yet here I am unable to determine whether the following example is considered an integration or a ...
0
votes
0answers
32 views

How to access code of multiple automation projects into once Project?

I work in a project which contain multiple areas, and each area is assigned to multiple scrum teams, to automate the test cases of their area, each scrum team has developed independent and different ...
0
votes
0answers
69 views

How to make my E2E tests verify results of an action?

I'm working on a project with an AngularJS app that talks to a RESTful API. We've just started writing E2E tests for the app in Protractor. I'm fairly comfortable with unit testing but new to end-to-...