Skip to content

denleyhsiao/CppUnitLite

Repository files navigation

CppUnitLite

Build Status Code Climate Test Coverage MIT License

中文

Lightweight C++ unit test framework, is based on the original by Michael Feathers. See more.

Install

Require installed cmake

By brew

brew tap denleyhsiao/tap && brew install CppUnitLite

By source

  1. Download source: git clone https://github.com/denleyhsiao/CppUnitLite
  2. Modify configure: ccmake .
    • ENABLE_MEMORYLEAKWARN:Open or close memory leak warn check,default open
  3. Build & install
cmake .
make
make install
  1. Uninstall:cat install_manifest.txt | sudo xargs rm

Run

This is a unit test application based deque :DequeTest,and use CppUnitLite as unit test framework. It include follow files:

filename description
main.cpp main file
DequeTest.cpp unit test file with self-define SetUp/TearDown
DequeDefaultTest.cpp unit test file with default SetUp/TearDown
Deque.h/Deque.cpp deque define & implement file