unit test

Mar 11 2012

The Economics of Developer Testing

A while back, a nagging question popped up in the little “related questions” bar on StackOverflow. 1

Is there such a thing as too much unit testing?

Why is the question nagging?

Based on the way the question was phrased, it wasn’t really cut out for StackOverflow. The site’s goal is specific - to answer programming questions, not touch off religious debates. The left-brained creators of the site wanted it to serve as a knowledge base, and were careful to model it such that it wouldn’t turn into a history of flame wars on various programming topics. (I also think there’s an element of programmer ego/bias at play on the site: the “I’m not a tester” mentality. But this is purely my speculation.)

Read More

Jul 10 2009

Cleaning up Visual Studio TestResults with PowerShell

If you write your unit tests using Visual Studio, then you know how quickly those pesky "TestResults" folders can eat up precious disk space over time. Here is a simple, yet effective PowerShell script to seek and destroy them!

Assuming all of your code is collocated in the same parent directory, replace "C:\Projects" with your parent directory.
(get-childitem C:\Projects\* -recurse) | where{$_.name -eq "TestResults"} |% {remove-item $_.fullname -recurse}

Read More

 

Disclaimer

The words and opinions expressed here are those of each article's respective author, and do not necessarily represent the views of CapTech Ventures.