Skip to content

this is a template project with makefile to handle compile and running tests

Notifications You must be signed in to change notification settings

cui-liqiang/cpp_unit_test_template

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

cpp_unit_test_template

This is a template project with makefile to handle compiling, linking and running tests. This project is using gtest 1.6.0. All needed .a and .h files are included in this project. All you need to do is to write tests in format of "test/sample_test.cpp".

Edit the following section in Makefile to customize your own project:

SOURCE_PATH = <your source file path(including .cpp and .h)>
TEST_PATH = <your test source file path>
OUT_PATH = <file path to put .o, .d, and executables>

PROJECT = <your project name(your executable will be out/${PROJECT})>

Running "make all" to compile executables Running "make test" to compile and run tests

About

this is a template project with makefile to handle compile and running tests

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published