https://github.com/micst/ctestadapter
A Test Adapter for VisualStudio to run CTest tests
https://github.com/micst/ctestadapter
cmake ctest testing vsix
Last synced: 10 months ago
JSON representation
A Test Adapter for VisualStudio to run CTest tests
- Host: GitHub
- URL: https://github.com/micst/ctestadapter
- Owner: micst
- Created: 2017-12-18T12:52:43.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2018-03-10T12:13:11.000Z (over 8 years ago)
- Last Synced: 2025-05-06T22:31:47.159Z (about 1 year ago)
- Topics: cmake, ctest, testing, vsix
- Language: C#
- Homepage:
- Size: 168 KB
- Stars: 4
- Watchers: 2
- Forks: 1
- Open Issues: 7
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
Awesome Lists containing this project
README
# CTestAdapter
CTestAdapter is a Visual Studio Extension which provides a test adapter to run [kitware's CMake/CTest](http://cmake.org/) from the Visual Studio Test Explorer.
## Supported Visual Studio versions
Currently the following versions of Visual Studio are supported:
* Visual Studio 2012 (11)
* Visual Studio 2013 (12)
* Visual Studio 2015 (14)
* Visual Studio 2017 (15)
## Features
* Discovers all tests which are added to your software using `add_test()` in your CMake scripts.
* Discovers the correct CMake and CTest binary from the `CMakeCache.txt` in your solution directory.
* Control of test execution through Test Explorer Window
* Success or Fail based on Outcome of ctest run
* Shows console output of test if test fails
* Shows source line where test is executed in `CTestTestfile.cmake`
* Allows debugging of tests
* You need the **[Microsoft Child Process Debugging Power Tool](https://marketplace.visualstudio.com/items?itemName=GreggMiskelly.MicrosoftChildProcessDebuggingPowerTool)** from Gregg Miskelly for attaching to the child processes which are spawned by ctest

----
## Building
For information how to build, test and debug CTestAdapter see [BUILDING](BUILDING.md).
----
## Changelog
See the [CHANGELOG](CHANGELOG.md) for history information.
----
## Credits
While this project is a complete rewrite of the original [CTestTestAdapter](https://github.com/toeb/CTestTestAdapter)
from Tobias Becker, it is based on his initial proof of concept and wouldn't have been possible without his work.
----
The CMake logo belongs to kitware and is under the Creative Commons license.