A Visual Studio Extension to run Catch unit tests within the Visual Studio TestExplorer.
Use the latest CatchTestAdapter.vsix.
- 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.
The Adapter is tested against the Solution in CatchUnitTestRef and the TestAdapterTest.
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>
- 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.