TDycores-Project / TDycore

BSD 2-Clause "Simplified" License
4 stars 0 forks source link

Added requested features to CMocka-based unit testing approach. #178

Closed jeff-cohere closed 3 years ago

jeff-cohere commented 3 years ago

Now we support an initialization function which receives argc and argv with any test index argument stripped out. You can use this to stash argc and argv, initialize PETSc, etc.

Also, the run-tests target prints out a command for each failed test that allows a user to run that test.

(Also fixed a minor glitch in the mesh labels unit test.)

Closes #176

codecov-commenter commented 3 years ago

Codecov Report

Merging #178 (eeadf3c) into master (4387760) will not change coverage. The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master     #178   +/-   ##
=======================================
  Coverage   67.73%   67.73%           
=======================================
  Files           7        7           
  Lines        1221     1221           
=======================================
  Hits          827      827           
  Misses        394      394           

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update 4387760...eeadf3c. Read the comment docs.

jeff-cohere commented 3 years ago

@jedbrown , I think this is ready, and a step up from what's in there already.