O'Reilly logo

PowerShell Troubleshooting Guide by Michael Shepard

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Unit testing

Unit testing is the logical continuation of modularizing code. Once you have broken the problem into smaller pieces or units, the next step is to test those units. To perform unit testing means that we will write tests that exercise each unit with a variety of inputs that will ensure that the code is correct. One emphasis of unit testing is that the tests need to be automatic. That is, we're not reading a list of test cases off of a piece of paper and running the code with each to verify that the results are as expected. Unit tests are code and are just as important as the code being tested (and as such should be checked into your version control system). Developers are familiar with automated unit testing, but the use of unit tests ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required