OSS E1852.rb: Difference between revisions

From Expertiza_Wiki
Jump to navigation Jump to search
(Created page with "This wiki page is for the description of changes made under E1852 OSS assignment for Fall 2018, CSC/ECE 517 == Background == Background Expertiza is an open source web-based pee...")
 
No edit summary
Line 2: Line 2:


== Background ==
== Background ==
Background
 
Expertiza is an open source web-based peer review system developed and maintained by students and faculty members at North Carolina State University. It enables students enrolled in a particular course to form online teams and complete assignments.
Expertiza is an open source web-based peer review system developed and maintained by students and faculty members at North Carolina State University. It enables students enrolled in a particular course to form online teams and complete assignments.


== Problem ==
== Problem ==
Participant model does not have any unit tests.
Participant model does not have any unit tests.


Line 16: Line 17:


=== Files Modified/Created ===
=== Files Modified/Created ===
* spec/models/particpant_spec.rb
* spec/models/particpant_spec.rb


== Unit Test Description ==
== Unit Test Description ==
Unit tests are used to test the functionality of methods in the model. there are two types of unit tests, Test Driven Development(TDD) and Behaviour Driven Development(BDD). BDD is preferred because of its simplicity. In this project, We are using RSpec for BDD.  
Unit tests are used to test the functionality of methods in the model. there are two types of unit tests, Test Driven Development(TDD) and Behaviour Driven Development(BDD). BDD is preferred because of its simplicity. In this project, We are using RSpec for BDD.  


doubt ? do i have to write more about RSpec????
doubt ? do I have to write more about RSpec????


== Participant Unit Test ==
== Participant Unit Test ==
Line 29: Line 32:
== Running the Tests ==
== Running the Tests ==


// steps to run//
To run the test run below command in terminal
<pre>
rspec spec/models/participant_spec.rb
</pre>


== External links ==
== External links ==
//git hub link//
 
* https://github.com/carmenbentley/expertiza


== External links ==
== External links ==
References
References

Revision as of 17:18, 27 October 2018

This wiki page is for the description of changes made under E1852 OSS assignment for Fall 2018, CSC/ECE 517

Background

Expertiza is an open source web-based peer review system developed and maintained by students and faculty members at North Carolina State University. It enables students enrolled in a particular course to form online teams and complete assignments.

Problem

Participant model does not have any unit tests.


Work to be done

  • Write unit test using Rspec
  • Achieve path coverage more than 90%

Files Modified/Created

  • spec/models/particpant_spec.rb

Unit Test Description

Unit tests are used to test the functionality of methods in the model. there are two types of unit tests, Test Driven Development(TDD) and Behaviour Driven Development(BDD). BDD is preferred because of its simplicity. In this project, We are using RSpec for BDD.

doubt ? do I have to write more about RSpec????

Participant Unit Test

//here we write code and its working //

Running the Tests

To run the test run below command in terminal

 rspec spec/models/participant_spec.rb

External links

External links

References