Giter Site home page Giter Site logo

nholthaus / gtest-runner Goto Github PK

View Code? Open in Web Editor NEW
271.0 17.0 71.0 2.65 MB

A cross-platform, Qt5 based Graphical User Interface for Google Test unit tests

License: MIT License

C++ 95.70% Batchfile 0.07% C 0.11% CMake 4.12%
google-test graphical-user-interface dark-theme qt5 cross-platform cpp

gtest-runner's Introduction

gtest-runner

Build Status Build Status license copyright language c++ Qt
msvc2013 msvc2015 gcc-4.9.3 gcc-5.4.0

A Qt5 based automated test-runner and Graphical User Interface for Google Test unit tests

Table of Contents

Light Theme

Light Theme Screenshot

Dark Theme

Dark Theme Screenshot

Features

gtest-runner is an automated test runner that will ensure you are always looking at the latest test results, whenever you build a gtest executable. Check the features guide to see what else gtest-runner is capable of.

Supported Platforms

To date, gtest-runner has been tested on:

  • Windows 10/7
  • Ubuntu 16.04/15.10/14.04
  • CentOS 7

Installers

Windows

Visit the Latest release page for binary installers.

Since version 1.1.2, all Windows binaries are signed.

Ubuntu

Binary packages are available through the gtest-runner PPA for many versions of Ubuntu. To install gtest-runner via the PPA, type the following commands:

sudo add-apt-repository ppa:nholthaus/gtest-runner
sudo apt-get update
sudo apt-get install gtest-runner

Of course, you can also build gtest-runner from source.

Other Linux Distributions

Please see the instructions on how to build gtest-runner from source.

Build Instructions

See the Build Instructions for information on how to build gtest-runner from source on your platform.

gtest-runner's People

Contributors

aedrax avatar apeltauer avatar cmccambridge avatar gammasoft71 avatar nholthaus avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

gtest-runner's Issues

Option to clear console each run

The manual "Clear" functionalty on the Console window works great, but it would be great to have an option to automatically clear the console output window each time a test is run.

Appreciate this great project!

Test case selection should persist across test runs

Currently, any selected test case becomes de-selected if a test is rebuilt/rerun, which can be annoying if you are trying to watch a specific case or value. Change the code so that the case is re-selected after a test run if it is still valid.

Reduce failure selection to just the file and line number

Currently, when using the next/prev failure buttons, the entire failure text is selected, from the [ RUN ] to the [ FAILED ] statement. Instead, only the file/line number should be selected, which would be consistent with the selections when a failure is clicked on in the failure dock.

kill test context menu action

Add an action to the executable context menu to kill a running test. The action should prompt the user for confirmation, and be disabled if no test is running.

SEH exceptions are not parsed properly

<failure message="unknown file&#x0A;SEH exception with code 0xc0000005 thrown in the test body." type="">
    <![CDATA[unknown file SEH exception with code 0xc0000005 thrown in the test body.]]>
</failure>

Debug/Release labels for Visual Studio generated tests

On windows, when developing with Visual Studio it's plausible that a user will want to look at both Debug and Release tests in the same instance. Since they both have the same executable base-name, they'd wind up with the same name in the dock.

The current work-around is to hover over the test until the path tool-tip pops up, but it might be nice if the configuration showed up with the test name without the need to hover.

Tests can not run in gtest runner

I try to run a gtest project in gtest runner.but nothing happened.No logs and errors.
Is there any demo project can help?

main.cpp:

#include "stdafx.h"
#include "gtest\gtest.h"
#include "Test.h"

int main(int argc, _TCHAR* argv[])
{
testing::InitGoogleTest(&argc, argv);
return RUN_ALL_TESTS();
}
Test.cpp:

#include "stdafx.h"
#include "Test.h"

TEST(Test, Success)
{
EXPECT_EQ(0, 0);
}

TEST(Test, Failure)
{
EXPECT_EQ(0, 2);
}

Per-test advanced configuration

Need button/dialog that allow setting the GTest command line options on a per test basis. Supported items:

  • gtest_filter
  • gtest_also_run_disabled_tests
  • gtest_repeat
  • gtest_shuffle
  • gtest_random_seed

right click on test -> run test

Is it possible to add "run test" for specific test from the test list window ?

The same option for test group will be great.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.