CSC/ECE 517 Spring 2018/E1814 Write unit tests for collusion cycle.rb
Introduction
Background
Expertiza is an open source project that can be used by instructors to create assignments and assign them to students. Students can manage teams for the assignment and submit work for each of the assignments. After the students have submitted their work they can review other student's work to facilitate grading. The project is based on the Ruby on Rails framework.
Motivation
Achieving good coverage with quality tests is part of a good development process. The collusion_cycle.rb class is used to calculate the grade received based on the reviews from other students as well as handle cases where the reviewer is also reviewed by the reviewee effectively creating a cycle. We want to test this class to achieve good coverage in order to catch possible bugs in the program and ensure that it works correctly.
Tasks Identified
- Test Two Node Cycle
- Test Three Node Cycle
- Test Four Node Cycle
- Test Cycle Similarity Score
- Test Cycle Deviation Score
Classes
app/models/collusion_cycle.rb\n spec/models/collusion_cycle_spec.rb
Writing the collusion Cycle Tests
Describe other tasks here
Changes To the View
None
Impact Analysis
-Should put expected impact since we do not know exactly
-Increase coverage -We have already found one bug
Affected Classes
-THink this is already covered, will discuss what needs to go here later.
Running the Project locally
-Add instructions on how to get it running locally
Running the Test Files
-Instructions on how to run the test files. (This could possibly be collapsed in the previous section)