Qt Creator Google Test framework integration plugin [deprecated]
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
images
src
translation
util
.appveyor.yml
.gitattributes
.gitignore
.travis.yml
LICENSE.md
QtcGtest.json.in
README.md
paths.pri
qtc-gtest.pro
resources.qrc
uncrustify.cfg

README.md

Qt Creator Google Test Integration

Introduction

Plugin integrates some Google Test functionality into Qt Creator IDE.

Screen

Features

  • Parse test runner's output and show tests' results in pane
  • Launches tests from active project
  • Translation support

Usage

Parsing tests output

  1. Write google test application.
  2. Uncheck launch in terminal option in project's run configuration.
  3. Run application. Testing results will be represented in Google Test pane.

Running tests

  1. Write google test application.
  2. In Tools->Google Test menu select appropriate entry.
  3. Depending on chosen menu entry, plugin will generate run arguments for active project and launch it.

Note: Tests from changed files or current file will be run only if they belong to active project.

Downloads

Built plugin can be downloaded here or from github releases.

Installation

IMPORTANT: plugin's version must match Qt Creator's version (difference in last digit is acceptable)

From source

  1. Change paths.pri:
  • set QTCREATOR_SOURCES = path to Qt Creator source dir (with qtcreator.pro)
  • set IDE_BUILD_TREE = path to compiled Qt Creator dir (with bin,lib,libexec,...)
  1. Compile plugin.

From binaries

  1. Extract/copy files from archive into Qt Creator's dir (archive already contains proper paths).
  2. Enable plugin in Help->Modules menu.