https://github.com/denleyhsiao/cppunitlite
C plus plus unit test framework
https://github.com/denleyhsiao/cppunitlite
cpp-library cpp98 test-framework
Last synced: 7 months ago
JSON representation
C plus plus unit test framework
- Host: GitHub
- URL: https://github.com/denleyhsiao/cppunitlite
- Owner: denleyhsiao
- License: mit
- Created: 2012-10-19T12:20:55.000Z (about 13 years ago)
- Default Branch: master
- Last Pushed: 2021-10-04T07:08:00.000Z (about 4 years ago)
- Last Synced: 2025-04-03T09:12:24.028Z (9 months ago)
- Topics: cpp-library, cpp98, test-framework
- Language: C++
- Homepage:
- Size: 245 KB
- Stars: 4
- Watchers: 2
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# CppUnitLite
[![Build Status][travis_image]][travis_url]
[![Code Climate][codeclimate_image]][codeclimate_url]
[![Test Coverage][testcoverage_image]][testcoverage_url]
[![MIT License][license-image]][license-url]
[中文](README_cn.md)
Lightweight C++ unit test framework, is based on the original by Michael Feathers.
See [more](http://c2.com/cgi/wiki?CppUnitLite).
## Install
Require installed cmake
### By brew
```bash
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
```bash
cmake .
make
make install
```
4. 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|
[travis_image]: https://travis-ci.org/denleyhsiao/CppUnitLite.svg
[travis_url]: https://travis-ci.org/denleyhsiao/CppUnitLite
[codeclimate_image]: https://codeclimate.com/github/denleyhsiao/CppUnitLite/badges/issue_count.svg
[codeclimate_url]: https://codeclimate.com/github/denleyhsiao/CppUnitLite
[testcoverage_image]: https://codeclimate.com/github/denleyhsiao/CppUnitLite/badges/coverage.svg
[testcoverage_url]: https://codeclimate.com/github/denleyhsiao/CppUnitLite
[license-image]: http://img.shields.io/badge/license-MIT-blue.svg?style=flat
[license-url]: LICENSE