CSC/ECE 517 Fall 2021 - E2132. Add tests cases for review mapping helper.rb: Difference between revisions
No edit summary |
No edit summary |
||
Line 39: | Line 39: | ||
This method checks the response record if the assignment is submitted on time, that is, before due date. Setting up two submissions on two different due date, so in the unit test there would be four situations to discuss. If all the works are submitted on time, the response is expected to be true. Otherwise, the response depends on the last submission's status. | This method checks the response record if the assignment is submitted on time, that is, before due date. Setting up two submissions on two different due date, so in the unit test there would be four situations to discuss. If all the works are submitted on time, the response is expected to be true. Otherwise, the response depends on the last submission's status. | ||
<pre> | |||
</pre> | |||
=== submitted_within_round? === | === submitted_within_round? === | ||
This method checks the response record if the assignment is submitted on time, that is, before due date. Setting up two submissions on two different due date, so in the unit test there would be four situations to discuss. If all the works are submitted on time, the response is expected to be true. Otherwise, the response depends on the last submission's status. | This method checks the response record if the assignment is submitted on time, that is, before due date. Setting up two submissions on two different due date, so in the unit test there would be four situations to discuss. If all the works are submitted on time, the response is expected to be true. Otherwise, the response depends on the last submission's status. | ||
<pre> | |||
</pre | |||
=== submitted_hyperlink === | === submitted_hyperlink === | ||
Line 49: | Line 55: | ||
This method reports the hyperlink that is submitted on time. For multiple assignments, no matter how many assignments are submitted on time, it shows the hyperlink of the last on-time submission. | This method reports the hyperlink that is submitted on time. For multiple assignments, no matter how many assignments are submitted on time, it shows the hyperlink of the last on-time submission. | ||
<pre> | |||
</pre | |||
=== get_team_reviewed_link_name === | === get_team_reviewed_link_name === | ||
<pre> | |||
</pre |
Revision as of 20:27, 15 October 2021
About Expertiza
Expertiza is an open source project based on Ruby on Rails framework that supports submission across different document types, including theURLs and wiki pages. It allows the instructor not only to create and customize new or existing assignments but also to create a list of topics the students can sign up for. Students can form teams in Expertiza to work on various projects and assignments. Students can also peer review other students' submissions.
Description about project
This page is a description of Expertiza OSS project E2132 which is adding unit tests for review_mapping_helper.rb. The ReviewMappingHelper works as a class that is responsible for mapping reviews and feedback to assignment teams and reviewers. Also, This helper class reports of the status of project reviews.
Team
Chen-Ni Liu (cliu43) Shao-Yo Chao (schao2) Fu-Jen Yen (fyen)
Files Involved
review_mapping_helper.rb
review_mapping_helper_spec.rb
Running Tests
rspec spec/helpers/review_mapping_helper_spec.rb
Relevant Methods
- response_for_each_round?
- submitted_within_round?
- submitted_hyperlink
- get_team_reviewed_link_name
- sort_reviewer_by_review_volume_desc
- list_review_submission
- list_hyperlink_submission
- get_certain_review_and_feedback_response_map
- get_css_style_for_calibration_report
response_for_each_round?
This method checks the response record if the assignment is submitted on time, that is, before due date. Setting up two submissions on two different due date, so in the unit test there would be four situations to discuss. If all the works are submitted on time, the response is expected to be true. Otherwise, the response depends on the last submission's status.
submitted_within_round?
This method checks the response record if the assignment is submitted on time, that is, before due date. Setting up two submissions on two different due date, so in the unit test there would be four situations to discuss. If all the works are submitted on time, the response is expected to be true. Otherwise, the response depends on the last submission's status.
</presubmitted_hyperlink
This method reports the hyperlink that is submitted on time. For multiple assignments, no matter how many assignments are submitted on time, it shows the hyperlink of the last on-time submission.</preget_team_reviewed_link_name
</pre