Week 9 Class 17 Thu Oct 23 Posted: Oct 23
Announcements
Midterm I posted scores and the graded exam in Brightspace Assignments.
I am solely responsible for grading the midterm. If you have any inquiries, feel free to email or visit during my office hours. I do not respond to exam-related queries in the classroom right before or after class.
Note: In the Final Exam, failure to answer the question in the designated place (Questions 4-10) will result in a score of 0 for that question.
Midterm General notes:
Professional CMake: A Practical Guide by Craig Scott is the best book on CMake for developers. Besides just covering the CMake features, it also has sections in each chapter with good practices and practical advice. One of the best books of its kind. It was a textbook for CPSC 489-010 T: DevOps in Spring 2024.
The first 5 chapters are a free download.
So take a look for any questions on cmake.
Exercise 37: Team Assert Tests
dotProduct()return in one of the preconditions and
execute the last return in the functionClass
Exercise 36: AddTest
I did not mention this, so I am extending the due date.
Fix the code so that both tests pass. Make sure to commit this separately.
Then, add another single unit test following the style and formatting of the previous unit tests.
Add the unit test to the single testfile testAdd.cpp. There is no need to create new files. If you did not add your test to the testAdd.cpp, do so now.
Make sure it passes all the tests before you commit.
A GitHub Classroom link for addTest is on Brightspace.
srcML Testing parser testfile, libsrcml testfile, client testfile
So three different parts of testing. But that is not all. There are tests to make sure the installers (Debian packages, rpm's, Windows installers) all work. And tests for any wrappers for libsrcml, e.g., pylibsrcml.
Exercise 38: Team Code Coverage
To replace the original Makefile with CMake, the repository has a pull request:

Accept it at GitHub:

If you have problems with this, let me know and I can accept the pull request for your team.
After the pull request is merged, you will have to git pull to see it in your repository clone.
As always with Team exercises, due by the end of class.
Unless stated otherwise, all exercises are due by 3 pm on Fri Oct 24