Skip to main content
Software Engineering

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.

Filter by
Sorted by
Tagged with
2 votes
3 answers
1k views

Scope of integration tests

I'm programming a .NET WebApi application from services. What is the scope of an integration test within the following schema? Order creation scenario: Order is created -> stored in db -&...
3 votes
3 answers
167 views

Automation of workflow for automated testing

What are your opinions on writing "production" code to facilitate testing? Specifically, the use case is this: we have a system with a multiple step workflow, where a few stages are done by ...
0 votes
5 answers
390 views

Simulating different times of day when running integration tests, .NET/XUnit

I work on an organization's internal .NET Core 8 application where various dates are stored in different canonical formats, and some comparisons (checking that the current moment falls between a data ...
0 votes
2 answers
184 views

Is Spring Boot Unit Test Coverage with Integration tests only a bad practice?

I have recently come across a few codebases at work where the previous developers chose to reach the >80% coverage criteria by writing only integration tests with the @SpringBootTest annotation ...
13 votes
10 answers
3k views

Does unit testing spot bugs that QA testing typically does not?

By QA testing I mean like say integration testing, system testing, regression testing, user acceptance testing and the like. If unit testing is skipped altogether would bugs that typically are spotted ...
3 votes
2 answers
220 views

Ensuring unit test data stays accurate

Say I have a method that expects data to be in some form to perform accurately. In the actual service/application flow, that data is formed upstream in other methods or services. How can I ensure the ...
-1 votes
1 answer
173 views

Why was integration tests using Spring Test framework designed to need @Transactional annotation in the @Test method by default?

Based on the documentation on Spring testing: https://docs.spring.io/spring-framework/reference/testing/testcontext-framework/tx.html#testcontext-tx-enabling-transactions Annotating a test method ...
18 votes
10 answers
7k views

Would a middle ground between unit and integration tests be optimal

I've read many posts about unit tests only testing one object/class and mocking of objects should only be for direct dependencies of the object under tests. The only other option discussed for ...
-1 votes
2 answers
139 views

Approach for implementing access permission tests for a large number of actions and multiple affiliations

I'm obviously having trouble creating a question that fits StackExchange guidelines in regard of opinions vs metrics. Any help to improve this question is highly appreciated. I'm searching for a ...
1 vote
2 answers
134 views

Integration testing strategy for a volatile domain

Imagine following scenario: Our team is working on a mobile project in biometrics. The team delivers a client facing SDK. Our work relies on another internal team, that is delivering algorithms in a ...
user avatar
user124210
0 votes
1 answer
496 views

How to avoid too much mocking in unit tests in a database-heavy method?

I have a service method, acceptOrDenyJoinRequest, which follows a fairly complex flow (as depicted in this diagram): In my unit tests, the implementation details of this method are heavily reflected. ...
1 vote
1 answer
509 views

Should I skip unit tests if integration tests cover the same scenarios?

I have a service method called acceptOrDenyJoinRequest that follows a logic similar to this flowchart (green boxes are ignored in code, and the light gray box calls an external service). According to ...
2 votes
5 answers
483 views

How to follow Outside-In TDD with Micro-services and Micro-frontends?

I was exploring TDD, specifically the Outside-In TDD pattern, where we need to write the acceptance (integration) test and then jump on to granular unit tests to implement the feature and make the ...
0 votes
0 answers
97 views

Is it really difficult to test these "Service" methods in this Rust Clean Architecture proposal? Is there some other catch I'm not considering?

I reproduced a small example of kerkour's Rust Clean Architecture on the Rust Playground. The code is just an example and the methods code makes no sense at all. This architecture leaks DB information ...
0 votes
4 answers
304 views

TDD and code reusability

Let's say that I've been iterating over my feature A with TDD. After several red-green-refactor cycles, I ended up with a nicely polished implementation with a part of the SUT encapsulated into some ...

15 30 50 per page
1
2 3 4 5
...
23

AltStyle によって変換されたページ (->オリジナル) /