Skip to content

Starter Template C and C++ with Unit Testing, Functional Testing, and Line Coverage

License

Notifications You must be signed in to change notification settings

pocket-98/makefile

Repository files navigation

makefile

Starter Template C and C++ with Unit Testing, Functional Testing, and Line Coverage

usage:

  • make: build a.out
  • make test: build a.out-test using test/main.cpp
  • make cov: recompile with -fprofile-arcs a.out-cov using test/main.cpp

other useful things:

  • test/test.hpp macros for asserting if vars are equal
  • test_fn/test_file.py runs a command and gets stdout/stderr/retcode
  • test_fn/main.py pretty print exp/actual diff with colors for each test

screens: test cov vars

About

Starter Template C and C++ with Unit Testing, Functional Testing, and Line Coverage

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published