cpp icon indicating copy to clipboard operation
cpp copied to clipboard

Reccomend Catch integrations with popular IDEs on Running Tests page

Open kevlhw opened this issue 8 years ago • 3 comments

If the cpp track will be sticking with Boost for unit testing, it may be worth mentioning on the Running the Tests page that there are addons for many popular cpp environments to support boost in a friendlier way.

For example:

If you're developing with a common IDE like Visual Studio, you may wish you install plugins for Boost Testing, if available, that can make unit testing a little friendlier. Here are a few examples for Visual Studio 2017, and Visual Studio 2015.

Note that I've only tried the one for 2017. This could be kept as a VS-only note, or try to find similar addons for other popular IDEs if they need it.

kevlhw avatar Nov 09 '17 19:11 kevlhw

The C++ track just switched to using Catch, but I believe there are also IDE integrations for running those tests.

LegalizeAdulthood avatar Nov 10 '17 17:11 LegalizeAdulthood

I've updated the title, I think this is a good improvement to the docs. Many IDE's also have support for Catch, I know CLion does at least - https://blog.jetbrains.com/clion/2017/03/to-catch-a-clion/

Visual Studio I believe does as well, but I'm not entirely sure if it's native or a plugin.

arcuru avatar Apr 20 '19 14:04 arcuru

VS Code Catch plugins:

Place catch2TestExplorer.executables: "./build/*" somewhere in your settings.json file. Currently mine is set to:

        "catch2TestExplorer.executables": {
        "name": "${filename}_tests",
        "pattern": "./build/*",
        "cwd": "${absDirpath}"
        },

CDEguia avatar Sep 01 '19 00:09 CDEguia