Reference no: EM132218031
Programming Languages Project - Unit Testing of Grade Analysis classes & functions
Assignment: Write a non-trivial set of unit tests.
The assignment is to write a set of unit tests against a Grade Analysis utility library. The library contains classes and functions for computing grade distributions, DFW rates, etc. A working library is provided, along with a set of non-working libraries. Your job is to write a set of unit tests that correctly identifies the working and non-working libraries.
As you know, testing is hard. The idea of unit testing is to approach the problem of testing in a more rigorous fashion. The idea is to design software with testing in mind, and then spend the time and effort necessary to develop rigorous tests to run against that software. Developing a suite of test cases can take as much time as it takes to develop the software itself. The benefit of this effort is (a) more confidence in the software being built, and (b) the ability to rerun these test cases as the software evolves.
Before you start, expect to spend at least 5-10 hours working on this project. Writing test cases is hard, and the expectation is that you'll write at least 10-20 non-trivial test cases as part of this project. The effort will be worth it, because you'll use these test cases in projects.
Assignment Details -
Homework #01 had you read about the Catch testing framework, and write a couple test cases involving a Student class. In this assignment, you're going to write test cases against a more sophisticated set of classes and functions that perform grade analysis.
Programming environment: Codio
For this project (and future projects) we'll be using the Codio system purchased by the department (and currently free to you). We are in the process of testing Codio, and if we like it, plan to roll it out to all CS students in the Fall of 2019. Codio is cloud-based, and accessible via a web browser. It's platform-neutral and works from any platform, but you must be online to use it.
Attachment:- Assignment File.rar