Terje Sandstrom

Terje Sandstrom

Github and Azure DevOps specialist, Visual Studio Development Technologies MVP and NUnit core team member

Primary menu

  • Visual Studio
  • Extensions
  • NUnit
  • Git
  • How to Recipes
    • How to get some output from dotnet test
    • NUnit testing using the new project format
    • How to do .Net core setup for tests
    • How to get NUnit3TestAdapter pre-release packages
    • How to find/clear your Nuget caches
    • How to enable/disable user dumps
    • Fixing missing project.json error in old csproj format
  • Issues
    • MSB4011
  • Code
  • Azure DevOps
    • Azure DevOps
  • About

Category Archives: Unit Testing

How to extend the NUnit constraints

Posted on November 1, 2018 by terje — Leave a reply

NUnit has a very rich and readable constraint set.  Normally you don’t need to do anything. But, there are some cases where it would be nice to be able to tweak Continue Reading →

Posted in C#, NUnit, Unit Testing | Leave a reply

VSIX based Test Adapters to be deprecated in Visual Studio for C# and Visual Basic to speed up testing

Posted on July 8, 2018 by terje — Leave a reply

Test Adapters come in two flavors, VSIX based and Nuget based. The VSIX based are installed as extensions to Visual Studio and therefore will apply to all solutions you load, Continue Reading →

Posted in NUnit, Unit Testing, Visual Studio | Leave a reply

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

Posted on February 5, 2018 by terje — Leave a reply

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) Continue Reading →

Posted in Azure DevOps, Branching, Build, Pull Requests, Testing, Unit Testing, VSTS | Leave a reply

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

Posted on December 29, 2017 by terje — Leave a reply

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, Continue Reading →

Posted in IFix, NUnit, Unit Testing, Visual Studio | Leave a reply

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

Posted on April 22, 2017 by terje — Leave a reply

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 Continue Reading →

Posted in Code, NUnit, Unit Testing | Tagged WrapThat.System | Leave a reply

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

Posted on August 21, 2016 by terje — Leave a reply

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 Continue Reading →

Posted in Azure DevOps, Unit Testing, Visual Studio, VSTS | Leave a reply

Fix for the ‘Could not find test executor’ issue with NUnit, XUnit and Chutzpah when using ReSharper in Visual Studio

Posted on February 9, 2014 by terje — 1 Comment ↓

This issue is resolved in the latest ReSharper release, version 8.2.0.2160, download here.  The issue appears when using the Test Explorer to run tests in any of the frameworks mentioned Continue Reading →

Posted in Extensions, NUnit, Resharper, Unit Testing | 1 Comment ↓

How to exclude code from Code Coverage in Visual Studio unit testing using runsettings

Posted on December 4, 2013 by terje — 1 Comment ↓

Download:  VS2012 Runsettingstemplate   VS2013 Runsettingstemplate The VS2012/13 unit test feature can generate code coverage results.  It can do so for (nearly) any type of adapter you choose to use, MSTest, Continue Reading →

Posted in Code Coverage, Unit Testing, Visual Studio | 1 Comment ↓

Unit testing resources and articles for Visual Studio 2012 and 2013

Posted on September 20, 2013 by terje — Leave a reply

The last year I have written three blog posts for the Microsoft MSDN ALM blog on unit testing. The posts focused on the new test explorer with its abilities to Continue Reading →

Posted in Azure DevOps, Extensions, Unit Testing, Visual Studio, VSTS | Leave a reply

Subscribe to news

Loading

Notes

  • Nuget locations

    Caches On Windows:
    %LocalAppData%\NuGet\Cache
    %UserProfile%\.nuget\packages
    To clear: nuget locals all --clear
    Feed url: https://api.nuget.org/v3/index.json

    Docs

  • Test logging

    VSTest
    NUnitAdapter, use runsettings

    VSTest logs

  • Powershell policy

    From admin prompt:
    Start powershell:
    Set-ExecutionPolicy -ExecutionPolicy RemoteSigned

  • Dot net sdks

    https://www.microsoft.com/net/download/visual-studio-sdks

  • Avoid adding framework to outputpath in new csproj format

    Add this tag to the initial propertygroup
    AppendTargetFrameworkToOutputPath
    Set value to false

