djeedjay/BoostTestUi
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
master
Could not load branches
Nothing to show
Could not load tags
Nothing to show
{{ refName }}
default
Name already in use
A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code
-
Clone
Use Git or checkout with SVN using the web URL.
Work fast with our official CLI. Learn more.
- Open with GitHub Desktop
- Download ZIP
Sign In Required
Please sign in to use Codespaces.
Launching GitHub Desktop
If nothing happens, download GitHub Desktop and try again.
Launching GitHub Desktop
If nothing happens, download GitHub Desktop and try again.
Launching Xcode
If nothing happens, download Xcode and try again.
Launching Visual Studio Code
Your codespace will open once ready.
There was a problem preparing your codespace, please try again.
Latest commit
Git stats
Files
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
BoostTestUi ~~~~~~~~~~~ BoostTestUi provides a Windows gui runner for boost.test and google test based unit test executables. How to build ------------ This is a Visual Studio 2010 project with the following dependencies: - boost 1.43 or later - WTL 9.0 or later - gtest 1.6.0 or later (only required for the GTestSample sample unit test) - Catch 1.5.8 or later These libraries must be installed in Libraries. All projects should now build. Boost.test support ------------------ In your unit test, replace <boost/test/unit_test.hpp> with <boost/test/unit_test_gui.hpp>: #define BOOST_TEST_MODULE Exe TestRunner Test #include <boost/test/unit_test_gui.hpp> BOOST_AUTO_TEST_CASE(MyTest) { ... } You can also provide your own init_unit_test_suite() initialization function by omitting BOOST_TEST_MODULE, as usual. Google test support ------------------- In your unit test, replace #include <gtest/gtest.h> with <gtest/gtest-gui.h>: #include <gtest/gtest-gui.h> TEST(MyTest, MyTestCase) { ... } Then add InitGoogleTestGui() to your main function body like this: int main(int argc, char* argv[]) { testing::InitGoogleTest(&argc, argv); testing::InitGoogleTestGui(&argc, argv); return RUN_ALL_TESTS(); } BoostTestUi ----------- Run BoostTestUi.exe and open a unit test executable that was build with the gui header included. The appropriate header can be generated from the File -> Create Header menu. Store it preferably in a sub folder named "boost/test" or "gtest" in one of your include directories. Now select Run from the toolbar or the test tree context menu to run the tests. Gert-Jan de Vos mailto:boosttestui@on.nl
About
GUI runner for boost.test
Resources
License
Stars
Watchers
Forks
Packages 0
No packages published