Click here to Skip to main content
15,358,470 members

Survey Results

Do you measure code coverage?

Survey period: 27 Mar 2017 to 3 Apr 2017

Code Coverage: the degree to which the source code of a program is executed when a particular test suite runs.

OptionVotes% 
Yes - to ensure our unit tests cover all execution paths15116.00
Yes - to know how much of our code is actually run in production242.54
Yes - for both tests and in production434.56
Yes - for other reasons262.75
No - but we are planning to727.63
No - it's a pointless metric848.90
No - we don't have the tools or expertise14415.25
No - we don't have time11812.50
No28229.87



 
GeneralI run coverage tests at least once per iteration Pin
hpcoder230-Mar-17 15:33
Memberhpcoder230-Mar-17 15:33 
GeneralUnit- and Integration Tests automated, so yes Pin
Mike (Prof. Chuck)29-Mar-17 2:27
professionalMike (Prof. Chuck)29-Mar-17 2:27 
GeneralNo, because, Pin
Afzaal Ahmad Zeeshan28-Mar-17 11:49
mveAfzaal Ahmad Zeeshan28-Mar-17 11:49 
GeneralAuto testing is just an excuse Pin
Thornik28-Mar-17 4:25
MemberThornik28-Mar-17 4:25 
GeneralRe: Auto testing is just an excuse Pin
Mike (Prof. Chuck)30-Mar-17 3:54
professionalMike (Prof. Chuck)30-Mar-17 3:54 
GeneralNo, my boss does not want.. Pin
Endaroza28-Mar-17 2:42
MemberEndaroza28-Mar-17 2:42 
GeneralRe: No, my boss does not want.. Pin
Sharath C V28-Mar-17 2:53
professionalSharath C V28-Mar-17 2:53 
GeneralRe: No, my boss does not want.. Pin
Endaroza10-May-17 5:17
MemberEndaroza10-May-17 5:17 
GeneralRe: No, my boss does not want.. Pin
ronlease30-Mar-17 4:13
professionalronlease30-Mar-17 4:13 
GeneralRe: No, my boss does not want.. Pin
Endaroza4-Apr-17 0:42
MemberEndaroza4-Apr-17 0:42 
GeneralRe: No, my boss does not want.. Pin
Endaroza10-May-17 5:17
MemberEndaroza10-May-17 5:17 
GeneralAnd I was looking forward to Monday - new poll. Pin
Ron Anders27-Mar-17 3:07
MemberRon Anders27-Mar-17 3:07 
GeneralRe: And I was looking forward to Monday - new poll. Pin
Chris Maunder27-Mar-17 16:20
cofounderChris Maunder27-Mar-17 16:20 
GeneralRe: And I was looking forward to Monday - new poll. Pin
Ron Anders27-Mar-17 16:28
MemberRon Anders27-Mar-17 16:28 
GeneralRe: And I was looking forward to Monday - new poll. Pin
Chris Maunder27-Mar-17 17:08
cofounderChris Maunder27-Mar-17 17:08 
GeneralWe can't use unit tests Pin
den2k8826-Mar-17 23:14
professionalden2k8826-Mar-17 23:14 
GeneralYes Pin
Sander Rossel26-Mar-17 21:38
professionalSander Rossel26-Mar-17 21:38 
GeneralRe: Yes Pin
Rob Grainger27-Mar-17 22:19
MemberRob Grainger27-Mar-17 22:19 
GeneralRe: Yes Pin
Dan Neely28-Mar-17 2:35
MemberDan Neely28-Mar-17 2:35 
GeneralNo Pin
Kornfeld Eliyahu Peter26-Mar-17 21:01
professionalKornfeld Eliyahu Peter26-Mar-17 21:01 
GeneralRe: No Pin
W Balboos, GHB27-Mar-17 1:42
mveW Balboos, GHB27-Mar-17 1:42 
GeneralRe: No Pin
Nelek29-Mar-17 9:52
protectorNelek29-Mar-17 9:52 
GeneralRe: No Pin
KarstenK27-Mar-17 7:24
mveKarstenK27-Mar-17 7:24 
GeneralRe: No Pin
Emmanuel Medina27-Mar-17 12:32
professionalEmmanuel Medina27-Mar-17 12:32 
GeneralRe: No PinPopular
User 1013254628-Mar-17 0:03
MemberUser 1013254628-Mar-17 0:03 
I can see the point in unit testing - it's a tool that's useful for testing specific things. However, I see far too often tests written to check that a call to an MVC controller returns a specific view. I mean, it's a bleedin' MVC view controller, it's going to return a view and it's going to be bleedin' obvious if it's not the right one!! But no, developers still want to write 50+ unit tests on every action on every controller.

Then there's DI.. great for testing, but does anyone ever stop and think "how many classes are getting instantiated on every hit of each request to my site?" - I doubt very many are. Loose coupling makes unit testing possible but 99.9999% of you application's lifetime isn't going to be spent under test, is it? It's more CPU usage, more memory usage, slower applications out there in production.. The worst thing is that so many developers assume that because all the unit tests pass, their application is working! It isn't, at least until it's been manually confirmed that it's working.

My take on it is: unit test what absolutely needs to be unit tested and no more.
Ah, I see you have the machine that goes ping. This is my favorite. You see we lease it back from the company we sold it to and that way it comes under the monthly current budget and not the capital account.


modified 31-Aug-21 21:01pm.

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.