Session 10: Unit testing
Resources
Zoom meeting link for today's session is available in the Bookmarks on the course Slack channel.
To create the starter repository for today's session please click hereLink opens in a new window
Programme
Unit Testing with GoogleTestLink opens in a new window |
We introduce unit testing to check that our functions produce the correct output for a given input. The monolithic mpags-cipher executable is first split into a main program and implementation library using CMake to enable the implementation to be tested. The walkthrough continues with using CMake together with the GoogleTest unit testing framework to write and run tests for mpags-cipher. |