/conan-fakeit

Conan package for FakeIt C++ mocking framework

Primary LanguagePythonMIT LicenseMIT

conan-fakeit

Bintray Travis(develop) Travis(latest stable)
Download Build Status Build Status

Conan.io package for FakeIt

FakeIt is a simple mocking framework for C++. It supports GCC, Clang and MS Visual C++.

Build and test the package

Install the Conan package manager and the Conan package tools with pip

$ pip install conan

Then build and test the package with

$ conan create . <reference>

Using the package

Installation

You can manually install this package to your local cache by running

$ conan install --options integration=standalone FakeIt/<version>@gasuketsu/stable

If you handle multiple dependencies in your project it's better to add a conanfile.txt

[requires]
FakeIt/<version>@gasuketsu/stable

[options]
FakeIt:integration=standalone

[generators]
cmake

Then you can install all requirements for your project by running

$ conan install .

For further information on how to use Conan packages see the Conan documentation

Options

integration

FakeIt can be pre-configured to work with some of the major unit testing frameworks. A pre-configured version will use the assertions mechanism of the unit testing framework to integrate the generated error messages into the unit testing framework output.

The following frameworks are supported:

  • Boost Test using FakeIt:integration=boost
  • Catch using FakeIt:integration=catch
  • Google Test using FakeIt:integration=gtest
  • mettle using FakeIt:integration=mettle
  • MSTest using FakeIt:integration=mstest
  • QTest using FakeIt:integration=qtest
  • tpunit++ using FakeIt:integration=tpunit
  • NUnit using FakeIt:integration=nunit

By default FakeIt is configured without any framework integration using FakeIt:integration=standalone.