Skip to main content

All Questions

0 votes
2 answers
151 views

I am building an API project, where I have a controller called C1, which calls service S1. Within this service, there are multiple method invocations to services S2and S3 and S4, as well as a call to ...
Héctor Iglesias's user avatar
0 votes
1 answer
87 views

I've been working on an implementation of a service, and have found that there are a number of operations where I need to read from a database to provide a caller with certain data or objects. In-line ...
Lily Smith's user avatar
2 votes
3 answers
1k views

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 -&...
Petr Klekner's user avatar
3 votes
3 answers
210 views

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 ...
Kramer's user avatar
  • 147
0 votes
5 answers
535 views

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 ...
Green Grasso Holm's user avatar
1 vote
2 answers
252 views

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 ...
Mary's user avatar
  • 13
13 votes
10 answers
4k views

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 ...
Wes's user avatar
  • 335
3 votes
2 answers
235 views

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 ...
Jason's user avatar
  • 33
-1 votes
1 answer
226 views

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 ...
Rui's user avatar
  • 1,935
18 votes
10 answers
8k views

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 ...
Thor's user avatar
  • 307
-1 votes
2 answers
165 views

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 ...
DarkTrick's user avatar
  • 286
1 vote
2 answers
155 views

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
1 vote
1 answer
572 views

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. ...
Saimur Rahman's user avatar
1 vote
1 answer
614 views

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 ...
Saimur Rahman's user avatar
2 votes
5 answers
500 views

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 ...
Jignesh M. Khatri's user avatar

15 30 50 per page
1
2 3 4 5
24