Skip to content

Latest commit

 

History

History
46 lines (38 loc) · 1.46 KB

README.md

File metadata and controls

46 lines (38 loc) · 1.46 KB

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.