项目作者: denleyhsiao

项目描述 :
C plus plus unit test framework
高级语言: C++
项目地址: git://github.com/denleyhsiao/CppUnitLite.git
创建时间: 2012-10-19T12:20:55Z
项目社区:https://github.com/denleyhsiao/CppUnitLite

开源协议:MIT License

下载


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

  1. 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
  1. cmake .
  2. make
  3. 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