Go Back   Customers Suck! > The Heart of the Site > Unsupportable

Reply
 
Thread Tools Display Modes

  #11  
Old 02-12-2019, 10:57 PM
Jetfire Jetfire is offline
Area Manager
 
Join Date: Oct 2006
Posts: 1,016
Default

It can be difficult to do. I joined my current company about 18 years ago, and they didn't really have a Unit Test framework at the time. My job before it was heavy on Unit Testing and I did miss that framework at the time, but I was too junior to push it back then. Still a few years later, some of our teams started developing unit tests and making it our policy. There was some resistance, and it's taken a long time to get decent coverage. But now, everyone is grateful we have the coverage we have for the tests. It has allowed us the freedom and confidence to do some major refactoring and updating of our systems and know we haven't broken things worst than it was before.

At the moment the code base I work in the most has about 25,000+ unit tests; takes about 5 minutes to run fully without debugging in release. And some of our other big modules have 10k tests as well; all written in the past dozen years or so.
Reply With Quote

  #12  
Old 02-13-2019, 02:34 AM
Ironclad Alibi's Avatar
Ironclad Alibi Ironclad Alibi is offline
Chairman of the Board
 
Join Date: Dec 2007
Location: Inside The Beltway.
Posts: 4,651
Default

Quote:
Quoth Nunavut Pants View Post
There are quite a few people who agree that it is a fabulous idea, and that Somebody Else should put a whole lot of time and effort into developing it.
The problem with that approach is that they usually want that Somebody Else to pay for it.
__________________
"I don't have to be petty. The Universe does that for me."
Reply With Quote

  #13  
Old 02-13-2019, 05:04 PM
Nunavut Pants's Avatar
Nunavut Pants Nunavut Pants is offline
Warning: He thinks he's funny.
 
Join Date: Nov 2015
Posts: 942
Default

Quote:
Quoth Jetfire View Post
... But now, everyone is grateful we have the coverage we have for the tests. It has allowed us the freedom and confidence to do some major refactoring and updating of our systems and know we haven't broken things worst than it was before.
"The key to fearless refactoring is good test coverage."

Sounds like your current job is much like my first group at $(MAJOR_NETWORKING_COMPANY). We had good coverage, support from management to require people to test, and good people doing the work.

... so of course the mandate came down from Very Upper Management that we had to increase our release cadence and reduce head count by half. The top guy in our $(BUSINESS_UNIT) told them it couldn't be done, so they just closed down $(BUSINESS_UNIT) and got out of the $(PRODUCT) market all together.
__________________
“There are two novels that can change a bookish fourteen-year old’s life: The Lord of the Rings and Atlas Shrugged.
One is a childish fantasy that often engenders a lifelong obsession with its unbelievable heroes, leading to an emotionally stunted, socially crippled adulthood, unable to deal with the real world.
The other, of course, involves orcs." -- John Rogers
Reply With Quote

  #14  
Old 02-14-2019, 01:22 PM
mjr's Avatar
mjr mjr is offline
Area Manager
 
Join Date: Jan 2013
Location: 127.0.0.1
Posts: 1,036
Default

Quote:
Quoth Nunavut Pants View Post
There are quite a few people who agree that it is a fabulous idea, and that Somebody Else should put a whole lot of time and effort into developing it.

I tried to be that Someone Else for a little while, but wound up unable to put together anything useful...
There are lots of useful websites and such as to unit testing online. I know it's in C#, but one book I'd recommend is Roy Osherove's "The Art of Unit Testing". There are plenty of others, too.
__________________
Skilled programmers aren't cheap. Cheap programmers aren't skilled.
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 12:55 PM.


Powered by vBulletin® Version 3.8.9
Copyright ©2000 - 2019, vBulletin Solutions, Inc.