CSC/CSC 517 Fall 2016/oss E1667: Difference between revisions
(Created page with "{{student sandbox}} ==About Expertiza== [http://expertiza.ncsu.edu/ Expertiza] is an open source application developed on the [http://rubyonrails.org/ Ruby on Rails] framework. I...") |
(No difference)
|
Revision as of 17:44, 28 October 2016
About Expertiza
Expertiza is an open source application developed on the Ruby on Rails framework. It allows instructors to create assignments, set deadlines and give grades to the assignments. In this application, students can submit their assignments by providing links to their sites or repositories or upload files and folders. The students can also review assignments submitted by their peers.
Problem Statement
Goal: The aim of the project was to write a feature test that mocks the Heat Map that a student views for an assignment of his. The following tasks were performed to accomplish the goal:
- Understanding the flow of the creation of Assignment by instructor.
- Understanding the flow of the submission of an assignment by a student and then the flow of submitting reviews to an assignment uploaded by a student.
- Understanding the flow of viewing the Heat Map related to an assignment by a student.
- Mock the above steps using capybara.
Project Links
- Github repo Github repo
- [ Expertiza pull request]
- [ Youtube video manual]
Instructions for Reviewer
Clone the reopsitory
git clone (repository URL)
Repository URL can be found by visiting this Github repo.
Installing Gems (ruby dependencies)
Go to your cloned expertiza directory in terminal and run the following command:
bundle install
Setting up the databses
- Go to your cloned expertiza directory and run the following command to create the development and test databases.
rake db:create:all
- If available, import the database dump that you received in class to pre-populate your database. eg:
mysql -u root expertiza_development < expertiza-scrubbed.sql
- Run the Expertiza database migrations. This should populate your database with the current tables of the schema.
rake db:migrate
Running the tests
- Go to your cloned expertiza directory and run the following command for the tests:
rspec spec/features/heat_map_spec.rb
Note : Travis CI build fails because we are directly using the development database for our tests, thus Travis CI is not able to locate the login information. This was done because it was not possible to create factories or fixtures for our tests. So, please don’t consider the build failure in the pull request to be a valid error.