Unit Testing: Test Adapter for Boost.Test goes in-box!

Nick Uhlenhuth

If you’re just getting started and want to learn more about C++ Unit Testing, check out our tutorial. 

We’re back at it again with the built-in unit test framework support! Last week we announced Visual Studio is shipping with Google Test support. This week, we are excited to reveal that Visual Studio now ships with Boost.Test support. As of Visual Studio 2017 15.5 Preview 3, you can write, discover, and run all of your Boost.Test unit tests using Visual Studio’s testing tools right out of the box.

 New installations of Visual Studio will install Boost.Test by default; however, if you are upgrading from a previous version, you will need to open “Visual Studio Installer”, click “Modify” on your Visual Studio 15.5 instance, and select “Test Adapter for Boost.Test” under “Desktop development with C++”(shown below).

 Note: If you previously installed our “Test Adapter for Boost.Test” extension from the VS Marketplace, you should uninstall it before using this updated adapter.

Once installed, you can build your Boost.Test project, and Visual Studio will automatically detect your unit tests and populate the Test Explorer Window. If you don’t see the Test Explorer Window, simply add it by going to Test > Windows > Test Explorer. For more details on using Boost.Test in Visual Studio, check out our previous blog post.


 Talk to us 

We are always working to give you the best development experiences possible. Let us know what you would like to see next. If you come across any issues, please file them on the Test Adapter for Boost.Test GitHub.



Posted in C++


Discussion is closed.

Feedback usabilla icon