CSC/ECE 517 Fall 2023 - E2358. Refactor student quizzes controller.rb: Difference between revisions

From Expertiza_Wiki
Jump to navigation Jump to search
(Created page with "== Introduction == <nowiki>Student Quizzes are...</nowiki> ==New Files== #spec/controllers/student_quizzes_controller_spec.rb ==File Changes== #app/controllers/student_quizz...")
 
No edit summary
Line 1: Line 1:
== Introduction ==
== Introduction ==


<nowiki>Student Quizzes are...</nowiki>
<nowiki>Student Quizzes are quizzes students create after the submission of their assignment on Expertiza application. Student quizzes can consist of multiple answered checkbox questions, classic multiple choice questions and true false questions. The number of questions that can should be on the quiz is predetermined by the instructor when the assignment is created.
 
Unfortunately due to a decision that is made during Spring Semester 2023, quiz function is eliminated from Expertiza, the web portal was not functional. Nevertheless the existing code was refactored according to the previous comments and tests has been completed with Rspec.
</nowiki>


==New Files==
==New Files==

Revision as of 03:05, 30 October 2023

Introduction

Student Quizzes are quizzes students create after the submission of their assignment on Expertiza application. Student quizzes can consist of multiple answered checkbox questions, classic multiple choice questions and true false questions. The number of questions that can should be on the quiz is predetermined by the instructor when the assignment is created. Unfortunately due to a decision that is made during Spring Semester 2023, quiz function is eliminated from Expertiza, the web portal was not functional. Nevertheless the existing code was refactored according to the previous comments and tests has been completed with Rspec.

New Files

  1. spec/controllers/student_quizzes_controller_spec.rb

File Changes

  1. app/controllers/student_quizzes_controller.rb


Test Plan

Test plans did not exist for student_quizzes_controller.rb when we started the project. A test skeleton was created by Mustafa Olmez and integrated into the our work. The complete file can be found here:
https://github.com/expertiza/expertiza/pull/2656/files#diff-06772dc7cd41f4d09fb403ddcc22137ade6308cb87ec53d82bf7664300c4eef7
We found that a factory existed for student quizzes. Much of the work previously found in the quiz_factory was incorporated into the RSpec controller tests.

Modifications

Results

What do we make of this capture?

Team

Rain Bayraktar <ybbayrak@ncsu.edu>
Steve Easton <sleaston@ncsu.edu>
Scott Hardin <shardin2@ncsu.edu>

Pull Request

Changes for this project are under Expertiza Pull Request https://github.com/expertiza/expertiza/pull/2656