Linked Questions
21 questions linked to/from How do you unit test private methods?
2
votes
1
answer
3k
views
How to unit test public method which internally calls many internal or private methods which are already individually unit tested [duplicate]
In our ASP.NET Core application, we have many APIs which are calling public method from the service class. Service class is implementing an Interface. Each service method (depending upon complexity ...
3
votes
2
answers
655
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 ...
2
votes
3
answers
810
views
How to not violate the single responsibility principle?
Let's say I'm writing a class that tracks a single stock ticker. In this simplified example, the StockTracker class holds a string that tells me the trend direction and a variable window that holds x ...
3
votes
4
answers
175
views
What is the best practice for a regression test that wants to know about encapsulated information?
Suppose you have two classes: Alpha, and Bravo.
Alpha constructs a new Bravo class during its own constructor and exposes no public visibility to it.
Bravo has a String named charlie (and a method to ...
4
votes
2
answers
223
views
continuous integration impact on ticket sizing
I've been doing research on CI (continuous integration) and I can't find any info on the changes CI would introduce to ticket sizing.
CI states developers should merge to the mainline every day (or ...
2
votes
3
answers
266
views
How do you decompose big object for testing?
I have a package that provides an object with quite a lot of features owned by it.
Let us say the object is an HTTPServer, and when the user initializes it by providing config and a request handler ...