Skip to main content
Search type Search syntax
Tags [tag]
Exact "words here"
Author user:1234
user:me (yours)
Score score:3 (3+)
score:0 (none)
Answers answers:3 (3+)
answers:0 (none)
isaccepted:yes
hasaccepted:no
inquestion:1234
Views views:250
Code code:"if (foo != bar)"
Sections title:apples
body:"apples oranges"
URL url:"*.example.com"
Saves in:saves
Status closed:yes
duplicate:no
migrated:no
wiki:no
Types is:question
is:answer
Exclude -[tag]
-apples
For more details on advanced search visit our help page
Results tagged with
Search options not deleted user 130377

Unit testing is a method by which individual units of source code are tested to determine if they are fit for use.

3 votes

Testing a function that only calls one or two other functions

This is obviously a controversial topic. Having consulted a multitude of opinions, the conclusion is that this is correct: Given the method function onSendRequestForSelected(); and its pre-implem …
Izhaki's user avatar
  • 381
4 votes
1 answer
3k views

Testing a function that only calls one or two other functions [duplicate]

The short version The code As part of TDD, we often end up with functions that follow this pattern: function onSendRequestForSelected() { this.deselectStepsWithRequest(); this.sendRequestFo …
Izhaki's user avatar
  • 381
6 votes

Should we test all our methods?

A resounding YES with TDD (and with a few exceptions) Controversial alright, but I'd argue that anyone who answers 'no' to this question is missing a fundamental concept of TDD. For me, the answer i …
Izhaki's user avatar
  • 381
11 votes

Is Functional Programming a viable alternative to dependency injection patterns?

The quick answer is: No. But as others have asserted, the question marries two, somewhat unrelated concepts. Let's do this step by step. DI results in non-functional style In the core of functional pr …
Izhaki's user avatar
  • 381