Skip to content

nathanesau/GTest

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GTest

GTest example using CMake.

Docker

docker run --rm -it -v "D:/GTest":/app docker.pkg.github.com/nathanesau/docker-qt/qt-static:1.0
apt-get -y install libgtest-dev

# build and run tests
cd /app && mkdir build && cd build && cmake .. && make && test/tests

Ubuntu 20.04

mkdir build
cd build
cmake ..
make

# run binary
src/stats

# run tests
test/tests

Windows

mkdir build
cd build
cmake ..
make

# run binary
"src/Debug/stats.exe"

# NOTE: tests aren't compiled on windows

About

Just a simple test of the google C++ unit test framework (GTest)

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages

  • C++ 50.6%
  • CMake 45.3%
  • C 4.1%