In this lab you will get to make a test suite for a linked list class.
Today, it is your job to play testing engineer. You will be
writing tests that use the
List class the way it’s intended to
work. Then, you’ll run your tests to see if the
List actually works.
You may be wondering:
I dunno, dude! That’s your job to figure out. Good thing you know how to automate your testing.
You know the drill.
.gitignore file and add stuff you want to ignore.
You will lose points…
Makefile with (at least) the following targets:
testwhich compiles and runs a test suite
coveragewhich compiles the test suite and runs
gcovto determine code coverage
cleanwhich cleans up all generated output files
Feel free to borrow from the example
You should write unit tests to verify that the
List class in
project/ works like a linked list. If you find that the
doesn’t work as it should, be sure to repair it.
list.has your documentation. Write some tests that use the
Listtype and verify that the results are sane.
Listclass except the destructor and
Cell; it’ll get tested when you test
Some other tips:
Listshould work, be sure to ask!
Listcode is wrong
Listis wrong just because your test fails. Make sure your tests is right, too!
You will be graded on:
.gitignoreand absence of junk files.
Makefilefor the project
As always, your git repo on http://git-classes.mst.edu is your submission. Don’t forget to commit and push all relevant files. Make sure you see everything you expect on GitLab!
We expect to see the following files on your master branch:
Notice that your repository has a subdirectory! You have the
option to put one
.gitignore file at the root of your repo, or
.gitignore files in each directory if you prefer.