Click here to Skip to main content
15,395,065 members

Survey Results

Do you use Code Coverage tools?

Survey period: 9 May 2022 to 16 May 2022

A critical tool or an unnecessary critic?

OptionVotes% 
Yes, always344.30
When it makes sense, yes.8310.51
Sometimes. It really depends.668.35
Rarely.10112.78
No, never.24230.63
I don't know what a Code Coverage tool is26433.42



 
General:doh: I think but i don't use it. Pin
Hermin Useini10-May-22 9:15
MemberHermin Useini10-May-22 9:15 
GeneralIdk what is it? Pin
Hermin Useini10-May-22 9:22
MemberHermin Useini10-May-22 9:22 
GeneralCan't Afford One Pin
PaltryProgrammer10-May-22 1:39
MemberPaltryProgrammer10-May-22 1:39 
GeneralRe: Can't Afford One Pin
Jacquers10-May-22 7:25
MemberJacquers10-May-22 7:25 
GeneralUnit Tests + Sonarqube Pin
Jacquers9-May-22 21:37
MemberJacquers9-May-22 21:37 
GeneralRe: Unit Tests + Sonarqube Pin
Sander Rossel10-May-22 21:06
professionalSander Rossel10-May-22 21:06 
GeneralRe: Unit Tests + Sonarqube Pin
Jacquers10-May-22 21:18
MemberJacquers10-May-22 21:18 
GeneralRe: Unit Tests + Sonarqube Pin
jpoggio11-May-22 20:55
Memberjpoggio11-May-22 20:55 
GeneralNo, coverage is pretty useless Pin
Sander Rossel9-May-22 20:45
professionalSander Rossel9-May-22 20:45 
GeneralRe: No, coverage is pretty useless Pin
Kirk 1038982110-May-22 9:49
MemberKirk 1038982110-May-22 9:49 
GeneralRe: No, coverage is pretty useless Pin
Sander Rossel11-May-22 10:01
professionalSander Rossel11-May-22 10:01 
Kirk 10389821 wrote:
I fell in love with the "Code Complete" approach of adding a breakpoint at the start of newly written logic.
And "watching" it execute "in context"... I can't fathom NOT doing that.
I haven't read that book, but I do that too Big Grin | :-D
Kirk 10389821 wrote:
Where the complexity of testing/stubs is beyond that of the application complexity by a margin.
Been there, done that Dead | X|
Had to create complete database objects with 30+ fields just to see some code not outright crash.
Then create that same object again (make a function that returns said object), but instead of property X having value Y use value Z because that should give a different result.
Oh, and don't forget to stub IServices A, B and C, which should all return specific values.
We know A, B and C work because we've tested that elsewhere.
Kirk 10389821 wrote:
And I've seen some horrendous production code that was design to be testable
Yeah, me too.
Make everything public so you can test it.
I don't want to make everything public, only the interface members.
But the interface does too much to test.
Well, guess I'm not testing it then...
But seriously, when I have an IFileService and an AzureFileService implementation, the only real test I can do is run it and see if my file ends up in Azure.
No amount of stubbing or mocking is ever going to compete with that!
"Yeah, but you can test that the method is calling the Microsoft.Azure.BlobClient.WriteBlobAsync(byte[], string, string) at least once."
Like, seriously, WHAT!? If that's the kind of testing you need you have bigger problems than testing Dead | X|

I've found "common sense"™ to be the best testing, debugging and coverage tool of all Big Grin | :-D
Too bad it's in such short supply these days Sigh | :sigh:

GeneralRe: No, coverage is pretty useless Pin
trønderen11-May-22 13:42
Membertrønderen11-May-22 13:42 
GeneralRe: No, coverage is pretty useless Pin
Sander Rossel11-May-22 20:09
professionalSander Rossel11-May-22 20:09 
GeneralRe: No, coverage is pretty useless Pin
trønderen12-May-22 6:01
Membertrønderen12-May-22 6:01 
GeneralRe: No, coverage is pretty useless Pin
Sander Rossel14-May-22 21:32
professionalSander Rossel14-May-22 21:32 
GeneralRe: No, coverage is pretty useless Pin
Kirk 1038982111-May-22 16:12
MemberKirk 1038982111-May-22 16:12 
GeneralRe: No, coverage is pretty useless Pin
Sander Rossel11-May-22 20:10
professionalSander Rossel11-May-22 20:10 
GeneralRe: No, coverage is pretty useless Pin
Kirk 1038982112-May-22 2:50
MemberKirk 1038982112-May-22 2:50 
GeneralRe: No, coverage is pretty useless Pin
Sander Rossel12-May-22 2:55
professionalSander Rossel12-May-22 2:55 
GeneralNo, but need/want to. Pin
ergohack9-May-22 4:47
Memberergohack9-May-22 4:47 
GeneralRe: No, but need/want to. Pin
RickZeeland9-May-22 8:07
mveRickZeeland9-May-22 8:07 
GeneralWhen I have to Pin
Nemanja Trifunovic9-May-22 2:11
MemberNemanja Trifunovic9-May-22 2:11 
GeneralNo Pin
Slacker0079-May-22 0:48
professionalSlacker0079-May-22 0:48 
GeneralHad to google! Pin
CHill608-May-22 22:29
mveCHill608-May-22 22:29 
GeneralAlways - The SPICE is vital to automotive travel Pin
den2k888-May-22 22:01
professionalden2k888-May-22 22:01 

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.