Click here to Skip to main content
15,848,349 members

Survey Results

Do you do Unit Testing?

Survey period: 22 Jun 2020 to 29 Jun 2020

We ran this 5 years ago. Let's see if things have changed.

OptionVotes% 
We unit test everywhere, always.9912.36
We test the most important and/or non-trivial units,15619.48
We unit test some pieces. Sometimes.27033.71
We never unit test,20225.22
What is unit testing?789.74



 
GeneralRe: old / new code Pin
W Balboos, GHB22-Jun-20 2:00
W Balboos, GHB22-Jun-20 2:00 
GeneralOne more option Pin
Amarnath S21-Jun-20 19:26
professionalAmarnath S21-Jun-20 19:26 
GeneralRe: One more option Pin
Ravi Bhavnani21-Jun-20 19:37
professionalRavi Bhavnani21-Jun-20 19:37 
GeneralRe: One more option Pin
Mike Hankey21-Jun-20 22:26
mveMike Hankey21-Jun-20 22:26 
GeneralRe: One more option Pin
Ravi Bhavnani22-Jun-20 21:20
professionalRavi Bhavnani22-Jun-20 21:20 
GeneralRe: One more option Pin
Mike Hankey23-Jun-20 3:22
mveMike Hankey23-Jun-20 3:22 
GeneralRe: One more option Pin
OriginalGriff21-Jun-20 22:45
mveOriginalGriff21-Jun-20 22:45 
GeneralRe: One more option Pin
Amarnath S21-Jun-20 23:36
professionalAmarnath S21-Jun-20 23:36 
Yes, I remember during the good old FORTRAN or C days, they used to say that each subroutine or function is to be tested by giving several valid inputs, and several more invalid inputs, and then the response seen.

For example, for a numerical argument, give input within range and at the boundary (for valid inputs), and outside range, one-off inputs, alphanumeric, decimal, integers, negative numbers, etc. (for invalid inputs).
Similarly for strings.

Faintly remember that it used to be called Equivalence Group Testing. Quite fail-proof. Not sure whether it is still being used.
GeneralRe: One more option Pin
Nemanja Trifunovic22-Jun-20 2:13
Nemanja Trifunovic22-Jun-20 2:13 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.