Skip to content

GlacierW/Triangle

Repository files navigation

Software testing example with TDD problem: Triangle

#####
# File annotation
#####
1. gtest_main.cc:        main() entry point of google test
2. triangle.c:           target function to be tested
3. triangle_unittest.cc: test cases with google testing framework

#####
# Execute the specification-based testing
#####
1. make
2. ./gtest_triangle --gtest_filter=TriangleSpecTest.*

#####
# Execute the code-based testing & generate coverage report
#####
1. ./gtest_triangle --gtest_filter=TriangleCodeTest.CodeCoverage/(C0 | C1 | C2 | MCDC)/
2. gcov -b -c gtest_triangle.c
3. refer to the triangle.c.gcov for the detail report 

About

Software Testing for TDD Triangle Problem

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published