Categories

  • Azure (1)
  • Azure DevOps (17)
  • Azure Devops (2)
  • Bash (1)
  • Branching (2)
  • Build (4)
  • C# (4)
  • Code (5)
  • Code Coverage (1)
  • Code Quality (9)
    • Code Analysis (6)
  • Dependencies (1)
  • Extensions (9)
  • Git (11)
  • Github (2)
  • IFix (4)
  • Linux (1)
  • none (24)
  • NuGet (7)
  • NUnit (11)
  • Pull Requests (2)
  • Python (1)
  • Resharper (2)
  • Roslyn (1)
  • Testing (5)
  • Uncategorized (15)
  • Unit Testing (9)
  • Visual Studio (34)
  • VSTS (6)
  • Workitems (1)

Recent Posts

  • Starting up with C# and .Net Core
  • How to list git repositores under a common folder root
  • How to setup Azure CLI for use with Bash shell in Windows
  • Github Actions, including how to build .Net Framework projects
  • Debugging the NUnit3TestAdapter

Links

  • Visual Studio Developer Community
  • NUnit Test Adapter on github
  • Visual Studio Timeline
  • Visual Studio downloads
  • Visual Studio release notes
  • TFS 2017 release notes
  • TFS Feature overview
  • Uservoice: Visual Studio
  • User Voice: Team Services
  • Old Blog
  • Visual Studio Team Services (VSTS)
  • Team Foundation Server (TFS)
  • Visual Studio Devops
  • Visual Studio Learn Git
  • Converting TFSVC to Git
  • New Nuget
  • VSTS Build Custom conditions
  • Azure DevOps Test issue reporting sites
  • MS Developer Blogs
  • C++ FAQ

Archives

  • June 2020
  • December 2019
  • November 2019
  • June 2019
  • March 2019
  • February 2019
  • January 2019
  • November 2018
  • September 2018
  • August 2018
  • July 2018
  • June 2018
  • March 2018
  • February 2018
  • January 2018
  • December 2017
  • August 2017
  • April 2017
  • August 2016
  • June 2016
  • April 2016
  • January 2016
  • November 2014
  • September 2014
  • July 2014
  • June 2014
  • May 2014
  • February 2014
  • January 2014
  • December 2013
  • October 2013
  • September 2013
  • August 2013
  • April 2013
  • November 2012
  • August 2012
  • June 2012
  • May 2012
  • March 2012
  • November 2011
  • October 2011
  • August 2011
  • May 2011
  • April 2011
  • January 2011
  • December 2010
  • November 2010
  • October 2010
  • August 2010
  • June 2010
  • May 2010
  • April 2010
  • March 2010
  • February 2010
  • January 2010
  • October 2009
  • August 2009
  • July 2009
  • April 2009
  • March 2009
  • February 2009
  • December 2008
  • November 2008
  • October 2008

Social

  • View Terje.Sandstrom’s profile on Facebook
  • View OsirisTerje’s profile on Twitter
  • View terjesandstrom’s profile on LinkedIn
  • View OsirisTerje’s profile on GitHub

Recent Comments

  • MartinLeeSpoon on Recommended extensions for Visual Studio 2017
  • Martin Severin Steffensen on How to change test naming in Visual Studio using NUnit
  • Julien Couvreur on How to fix Visual studio loading errors, using IFix
  • Rob Prouse on How to fix Visual studio loading errors, using IFix
  • Josh on How to exclude code from Code Coverage in Visual Studio unit testing using runsettings

Meta

  • Log in
  • Entries feed
  • Comments feed
  • WordPress.org

RSS

  • RSS - Posts
Copyright © 2021 Terje Sandstrom All Rights Reserved.
Theme: Catch Evolution by Catch Themes