Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is there a graphical test runner for "Google Test" ( gtest ) for windows? [closed]

Tags:

c++

googletest

Seems a great C++ unit testing framework. I'm just wanting something a bit more sophisticated than the console output for running the test, also something that makes it really easy to run specific tests (since gtest supports all kinds of test filtering)

If there is nothing, I'll probably roll my own

like image 527
Keith Nicholas Avatar asked Nov 17 '08 21:11

Keith Nicholas


People also ask

How do I run a Gtest in Windows?

Add a Google Test project in Visual Studio 2022In Solution Explorer, right-click on the solution node and choose Add > New Project. Set Language to C++ and type test in the search box. From the results list, choose Google Test Project.

How do I skip a Gtest test?

The docs for Google Test 1.7 suggest: If you have a broken test that you cannot fix right away, you can add the DISABLED_ prefix to its name. This will exclude it from execution. This is better than commenting out the code or using #if 0 , as disabled tests are still compiled (and thus won't rot).

Does Gtest run tests in parallel?

gtest-parallel is a script that executes Google Test binaries in parallel, providing good speedup for single-threaded tests (on multi-core machines) and tests that do not run at 100% CPU (on single- or multi-core machines).


1 Answers

I opened a google code project that adds UI to google test. Runs on both Windows and Unix. It is not a plugin to any IDE by design - I did not want to tie myself. Instead you open it in the background and press the "Go" button whenever you want to run.

As of this writing V1.2.1 is out and you are invited to give it a try.

https://github.com/ospector/gtest-gbar

like image 150
Omri Spector Avatar answered Sep 21 '22 18:09

Omri Spector