How to conditionally fail a build in a pull requests with TFS/VSTS

When your TFS/VSTS CI build is also used for a pull request, you often want to enable more checks before you let this go into the master (or any target) branch, and fail the build if these raise warnings. It can be extra tests you want to run, code quality checks,  process checks, and  you Continue Reading →

How to resolve cases of Visual Studio “No tests appearing”

The Visual Studio Test Explorer can be a bit picky about showing tests.  There are multiple reasons for why they don’t always show up when you expect them to do, and most of the cases are PEBKAC type of issues.  That doesn’t mean it is easy, there are just becoming too many variations, and Visual Continue Reading →

WrapThat.System : Wrappers for system.io to simplify unit testing

Introduction You have all seen it, you have all done it: Written code using the static methods from the System.IO namespace for handling directories and files.   Or, you are maintaining legacy code where that usage is common in certain places.  And now the code is huge,  you have no unit tests, because unit testing classes Continue Reading →

How to control the selection of test runner in TFS/VSTS, making it work with x86/x64 selected targets

When you do test runs with the Test Explorer in Visual Studio, you can select to use either a x86 or a x64 test runner.  Now, if you select to create an AnyCPU target for that component, it will not matter which one you choose, but if you select a target x86 or x64, the Continue Reading →