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.

-1
votes
0answers
16 views

Best practice - Single or Multiple source code repository

As mentioned here: The main aim of CI is to prevent integration problems, referred to as "integration hell" Our project is a 3-tier web application, with frontend(Angular 6), backend(Springboot) &...
1
vote
0answers
21 views

Write integration tests with React using Jest

Let's imagine that we have this Page component: const Page = () => <> <Topbar /> <Drawer /> <Content /> </> I'd like to test some interaction within ...
3
votes
5answers
193 views

How to Differentiate Unit Tests from Integration Tests?

In my C# solution, I have a Tests project containing unit tests (xUnit) that can run on every build. So far so good. I also want to add integration tests, which won't run on every build but can run ...
-2
votes
0answers
52 views

Lean testing / testing trophy – Write tests. Not too many. Mostly integration

I'd like to discuss different aspects and read more comments on the topic which is currently hard to even name. There are words like "lean testing", the "testing trophy" (as an anti-thesis to the ...
1
vote
0answers
23 views

Integration Testing on AWS

I have a AWS pipeline connecting multiple resources to do 1 task which looks like as follows: The data is listened from a SNS topic and then moved to Lambda where it is processed. From lambda, step ...
1
vote
2answers
68 views

Unit testing about API endpoints and parameters

Consider a simple web application, I'll use a Python(ish) example, but i think the question is relevant for other languages as well. The user is trying to fetch a page, and in order to render that ...
2
votes
4answers
131 views

Testing database insertion, removal, and modification from program code (i.e., rather than test code)

I want to ensure that my program code is correctly inserting, removing, and modifying data in my database. Full integration testing can be slow, and I have concerns about keeping mock objects and data ...
0
votes
2answers
47 views

Setting up data for integration tests: using SQL queries or APIs calls

We a have test repo outside of the app repo and we can generate data by either having direct SQL queries or through API calls (http requests). We've been entertaining the idea of switching over to ...
5
votes
3answers
340 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
249 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
50 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 ...
66
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
406 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
284 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
101 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
50 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
101 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
159 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
172 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
79 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
80 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
85 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
39 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
106 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
96 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
395 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
121 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
347 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
184 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 ...
3
votes
1answer
405 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
229 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
227 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
155 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
249 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
725 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
544 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
233 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
444 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
259 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
244 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
482 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
507 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
998 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
83 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
100 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
3k 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
377 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
944 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 ...