Skip to content

CoryM/gtest_template

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Google C++ Unit Test Framework (gtest) Template

This templates goal is to provide a quick means to start a project using GTest.

This template assumes GTest is already installed on a linux system. If it is not please refear to http://www.thebigblob.com/getting-started-with-google-test-on-ubuntu/

The files

  • build.sh - Bash script to build and run the source code in src/
  • test.sh - bash script to build and run the Google tests in gtest/
  • cleaup-all.sh - deletes the files in bin/build and bin/gtest

gtest/ - Source files for your google test

  • CMakeLists.txt - cmake script for making the makefile
  • runtests.cpp - the Google test enhanced test source code

src/ - source files for the normal build

  • CMakeLists.txt - cmake script for your normal build
  • main.cpp - Your normal source code
  • main.h - Your normal source code header file

bin/build/ - This is where your normal build goes

  • main - This is your normal build. This is created when you run build.sh
  • Report - This is your Google Test build. This is created when you run build.sh

bin/gtest/ - This is where the files go for a Google test run

  • runTests - This is your Google Test build. This is created when you run test.sh
  • Report.txt - This is the captured text from the build process and runTests

External Links

Google Unit testing wiki https://code.google.com/p/googletest/wiki/Documentation Good blog post by UBM on how to use gtest http://www.ibm.com/developerworks/aix/library/au-googletestingframework.html How to setup gtest on a ubuntu/debian system http://www.thebigblob.com/getting-started-with-google-test-on-ubuntu/

About

Google C++ Testing Framework Ubuntu Template

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published