|
Member 11547329 wrote: Is Unit Testing is most boring activity for Developer
Whenever I am bored doing programming, I ask myself, why can't the computer do this, which has led to some interesting tools over the years.
I still don't see why we don't have tools that generate the unit tests for us. I mean, it really isn't that hard if we were only to apply ourselves to the problem.
Marc
|
|
|
|
|
Marc Clifton wrote: I still don't see why we don't have tools that generate the unit tests for us. Clickety[^]
/ravi
|
|
|
|
|
Ravi Bhavnani wrote: Clickety[^]
True, but I've never tried, as I expect to be disappointed.
Have you tried it?
Marc
|
|
|
|
|
No, I haven't tried it. I've been building my unit tests manually so far. Admittedly, I don't test every method and property - just (what I deem to be) points of failure.
/ravi
|
|
|
|
|
I haven't either; but it looks like it's just a test stub generator. You'd still have to do the hard work of writing any non-trivial setup code, and then actually writing meaningful test content. The one in VS08/10 was a major waste of time IMO; and it appears MS agrees with me since based on the comments there they yanked it from 2012.
I've also played a bit with MS's automagic unit testing tool back around the New Year. While it fell well short of its "cover your legacy code in a single button click" hype; if you're writing readily testable code now it seemed like it might be able to generate good test coverage of it. Things like non-trivial state setup, logic in winform event handlers, or classes with tight coupling to the file system all defeated it; unfortunately my un-unit tested legacy .net code is riddled with those constructs making it mostly useless to me. (Even aside from only having MSDN pro - and the feature apparently being limited to the rebranded Premium tier.)
Did you ever see history portrayed as an old man with a wise brow and pulseless heart, waging all things in the balance of reason?
Is not rather the genius of history like an eternal, imploring maiden, full of fire, with a burning heart and flaming soul, humanly warm and humanly beautiful?
--Zachris Topelius
Training a telescope on one’s own belly button will only reveal lint. You like that? You go right on staring at it. I prefer looking at galaxies.
-- Sarah Hoyt
|
|
|
|
|
I test my unit frequently... Oh! You mean code! Ummm, yeah, I do that too.
|
|
|
|
|
Boring beats staying up till 4:00am trying to fix a critical bug in production.
/ravi
|
|
|
|
|
Ravi,
I agree wid u.
I also face this problem several times.
|
|
|
|
|
|
I've never unit tested.
Unless running the program in a debugger, handing my keyboard to a small child, and telling them "Smash a ton of keys" counts.
When I talk to people who don't even know what source code is, I open an editor window and say "This is what we go through every time you find a bug!"
|
|
|
|
|
No, there are worse things many times more boring than unit testing.
Like spending three months looking for a decent job because your last company imploded due to all the unfixed bugs.
Like spending a week hunting for a bug in your colleague's code who thought unit testing was boring so he didn't bother.
Like waiting six months for your cool new feature to go live because your testing organization only does system test, and therefore can only afford to release twice a year.
|
|
|
|
|
A related question is: are there any studies that show implementing unit testing and TDD has decreased the number of bugs in released programs than old-fashioned testing methods?
If you think 'goto' is evil, try writing an Assembly program without JMP.
|
|
|
|
|
Well, problem is a problem[^].
The sh*t I complain about
It's like there ain't a cloud in the sky and it's raining out - Eminem
~! Firewall !~
|
|
|
|
|
@ the community table: Caribou
Well I'm rubbing my nose. Have great wnd!
|
|
|
|
|
What?
The difficult we do right away...
...the impossible takes slightly longer.
|
|
|
|
|
|
I had a great wind, when I was still lying in bed, thanks.
No object is so beautiful that, under certain conditions, it will not look ugly. - Oscar Wilde
|
|
|
|
|
Chrris Dale wrote: Have great wnd
Well, since it is a holiday weekend, I suppose that would be a great hwnd.
"Go forth into the source" - Neal Morse
|
|
|
|
|
Quote: great hwnd Oh ya. Still enjoying.
|
|
|
|
|
|
One day i am a millionaire because every day i buy a lottery..
Thanks & Regards
RajeeshMenoth
|
|
|
|
|
It's easy to become a millionaire if you own a lottery. Millions of suckers buy tickets.
I wanna be a eunuchs developer! Pass me a bread knife!
|
|
|
|
|
Mark_Wallace wrote: Millions of suckers buy tickets.
"Idiot Tax"
Bad command or file name. Bad, bad command! Sit! Stay! Staaaay...
|
|
|
|
|
The Lottery isn't about winning.
|
|
|
|
|
I initially considered "contributing" to the UK national lottery, because of the money going to the arts, and similar cultural causes.
But then they gave £85,000,000 to refit the London opera house.
"Refit one building", not "rebuild half of London".
That showed where the money was really going, so I quit "contributing" to it.
I wanna be a eunuchs developer! Pass me a bread knife!
|
|
|
|