Skip to content

Visual Studio 2015/2017 Test Adapter for the Unit Test Framework Catch

License

Notifications You must be signed in to change notification settings

vvuk/CatchTestAdapter

 
 

Repository files navigation

CatchTestAdapter

A Visual Studio Extension to run Catch unit tests within the Visual Studio TestExplorer.

Installation

Use the latest CatchTestAdapter.vsix.

Status

  • Test cases are shown after discovery process.
  • Test result are shown.
  • Stack trace link to the source line works now.
  • Section
  • BDD Scenario
  • Traits
  • Tested with Visual Studio Community 2017.

Test

The Adapter is tested against the Solution in CatchUnitTestRef and the TestAdapterTest.

Settings

You can configure the adapter by adding a CatchAdapter element to your .runsettings file. If you do not manually set a runsettings file from the Test menu in Visual Studio, this adapter will look for *.runsettings files from the solution directory and all its ancestors. Settings closer to the solution take precedence, lists are merged.

<?xml version="1.0" encoding="utf-8"?>
<RunSettings>
  <!-- Catch adapter -->
  <CatchAdapter>
    <!-- Regexes one of which must match an executable's name
         for tests to be searched from it. -->
    <TestExeInclude>
      <Regex>.*\.Test\.exe</Regex>
    </TestExeInclude>
    <!-- If one of these regexes matches, the exe is excluded
         even if it matches an include. -->
    <TestExeExclude>
      <Regex>Cheese</Regex>
    </TestExeExclude>
  </CatchAdapter>
</RunSettings>

TODO

  • More tests in ReferenceCatchProject (may be combined with the CatchUnitTestRef test repo).
  • Test with VS2015.
  • May be an option page to set some Catch test runner arguments.

About

Visual Studio 2015/2017 Test Adapter for the Unit Test Framework Catch

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • C++ 86.7%
  • C# 13.2%
  • C 0.1%