This is a template for Lab 9 with continuous integration testing set up in a GitHub Actions workflow. When you push code to this repository, it will automatically be compiled and ran through a set of test cases, and the results will be reported back to you. This should give you an opportunity to verify that your code is compiling and behaving as expected before you submit it.
If you click on the red X that currently appears to the right of the latest commit message in this repo and click on details, you will be taken to a log of the workflow that ran for that commit. This will report any errors during compilation of your project, and if compilation succeeded, all passing or failing test cases. From here you will be able to get a better idea of what is working in your code and what you still need to fix before you submit.
The test cases for this lab are contained in the folder named tests/tests.cpp
.
These are written with GoogleTest. The
test cases included in this repository at the start won't be enough to
guarantee your code works for our input file, so it may be a good idea to write
some of your own following the documentation at that link.
You shouldn't have to modify any of the files named CMakeLists.txt
. These are
used for building your project for the Github Action and running the tests.
Create a fork of this repository through GitHub then clone it locally and start working. To enable the Github Action workflow for googletest, you will have to go to the actions tab and click enable actions in your fork.