Onward and Upward

Blog archive

Proof of Unit Testing's Time Savings

At Visual Studio Magazine, we're big proponents of unit testing as a means of writing better, more efficient code. Yes, that can come under the heading of "Duh!", as in "Duh, Ward, that ain't exactly breaking news, is it?"

True though that may be, it's my suspicion (based solely on anecdotal evidence, it must be pointed out) that many, many developers don't do it as a regular practice. I'd suspect the reasons are fear of the unknown, or the inertia we all experience when it comes to changing our routines.

But if you're not doing unit testing, you're seriously slowing down your productivity. That's according to some numbers that came across my desk (OK, monitor) in a press release from Typemock, which makes unit testing products. According to Typemock,

Over 50% of the largest European banks and over 35% of global leading financial institutions consider unit testing critical

Now, aside from the spin that will naturally be applied to those figures, they're still pretty significant. And it backs up what we've been saying for years now -- that unit testing saves time, which of course saves money. How much time? Well, the release estimates a 70-80 percent reduction in debugging time. Again, I'm not sure that most developers are seeing quite that level of time savings, but maybe some of you are. I'd love it if you unit testers would give me some feedback related to this: how much time do you save over your non-unit-testing days?

I wonder if the new emphasis on time-to-market that's been spurred by the explosion of mobile development is leading to a similar uptake in unit testing; I suspect it's having a large impact in that realm. Again, let me know.

If you're not using unit testing, I'd also be interested in hearing why.

Posted by Keith Ward on 02/07/2012


comments powered by Disqus

Featured

  • AI for GitHub Collaboration? Maybe Not So Much

    No doubt GitHub Copilot has been a boon for developers, but AI might not be the best tool for collaboration, according to developers weighing in on a recent social media post from the GitHub team.

  • Visual Studio 2022 Getting VS Code 'Command Palette' Equivalent

    As any Visual Studio Code user knows, the editor's command palette is a powerful tool for getting things done quickly, without having to navigate through menus and dialogs. Now, we learn how an equivalent is coming for Microsoft's flagship Visual Studio IDE, invoked by the same familiar Ctrl+Shift+P keyboard shortcut.

  • .NET 9 Preview 3: 'I've Been Waiting 9 Years for This API!'

    Microsoft's third preview of .NET 9 sees a lot of minor tweaks and fixes with no earth-shaking new functionality, but little things can be important to individual developers.

  • Data Anomaly Detection Using a Neural Autoencoder with C#

    Dr. James McCaffrey of Microsoft Research tackles the process of examining a set of source data to find data items that are different in some way from the majority of the source items.

  • What's New for Python, Java in Visual Studio Code

    Microsoft announced March 2024 updates to its Python and Java extensions for Visual Studio Code, the open source-based, cross-platform code editor that has repeatedly been named the No. 1 tool in major development surveys.

Subscribe on YouTube