Skip to content

Visual Studio 2015 Test Adapter for the Unit Test Framework Catch

License

Notifications You must be signed in to change notification settings

OskiKervinen-MF/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.

<?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 Test Adapter for the Unit Test Framework Catch

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C++ 88.5%
  • C# 11.4%
  • C 0.1%