/qtc-gtest

Qt Creator Google Test framework integration plugin [deprecated]

Primary LanguageC++MIT LicenseMIT

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.