<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.expertiza.ncsu.edu/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Brbhatt</id>
	<title>Expertiza_Wiki - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.expertiza.ncsu.edu/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Brbhatt"/>
	<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=Special:Contributions/Brbhatt"/>
	<updated>2026-06-30T22:40:19Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.41.0</generator>
	<entry>
		<id>https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Spring_2022_-_E2211:_Testing_for_summary_helper&amp;diff=143604</id>
		<title>CSC/ECE 517 Spring 2022 - E2211: Testing for summary helper</title>
		<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Spring_2022_-_E2211:_Testing_for_summary_helper&amp;diff=143604"/>
		<updated>2022-03-27T19:52:25Z</updated>

		<summary type="html">&lt;p&gt;Brbhatt: /* Test Execution */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== About Expertiza==&lt;br /&gt;
&lt;br /&gt;
[http://expertiza.ncsu.edu/ Expertiza] is the software benefits for both instructors and students by supporting various types of submissions and providing reusable objects for peer review. It is an open-source project based on [http://rubyonrails.org/ Ruby on Rails] framework. It allows the instructors 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 to work on various projects and assignments. Expertiza also lets students peer-review other students' submissions, enabling them to work together to improve others' learning experiences.&lt;br /&gt;
&lt;br /&gt;
== Description about project ==&lt;br /&gt;
This page is a description of Expertiza OSS project E2211 which is testing for summary_helper.rb &lt;br /&gt;
&lt;br /&gt;
=== Mentor ===&lt;br /&gt;
&lt;br /&gt;
* Vinay Deshmukh&lt;br /&gt;
&lt;br /&gt;
=== Team Members ===&lt;br /&gt;
&lt;br /&gt;
* Saswat Priyadarshan&lt;br /&gt;
* Rachel Son&lt;br /&gt;
* Bhuwan Bhatt&lt;br /&gt;
=== Files Involved ===&lt;br /&gt;
&lt;br /&gt;
* summary_helper.rb&lt;br /&gt;
* summary_helper_spec.rb&lt;br /&gt;
&lt;br /&gt;
=== Running Tests ===&lt;br /&gt;
To successfully run summary_helper_test in local machine, please run the redis server first, then run rspec. &lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
  redis-server&lt;br /&gt;
  rspec ./spec/helper/summary_helper_spec.rb&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Requirement ===&lt;br /&gt;
&lt;br /&gt;
summary_helper class had methods which were not tested. Our job was to test all the methods so that we can verify summary_helper class is working fine.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Test Plan ===&lt;br /&gt;
&lt;br /&gt;
After going through all the methods in the class, we figured out there were some methods that were never being called. So, we removed all the redundant methods that are not being called. Now we had only 9 methods in the class that we need to test. Nine methods in summary_helper class that needed to be tested were:-&lt;br /&gt;
* summarize_reviews_by_reviewee&lt;br /&gt;
* summarize_reviews_by_reviewee_question&lt;br /&gt;
* get_max_score_for_question&lt;br /&gt;
* summarize_sentences&lt;br /&gt;
* get_sentences&lt;br /&gt;
   To test this method we mocked an answer object and checked if number sentences are equal to number of comments provided in the answer.&lt;br /&gt;
 &lt;br /&gt;
Code Snippet:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
 describe '#get_sentences' do&lt;br /&gt;
    context 'when the answer is nil' do&lt;br /&gt;
      it 'returns a nil object' do&lt;br /&gt;
        expect(@summary.get_sentences(nil)).to eq(nil)&lt;br /&gt;
      end&lt;br /&gt;
    end&lt;br /&gt;
    context 'when the comment is two sentences' do&lt;br /&gt;
      it 'returns an array of two sentences' do&lt;br /&gt;
        sentences = @summary.get_sentences(answer)&lt;br /&gt;
        expect(sentences.length).to be(2)&lt;br /&gt;
      end&lt;br /&gt;
    end&lt;br /&gt;
  end&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
* break_up_comments_to_sentences&lt;br /&gt;
   This methods question answer array and breaks them into comments. &lt;br /&gt;
   In our testing we provided the question_answer array of length 2 and see if the number of comments is equal to 2.&lt;br /&gt;
Code Snippet:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
     describe '#break_up_comments_to_sentences' do&lt;br /&gt;
    context 'when the question_answers is not nil' do&lt;br /&gt;
      it 'add the comment to an array to be converted as a json request' do&lt;br /&gt;
        comments = @summary.break_up_comments_to_sentences([answer])&lt;br /&gt;
        expect(comments.length).to be(2)&lt;br /&gt;
      end&lt;br /&gt;
    end&lt;br /&gt;
    context 'when the question_answers is nil' do&lt;br /&gt;
      it 'returns an empty array' do&lt;br /&gt;
        comments = @summary.break_up_comments_to_sentences([])&lt;br /&gt;
        expect(comments.length).to be(0)&lt;br /&gt;
      end&lt;br /&gt;
    end&lt;br /&gt;
  end&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
* calculate_avg_score_by_criterion&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
    context 'when q_max_score = 0' do&lt;br /&gt;
      it 'gives pure question_score' do&lt;br /&gt;
        expect(@summary.calculate_avg_score_by_criterion([answer,answer1], 0)).to eq(3.0)&lt;br /&gt;
      end&lt;br /&gt;
    end&lt;br /&gt;
  end&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
* calculate_round_score&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
  describe '#calculate_round_score' do&lt;br /&gt;
   context 'when criteria not available' do&lt;br /&gt;
     it 'returns 0.0 since round_score = 0.0' do&lt;br /&gt;
       expect(@summary.calculate_round_score(avg_scores_by_criterion, nil)).to eq(0.to_f)&lt;br /&gt;
     end&lt;br /&gt;
   end&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
   context 'when criteria not nil' do&lt;br /&gt;
     it 'get 2 round_score  ' do&lt;br /&gt;
       expect(@summary.calculate_round_score(avg_scores_by_criterion, question)).to be_within(0.01).of(2.345)&lt;br /&gt;
     end&lt;br /&gt;
   end&lt;br /&gt;
 end&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* calculate_avg_score_by_round&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
  describe '#calculate_avg_score_by_round'do&lt;br /&gt;
   context 'when avg_scores_by_criterion available' do&lt;br /&gt;
     it 'gives 2 round value' do&lt;br /&gt;
       expect(@summary.calculate_avg_score_by_round(avg_scores_by_criterion, question)).to eq(2.35)&lt;br /&gt;
     end&lt;br /&gt;
   end&lt;br /&gt;
  end&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Test Execution ===&lt;br /&gt;
We divided the work among the teammates and started tackling the problems. We stubbed the data using factory and mocked the method calls which were being done internally to get the desired output from the methods that were calling other methods internally.&lt;br /&gt;
&lt;br /&gt;
=== Test Coverage ===&lt;br /&gt;
&lt;br /&gt;
=== Conclusion ===&lt;br /&gt;
While we tried to test all the methods in the summary_helper.rb class, we faced some blockers. All the blockers are described below:- &lt;br /&gt;
* summarize_sentences method&lt;br /&gt;
 &lt;br /&gt;
summary_webservice_url: 'http://peerlogic.csc.ncsu.edu/sum/v1.0/summary/8/lsa' &lt;br /&gt;
This URL is being used in the summary_helper.rb file and we were not able to mock it. It's giving us bad gateway error while we try to hit that url. &lt;br /&gt;
&lt;br /&gt;
* summarize_reviews_by_reviewee method&lt;br /&gt;
&lt;br /&gt;
In this method we found out in the loop, questions[round] is not the correct way of passing the individual question since questions is an array and use 0 based indexing. Whereas in the above logic it is being treated as a hash.&lt;br /&gt;
&lt;br /&gt;
* summarize_reviews_by_reviewee_question method&lt;br /&gt;
&lt;br /&gt;
We were not able to write test cases for this method. This method uses the instance variables from a different method(summarize_reviews_by_reviewee) which are not being passed as arguments to this method. Hence we were not able to initialize those variables and it always gives nil value.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
We tested all other remaining methods in the summary_helper.rb class. All the unit tests passed and the methods were working as expected. We tried to cover corner cases but I think there is room for some improvement.&lt;/div&gt;</summary>
		<author><name>Brbhatt</name></author>
	</entry>
	<entry>
		<id>https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Spring_2022_-_E2211:_Testing_for_summary_helper&amp;diff=143603</id>
		<title>CSC/ECE 517 Spring 2022 - E2211: Testing for summary helper</title>
		<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Spring_2022_-_E2211:_Testing_for_summary_helper&amp;diff=143603"/>
		<updated>2022-03-27T19:43:03Z</updated>

		<summary type="html">&lt;p&gt;Brbhatt: /* Test Plan */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== About Expertiza==&lt;br /&gt;
&lt;br /&gt;
[http://expertiza.ncsu.edu/ Expertiza] is the software benefits for both instructors and students by supporting various types of submissions and providing reusable objects for peer review. It is an open-source project based on [http://rubyonrails.org/ Ruby on Rails] framework. It allows the instructors 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 to work on various projects and assignments. Expertiza also lets students peer-review other students' submissions, enabling them to work together to improve others' learning experiences.&lt;br /&gt;
&lt;br /&gt;
== Description about project ==&lt;br /&gt;
This page is a description of Expertiza OSS project E2211 which is testing for summary_helper.rb &lt;br /&gt;
&lt;br /&gt;
=== Mentor ===&lt;br /&gt;
&lt;br /&gt;
* Vinay Deshmukh&lt;br /&gt;
&lt;br /&gt;
=== Team Members ===&lt;br /&gt;
&lt;br /&gt;
* Saswat Priyadarshan&lt;br /&gt;
* Rachel Son&lt;br /&gt;
* Bhuwan Bhatt&lt;br /&gt;
=== Files Involved ===&lt;br /&gt;
&lt;br /&gt;
* summary_helper.rb&lt;br /&gt;
* summary_helper_spec.rb&lt;br /&gt;
&lt;br /&gt;
=== Running Tests ===&lt;br /&gt;
To successfully run summary_helper_test in local machine, please run the redis server first, then run rspec. &lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
  redis-server&lt;br /&gt;
  rspec ./spec/helper/summary_helper_spec.rb&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Requirement ===&lt;br /&gt;
&lt;br /&gt;
summary_helper class had methods which were not tested. Our job was to test all the methods so that we can verify summary_helper class is working fine.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Test Plan ===&lt;br /&gt;
&lt;br /&gt;
After going through all the methods in the class, we figured out there were some methods that were never being called. So, we removed all the redundant methods that are not being called. Now we had only 9 methods in the class that we need to test. Nine methods in summary_helper class that needed to be tested were:-&lt;br /&gt;
* summarize_reviews_by_reviewee&lt;br /&gt;
* summarize_reviews_by_reviewee_question&lt;br /&gt;
* get_max_score_for_question&lt;br /&gt;
* summarize_sentences&lt;br /&gt;
* get_sentences&lt;br /&gt;
   To test this method we mocked an answer object and checked if number sentences are equal to number of comments provided in the answer.&lt;br /&gt;
 &lt;br /&gt;
Code Snippet:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
 describe '#get_sentences' do&lt;br /&gt;
    context 'when the answer is nil' do&lt;br /&gt;
      it 'returns a nil object' do&lt;br /&gt;
        expect(@summary.get_sentences(nil)).to eq(nil)&lt;br /&gt;
      end&lt;br /&gt;
    end&lt;br /&gt;
    context 'when the comment is two sentences' do&lt;br /&gt;
      it 'returns an array of two sentences' do&lt;br /&gt;
        sentences = @summary.get_sentences(answer)&lt;br /&gt;
        expect(sentences.length).to be(2)&lt;br /&gt;
      end&lt;br /&gt;
    end&lt;br /&gt;
  end&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
* break_up_comments_to_sentences&lt;br /&gt;
   This methods question answer array and breaks them into comments. &lt;br /&gt;
   In our testing we provided the question_answer array of length 2 and see if the number of comments is equal to 2.&lt;br /&gt;
Code Snippet:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
     describe '#break_up_comments_to_sentences' do&lt;br /&gt;
    context 'when the question_answers is not nil' do&lt;br /&gt;
      it 'add the comment to an array to be converted as a json request' do&lt;br /&gt;
        comments = @summary.break_up_comments_to_sentences([answer])&lt;br /&gt;
        expect(comments.length).to be(2)&lt;br /&gt;
      end&lt;br /&gt;
    end&lt;br /&gt;
    context 'when the question_answers is nil' do&lt;br /&gt;
      it 'returns an empty array' do&lt;br /&gt;
        comments = @summary.break_up_comments_to_sentences([])&lt;br /&gt;
        expect(comments.length).to be(0)&lt;br /&gt;
      end&lt;br /&gt;
    end&lt;br /&gt;
  end&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
* calculate_avg_score_by_criterion&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
    context 'when q_max_score = 0' do&lt;br /&gt;
      it 'gives pure question_score' do&lt;br /&gt;
        expect(@summary.calculate_avg_score_by_criterion([answer,answer1], 0)).to eq(3.0)&lt;br /&gt;
      end&lt;br /&gt;
    end&lt;br /&gt;
  end&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
* calculate_round_score&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
  describe '#calculate_round_score' do&lt;br /&gt;
   context 'when criteria not available' do&lt;br /&gt;
     it 'returns 0.0 since round_score = 0.0' do&lt;br /&gt;
       expect(@summary.calculate_round_score(avg_scores_by_criterion, nil)).to eq(0.to_f)&lt;br /&gt;
     end&lt;br /&gt;
   end&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
   context 'when criteria not nil' do&lt;br /&gt;
     it 'get 2 round_score  ' do&lt;br /&gt;
       expect(@summary.calculate_round_score(avg_scores_by_criterion, question)).to be_within(0.01).of(2.345)&lt;br /&gt;
     end&lt;br /&gt;
   end&lt;br /&gt;
 end&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* calculate_avg_score_by_round&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
  describe '#calculate_avg_score_by_round'do&lt;br /&gt;
   context 'when avg_scores_by_criterion available' do&lt;br /&gt;
     it 'gives 2 round value' do&lt;br /&gt;
       expect(@summary.calculate_avg_score_by_round(avg_scores_by_criterion, question)).to eq(2.35)&lt;br /&gt;
     end&lt;br /&gt;
   end&lt;br /&gt;
  end&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Test Execution ===&lt;br /&gt;
We divided the work among the teammates and started tackling the problems. We stubbed the data using factory to get the desired output from the methods that were calling other methods internally.&lt;br /&gt;
&lt;br /&gt;
=== Test Coverage ===&lt;br /&gt;
&lt;br /&gt;
=== Conclusion ===&lt;br /&gt;
While we tried to test all the methods in the summary_helper.rb class, we faced some blockers. All the blockers are described below:- &lt;br /&gt;
* summarize_sentences method&lt;br /&gt;
 &lt;br /&gt;
summary_webservice_url: 'http://peerlogic.csc.ncsu.edu/sum/v1.0/summary/8/lsa' &lt;br /&gt;
This URL is being used in the summary_helper.rb file and we were not able to mock it. It's giving us bad gateway error while we try to hit that url. &lt;br /&gt;
&lt;br /&gt;
* summarize_reviews_by_reviewee method&lt;br /&gt;
&lt;br /&gt;
In this method we found out in the loop, questions[round] is not the correct way of passing the individual question since questions is an array and use 0 based indexing. Whereas in the above logic it is being treated as a hash.&lt;br /&gt;
&lt;br /&gt;
* summarize_reviews_by_reviewee_question method&lt;br /&gt;
&lt;br /&gt;
We were not able to write test cases for this method. This method uses the instance variables from a different method(summarize_reviews_by_reviewee) which are not being passed as arguments to this method. Hence we were not able to initialize those variables and it always gives nil value.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
We tested all other remaining methods in the summary_helper.rb class. All the unit tests passed and the methods were working as expected. We tried to cover corner cases but I think there is room for some improvement.&lt;/div&gt;</summary>
		<author><name>Brbhatt</name></author>
	</entry>
	<entry>
		<id>https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Spring_2022_-_E2211:_Testing_for_summary_helper&amp;diff=143602</id>
		<title>CSC/ECE 517 Spring 2022 - E2211: Testing for summary helper</title>
		<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Spring_2022_-_E2211:_Testing_for_summary_helper&amp;diff=143602"/>
		<updated>2022-03-27T19:39:56Z</updated>

		<summary type="html">&lt;p&gt;Brbhatt: /* Test Plan */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== About Expertiza==&lt;br /&gt;
&lt;br /&gt;
[http://expertiza.ncsu.edu/ Expertiza] is the software benefits for both instructors and students by supporting various types of submissions and providing reusable objects for peer review. It is an open-source project based on [http://rubyonrails.org/ Ruby on Rails] framework. It allows the instructors 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 to work on various projects and assignments. Expertiza also lets students peer-review other students' submissions, enabling them to work together to improve others' learning experiences.&lt;br /&gt;
&lt;br /&gt;
== Description about project ==&lt;br /&gt;
This page is a description of Expertiza OSS project E2211 which is testing for summary_helper.rb &lt;br /&gt;
&lt;br /&gt;
=== Mentor ===&lt;br /&gt;
&lt;br /&gt;
* Vinay Deshmukh&lt;br /&gt;
&lt;br /&gt;
=== Team Members ===&lt;br /&gt;
&lt;br /&gt;
* Saswat Priyadarshan&lt;br /&gt;
* Rachel Son&lt;br /&gt;
* Bhuwan Bhatt&lt;br /&gt;
=== Files Involved ===&lt;br /&gt;
&lt;br /&gt;
* summary_helper.rb&lt;br /&gt;
* summary_helper_spec.rb&lt;br /&gt;
&lt;br /&gt;
=== Running Tests ===&lt;br /&gt;
To successfully run summary_helper_test in local machine, please run the redis server first, then run rspec. &lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
  redis-server&lt;br /&gt;
  rspec ./spec/helper/summary_helper_spec.rb&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Requirement ===&lt;br /&gt;
&lt;br /&gt;
summary_helper class had methods which were not tested. Our job was to test all the methods so that we can verify summary_helper class is working fine.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Test Plan ===&lt;br /&gt;
&lt;br /&gt;
After going through all the methods in the class, we figured out there were some methods that were never being called. So, we removed all the redundant methods that are not being called. Now we had only 9 methods in the class that we need to test. Nine methods in summary_helper class that needed to be tested were:-&lt;br /&gt;
* summarize_reviews_by_reviewee&lt;br /&gt;
* summarize_reviews_by_reviewee_question&lt;br /&gt;
* get_max_score_for_question&lt;br /&gt;
* summarize_sentences&lt;br /&gt;
* get_sentences&lt;br /&gt;
* break_up_comments_to_sentences&lt;br /&gt;
   This methods question answer array and breaks them into comments. &lt;br /&gt;
   In our testing we provided the question_answer array of length 2 and see if the number of comments is equal to 2.&lt;br /&gt;
Code Snippet:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
     describe '#break_up_comments_to_sentences' do&lt;br /&gt;
    context 'when the question_answers is not nil' do&lt;br /&gt;
      it 'add the comment to an array to be converted as a json request' do&lt;br /&gt;
        comments = @summary.break_up_comments_to_sentences([answer])&lt;br /&gt;
        expect(comments.length).to be(2)&lt;br /&gt;
      end&lt;br /&gt;
    end&lt;br /&gt;
    context 'when the question_answers is nil' do&lt;br /&gt;
      it 'returns an empty array' do&lt;br /&gt;
        comments = @summary.break_up_comments_to_sentences([])&lt;br /&gt;
        expect(comments.length).to be(0)&lt;br /&gt;
      end&lt;br /&gt;
    end&lt;br /&gt;
  end&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
* calculate_avg_score_by_criterion&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
    context 'when q_max_score = 0' do&lt;br /&gt;
      it 'gives pure question_score' do&lt;br /&gt;
        expect(@summary.calculate_avg_score_by_criterion([answer,answer1], 0)).to eq(3.0)&lt;br /&gt;
      end&lt;br /&gt;
    end&lt;br /&gt;
  end&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
* calculate_round_score&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
  describe '#calculate_round_score' do&lt;br /&gt;
   context 'when criteria not available' do&lt;br /&gt;
     it 'returns 0.0 since round_score = 0.0' do&lt;br /&gt;
       expect(@summary.calculate_round_score(avg_scores_by_criterion, nil)).to eq(0.to_f)&lt;br /&gt;
     end&lt;br /&gt;
   end&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
   context 'when criteria not nil' do&lt;br /&gt;
     it 'get 2 round_score  ' do&lt;br /&gt;
       expect(@summary.calculate_round_score(avg_scores_by_criterion, question)).to be_within(0.01).of(2.345)&lt;br /&gt;
     end&lt;br /&gt;
   end&lt;br /&gt;
 end&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* calculate_avg_score_by_round&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
  describe '#calculate_avg_score_by_round'do&lt;br /&gt;
   context 'when avg_scores_by_criterion available' do&lt;br /&gt;
     it 'gives 2 round value' do&lt;br /&gt;
       expect(@summary.calculate_avg_score_by_round(avg_scores_by_criterion, question)).to eq(2.35)&lt;br /&gt;
     end&lt;br /&gt;
   end&lt;br /&gt;
  end&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Test Execution ===&lt;br /&gt;
We divided the work among the teammates and started tackling the problems. We stubbed the data using factory to get the desired output from the methods that were calling other methods internally.&lt;br /&gt;
&lt;br /&gt;
=== Test Coverage ===&lt;br /&gt;
&lt;br /&gt;
=== Conclusion ===&lt;br /&gt;
While we tried to test all the methods in the summary_helper.rb class, we faced some blockers. All the blockers are described below:- &lt;br /&gt;
* summarize_sentences method&lt;br /&gt;
 &lt;br /&gt;
summary_webservice_url: 'http://peerlogic.csc.ncsu.edu/sum/v1.0/summary/8/lsa' &lt;br /&gt;
This URL is being used in the summary_helper.rb file and we were not able to mock it. It's giving us bad gateway error while we try to hit that url. &lt;br /&gt;
&lt;br /&gt;
* summarize_reviews_by_reviewee method&lt;br /&gt;
&lt;br /&gt;
In this method we found out in the loop, questions[round] is not the correct way of passing the individual question since questions is an array and use 0 based indexing. Whereas in the above logic it is being treated as a hash.&lt;br /&gt;
&lt;br /&gt;
* summarize_reviews_by_reviewee_question method&lt;br /&gt;
&lt;br /&gt;
We were not able to write test cases for this method. This method uses the instance variables from a different method(summarize_reviews_by_reviewee) which are not being passed as arguments to this method. Hence we were not able to initialize those variables and it always gives nil value.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
We tested all other remaining methods in the summary_helper.rb class. All the unit tests passed and the methods were working as expected. We tried to cover corner cases but I think there is room for some improvement.&lt;/div&gt;</summary>
		<author><name>Brbhatt</name></author>
	</entry>
	<entry>
		<id>https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Spring_2022_-_E2211:_Testing_for_summary_helper&amp;diff=143601</id>
		<title>CSC/ECE 517 Spring 2022 - E2211: Testing for summary helper</title>
		<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Spring_2022_-_E2211:_Testing_for_summary_helper&amp;diff=143601"/>
		<updated>2022-03-27T19:39:16Z</updated>

		<summary type="html">&lt;p&gt;Brbhatt: /* Test Plan */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== About Expertiza==&lt;br /&gt;
&lt;br /&gt;
[http://expertiza.ncsu.edu/ Expertiza] is the software benefits for both instructors and students by supporting various types of submissions and providing reusable objects for peer review. It is an open-source project based on [http://rubyonrails.org/ Ruby on Rails] framework. It allows the instructors 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 to work on various projects and assignments. Expertiza also lets students peer-review other students' submissions, enabling them to work together to improve others' learning experiences.&lt;br /&gt;
&lt;br /&gt;
== Description about project ==&lt;br /&gt;
This page is a description of Expertiza OSS project E2211 which is testing for summary_helper.rb &lt;br /&gt;
&lt;br /&gt;
=== Mentor ===&lt;br /&gt;
&lt;br /&gt;
* Vinay Deshmukh&lt;br /&gt;
&lt;br /&gt;
=== Team Members ===&lt;br /&gt;
&lt;br /&gt;
* Saswat Priyadarshan&lt;br /&gt;
* Rachel Son&lt;br /&gt;
* Bhuwan Bhatt&lt;br /&gt;
=== Files Involved ===&lt;br /&gt;
&lt;br /&gt;
* summary_helper.rb&lt;br /&gt;
* summary_helper_spec.rb&lt;br /&gt;
&lt;br /&gt;
=== Running Tests ===&lt;br /&gt;
To successfully run summary_helper_test in local machine, please run the redis server first, then run rspec. &lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
  redis-server&lt;br /&gt;
  rspec ./spec/helper/summary_helper_spec.rb&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Requirement ===&lt;br /&gt;
&lt;br /&gt;
summary_helper class had methods which were not tested. Our job was to test all the methods so that we can verify summary_helper class is working fine.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Test Plan ===&lt;br /&gt;
&lt;br /&gt;
After going through all the methods in the class, we figured out there were some methods that were never being called. So, we removed all the redundant methods that are not being called. Now we had only 9 methods in the class that we need to test. Nine methods in summary_helper class that needed to be tested were:-&lt;br /&gt;
* summarize_reviews_by_reviewee&lt;br /&gt;
* summarize_reviews_by_reviewee_question&lt;br /&gt;
* get_max_score_for_question&lt;br /&gt;
* summarize_sentences&lt;br /&gt;
* get_sentences&lt;br /&gt;
* break_up_comments_to_sentences&lt;br /&gt;
   This methods question answer array and breaks them into comments. In our testing we provided the question_answer array of length 2 and see if the number of comments is equal to 2.&lt;br /&gt;
Code Snippet:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
     describe '#break_up_comments_to_sentences' do&lt;br /&gt;
    context 'when the question_answers is not nil' do&lt;br /&gt;
      it 'add the comment to an array to be converted as a json request' do&lt;br /&gt;
        comments = @summary.break_up_comments_to_sentences([answer])&lt;br /&gt;
        expect(comments.length).to be(2)&lt;br /&gt;
      end&lt;br /&gt;
    end&lt;br /&gt;
    context 'when the question_answers is nil' do&lt;br /&gt;
      it 'returns an empty array' do&lt;br /&gt;
        comments = @summary.break_up_comments_to_sentences([])&lt;br /&gt;
        expect(comments.length).to be(0)&lt;br /&gt;
      end&lt;br /&gt;
    end&lt;br /&gt;
  end&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
* calculate_avg_score_by_criterion&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
    context 'when q_max_score = 0' do&lt;br /&gt;
      it 'gives pure question_score' do&lt;br /&gt;
        expect(@summary.calculate_avg_score_by_criterion([answer,answer1], 0)).to eq(3.0)&lt;br /&gt;
      end&lt;br /&gt;
    end&lt;br /&gt;
  end&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
* calculate_round_score&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
  describe '#calculate_round_score' do&lt;br /&gt;
   context 'when criteria not available' do&lt;br /&gt;
     it 'returns 0.0 since round_score = 0.0' do&lt;br /&gt;
       expect(@summary.calculate_round_score(avg_scores_by_criterion, nil)).to eq(0.to_f)&lt;br /&gt;
     end&lt;br /&gt;
   end&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
   context 'when criteria not nil' do&lt;br /&gt;
     it 'get 2 round_score  ' do&lt;br /&gt;
       expect(@summary.calculate_round_score(avg_scores_by_criterion, question)).to be_within(0.01).of(2.345)&lt;br /&gt;
     end&lt;br /&gt;
   end&lt;br /&gt;
 end&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* calculate_avg_score_by_round&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
  describe '#calculate_avg_score_by_round'do&lt;br /&gt;
   context 'when avg_scores_by_criterion available' do&lt;br /&gt;
     it 'gives 2 round value' do&lt;br /&gt;
       expect(@summary.calculate_avg_score_by_round(avg_scores_by_criterion, question)).to eq(2.35)&lt;br /&gt;
     end&lt;br /&gt;
   end&lt;br /&gt;
  end&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Test Execution ===&lt;br /&gt;
We divided the work among the teammates and started tackling the problems. We stubbed the data using factory to get the desired output from the methods that were calling other methods internally.&lt;br /&gt;
&lt;br /&gt;
=== Test Coverage ===&lt;br /&gt;
&lt;br /&gt;
=== Conclusion ===&lt;br /&gt;
While we tried to test all the methods in the summary_helper.rb class, we faced some blockers. All the blockers are described below:- &lt;br /&gt;
* summarize_sentences method&lt;br /&gt;
 &lt;br /&gt;
summary_webservice_url: 'http://peerlogic.csc.ncsu.edu/sum/v1.0/summary/8/lsa' &lt;br /&gt;
This URL is being used in the summary_helper.rb file and we were not able to mock it. It's giving us bad gateway error while we try to hit that url. &lt;br /&gt;
&lt;br /&gt;
* summarize_reviews_by_reviewee method&lt;br /&gt;
&lt;br /&gt;
In this method we found out in the loop, questions[round] is not the correct way of passing the individual question since questions is an array and use 0 based indexing. Whereas in the above logic it is being treated as a hash.&lt;br /&gt;
&lt;br /&gt;
* summarize_reviews_by_reviewee_question method&lt;br /&gt;
&lt;br /&gt;
We were not able to write test cases for this method. This method uses the instance variables from a different method(summarize_reviews_by_reviewee) which are not being passed as arguments to this method. Hence we were not able to initialize those variables and it always gives nil value.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
We tested all other remaining methods in the summary_helper.rb class. All the unit tests passed and the methods were working as expected. We tried to cover corner cases but I think there is room for some improvement.&lt;/div&gt;</summary>
		<author><name>Brbhatt</name></author>
	</entry>
	<entry>
		<id>https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Spring_2022_-_E2211:_Testing_for_summary_helper&amp;diff=143600</id>
		<title>CSC/ECE 517 Spring 2022 - E2211: Testing for summary helper</title>
		<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Spring_2022_-_E2211:_Testing_for_summary_helper&amp;diff=143600"/>
		<updated>2022-03-27T19:38:26Z</updated>

		<summary type="html">&lt;p&gt;Brbhatt: /* Test Plan */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== About Expertiza==&lt;br /&gt;
&lt;br /&gt;
[http://expertiza.ncsu.edu/ Expertiza] is the software benefits for both instructors and students by supporting various types of submissions and providing reusable objects for peer review. It is an open-source project based on [http://rubyonrails.org/ Ruby on Rails] framework. It allows the instructors 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 to work on various projects and assignments. Expertiza also lets students peer-review other students' submissions, enabling them to work together to improve others' learning experiences.&lt;br /&gt;
&lt;br /&gt;
== Description about project ==&lt;br /&gt;
This page is a description of Expertiza OSS project E2211 which is testing for summary_helper.rb &lt;br /&gt;
&lt;br /&gt;
=== Mentor ===&lt;br /&gt;
&lt;br /&gt;
* Vinay Deshmukh&lt;br /&gt;
&lt;br /&gt;
=== Team Members ===&lt;br /&gt;
&lt;br /&gt;
* Saswat Priyadarshan&lt;br /&gt;
* Rachel Son&lt;br /&gt;
* Bhuwan Bhatt&lt;br /&gt;
=== Files Involved ===&lt;br /&gt;
&lt;br /&gt;
* summary_helper.rb&lt;br /&gt;
* summary_helper_spec.rb&lt;br /&gt;
&lt;br /&gt;
=== Running Tests ===&lt;br /&gt;
To successfully run summary_helper_test in local machine, please run the redis server first, then run rspec. &lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
  redis-server&lt;br /&gt;
  rspec ./spec/helper/summary_helper_spec.rb&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Requirement ===&lt;br /&gt;
&lt;br /&gt;
summary_helper class had methods which were not tested. Our job was to test all the methods so that we can verify summary_helper class is working fine.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Test Plan ===&lt;br /&gt;
&lt;br /&gt;
After going through all the methods in the class, we figured out there were some methods that were never being called. So, we removed all the redundant methods that are not being called. Now we had only 9 methods in the class that we need to test. Nine methods in summary_helper class that needed to be tested were:-&lt;br /&gt;
* summarize_reviews_by_reviewee&lt;br /&gt;
* summarize_reviews_by_reviewee_question&lt;br /&gt;
* get_max_score_for_question&lt;br /&gt;
* summarize_sentences&lt;br /&gt;
* get_sentences&lt;br /&gt;
* break_up_comments_to_sentences&lt;br /&gt;
   This methods question answer array and breaks them into comments. In our testing we provided the question_answer array of length 2 and see if the number of comments is equal to 2.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
     describe '#break_up_comments_to_sentences' do&lt;br /&gt;
    context 'when the question_answers is not nil' do&lt;br /&gt;
      it 'add the comment to an array to be converted as a json request' do&lt;br /&gt;
        comments = @summary.break_up_comments_to_sentences([answer])&lt;br /&gt;
        expect(comments.length).to be(2)&lt;br /&gt;
      end&lt;br /&gt;
    end&lt;br /&gt;
    context 'when the question_answers is nil' do&lt;br /&gt;
      it 'returns an empty array' do&lt;br /&gt;
        comments = @summary.break_up_comments_to_sentences([])&lt;br /&gt;
        expect(comments.length).to be(0)&lt;br /&gt;
      end&lt;br /&gt;
    end&lt;br /&gt;
  end&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
* calculate_avg_score_by_criterion&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
    context 'when q_max_score = 0' do&lt;br /&gt;
      it 'gives pure question_score' do&lt;br /&gt;
        expect(@summary.calculate_avg_score_by_criterion([answer,answer1], 0)).to eq(3.0)&lt;br /&gt;
      end&lt;br /&gt;
    end&lt;br /&gt;
  end&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
* calculate_round_score&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
  describe '#calculate_round_score' do&lt;br /&gt;
   context 'when criteria not available' do&lt;br /&gt;
     it 'returns 0.0 since round_score = 0.0' do&lt;br /&gt;
       expect(@summary.calculate_round_score(avg_scores_by_criterion, nil)).to eq(0.to_f)&lt;br /&gt;
     end&lt;br /&gt;
   end&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
   context 'when criteria not nil' do&lt;br /&gt;
     it 'get 2 round_score  ' do&lt;br /&gt;
       expect(@summary.calculate_round_score(avg_scores_by_criterion, question)).to be_within(0.01).of(2.345)&lt;br /&gt;
     end&lt;br /&gt;
   end&lt;br /&gt;
 end&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* calculate_avg_score_by_round&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
  describe '#calculate_avg_score_by_round'do&lt;br /&gt;
   context 'when avg_scores_by_criterion available' do&lt;br /&gt;
     it 'gives 2 round value' do&lt;br /&gt;
       expect(@summary.calculate_avg_score_by_round(avg_scores_by_criterion, question)).to eq(2.35)&lt;br /&gt;
     end&lt;br /&gt;
   end&lt;br /&gt;
  end&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Test Execution ===&lt;br /&gt;
We divided the work among the teammates and started tackling the problems. We stubbed the data using factory to get the desired output from the methods that were calling other methods internally.&lt;br /&gt;
&lt;br /&gt;
=== Test Coverage ===&lt;br /&gt;
&lt;br /&gt;
=== Conclusion ===&lt;br /&gt;
While we tried to test all the methods in the summary_helper.rb class, we faced some blockers. All the blockers are described below:- &lt;br /&gt;
* summarize_sentences method&lt;br /&gt;
 &lt;br /&gt;
summary_webservice_url: 'http://peerlogic.csc.ncsu.edu/sum/v1.0/summary/8/lsa' &lt;br /&gt;
This URL is being used in the summary_helper.rb file and we were not able to mock it. It's giving us bad gateway error while we try to hit that url. &lt;br /&gt;
&lt;br /&gt;
* summarize_reviews_by_reviewee method&lt;br /&gt;
&lt;br /&gt;
In this method we found out in the loop, questions[round] is not the correct way of passing the individual question since questions is an array and use 0 based indexing. Whereas in the above logic it is being treated as a hash.&lt;br /&gt;
&lt;br /&gt;
* summarize_reviews_by_reviewee_question method&lt;br /&gt;
&lt;br /&gt;
We were not able to write test cases for this method. This method uses the instance variables from a different method(summarize_reviews_by_reviewee) which are not being passed as arguments to this method. Hence we were not able to initialize those variables and it always gives nil value.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
We tested all other remaining methods in the summary_helper.rb class. All the unit tests passed and the methods were working as expected. We tried to cover corner cases but I think there is room for some improvement.&lt;/div&gt;</summary>
		<author><name>Brbhatt</name></author>
	</entry>
	<entry>
		<id>https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Spring_2022_-_E2211:_Testing_for_summary_helper&amp;diff=143596</id>
		<title>CSC/ECE 517 Spring 2022 - E2211: Testing for summary helper</title>
		<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Spring_2022_-_E2211:_Testing_for_summary_helper&amp;diff=143596"/>
		<updated>2022-03-27T19:15:20Z</updated>

		<summary type="html">&lt;p&gt;Brbhatt: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== About Expertiza==&lt;br /&gt;
&lt;br /&gt;
[http://expertiza.ncsu.edu/ Expertiza] is the software benefits for both instructors and students by supporting various types of submissions and providing reusable objects for peer review. It is an open-source project based on [http://rubyonrails.org/ Ruby on Rails] framework. It allows the instructors 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 to work on various projects and assignments. Expertiza also lets students peer-review other students' submissions, enabling them to work together to improve others' learning experiences.&lt;br /&gt;
&lt;br /&gt;
== Description about project ==&lt;br /&gt;
This page is a description of Expertiza OSS project E2211 which is testing for summary_helper.rb &lt;br /&gt;
&lt;br /&gt;
=== Mentor ===&lt;br /&gt;
&lt;br /&gt;
* Vinay Deshmukh&lt;br /&gt;
&lt;br /&gt;
=== Team Members ===&lt;br /&gt;
&lt;br /&gt;
* Saswat Priyadarshan&lt;br /&gt;
* Rachel Son&lt;br /&gt;
* Bhuwan Bhatt&lt;br /&gt;
=== Files Involved ===&lt;br /&gt;
&lt;br /&gt;
* summary_helper.rb&lt;br /&gt;
* summary_helper_spec.rb&lt;br /&gt;
&lt;br /&gt;
=== Running Tests ===&lt;br /&gt;
To successfully run summary_helper_test in local machine, please run the redis server first, then run rspec. &lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
  redis-server&lt;br /&gt;
  rspec ./spec/helper/summary_helper_spec.rb&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Requirement ===&lt;br /&gt;
&lt;br /&gt;
summary_helper class had methods which were not tested. Our job was to test all the methods so that we can verify summary_helper class is working fine.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Test Plan ===&lt;br /&gt;
&lt;br /&gt;
After going through all the methods in the class, we figured out there were some methods that were never being called. So, we removed all the redundant methods that are not being called. Now we had only 9 methods in the class that we need to test. Nine methods in summary_helper class that needed to be tested were:-&lt;br /&gt;
* summarize_reviews_by_reviewee&lt;br /&gt;
* summarize_reviews_by_reviewee_question&lt;br /&gt;
* get_max_score_for_question&lt;br /&gt;
* summarize_sentences&lt;br /&gt;
* get_sentences&lt;br /&gt;
* break_up_comments_to_sentences&lt;br /&gt;
* calculate_avg_score_by_criterion&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
    context 'when q_max_score = 0' do&lt;br /&gt;
      it 'gives pure question_score' do&lt;br /&gt;
        expect(@summary.calculate_avg_score_by_criterion([answer,answer1], 0)).to eq(3.0)&lt;br /&gt;
      end&lt;br /&gt;
    end&lt;br /&gt;
  end&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
* calculate_round_score&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
  describe '#calculate_round_score' do&lt;br /&gt;
   context 'when criteria not available' do&lt;br /&gt;
     it 'returns 0.0 since round_score = 0.0' do&lt;br /&gt;
       expect(@summary.calculate_round_score(avg_scores_by_criterion, nil)).to eq(0.to_f)&lt;br /&gt;
     end&lt;br /&gt;
   end&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
   context 'when criteria not nil' do&lt;br /&gt;
     it 'get 2 round_score  ' do&lt;br /&gt;
       expect(@summary.calculate_round_score(avg_scores_by_criterion, question)).to be_within(0.01).of(2.345)&lt;br /&gt;
     end&lt;br /&gt;
   end&lt;br /&gt;
 end&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* calculate_avg_score_by_round&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
  describe '#calculate_avg_score_by_round'do&lt;br /&gt;
   context 'when avg_scores_by_criterion available' do&lt;br /&gt;
     it 'gives 2 round value' do&lt;br /&gt;
       expect(@summary.calculate_avg_score_by_round(avg_scores_by_criterion, question)).to eq(2.35)&lt;br /&gt;
     end&lt;br /&gt;
   end&lt;br /&gt;
  end&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Test Execution ===&lt;br /&gt;
We divided the work among the teammates and started tackling the problems. We stubbed the data using factory to get the desired output from the methods that were calling other methods internally.&lt;br /&gt;
&lt;br /&gt;
=== Test Coverage ===&lt;br /&gt;
&lt;br /&gt;
=== Conclusion ===&lt;br /&gt;
While we tried to test all the methods in the summary_helper.rb class, we faced some blockers. All the blockers are described below:- &lt;br /&gt;
* summarize_sentences method&lt;br /&gt;
 &lt;br /&gt;
summary_webservice_url: 'http://peerlogic.csc.ncsu.edu/sum/v1.0/summary/8/lsa' &lt;br /&gt;
This URL is being used in the summary_helper.rb file and we were not able to mock it. It's giving us bad gateway error while we try to hit that url. &lt;br /&gt;
&lt;br /&gt;
* summarize_reviews_by_reviewee method&lt;br /&gt;
&lt;br /&gt;
In this method we found out in the loop, questions[round] is not the correct way of passing the individual question since questions is an array and use 0 based indexing. Whereas in the above logic it is being treated as a hash.&lt;br /&gt;
&lt;br /&gt;
* summarize_reviews_by_reviewee_question method&lt;br /&gt;
&lt;br /&gt;
We were not able to write test cases for this method. This method uses the instance variables from a different method(summarize_reviews_by_reviewee) which are not being passed as arguments to this method. Hence we were not able to initialize those variables and it always gives nil value.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
We tested all other remaining methods in the summary_helper.rb class. All the unit tests passed and the methods were working as expected. We tried to cover corner cases but I think there is room for some improvement.&lt;/div&gt;</summary>
		<author><name>Brbhatt</name></author>
	</entry>
	<entry>
		<id>https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Spring_2022_-_E2211:_Testing_for_summary_helper&amp;diff=143192</id>
		<title>CSC/ECE 517 Spring 2022 - E2211: Testing for summary helper</title>
		<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Spring_2022_-_E2211:_Testing_for_summary_helper&amp;diff=143192"/>
		<updated>2022-03-21T20:29:45Z</updated>

		<summary type="html">&lt;p&gt;Brbhatt: /* Conclusion */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== About Expertiza==&lt;br /&gt;
&lt;br /&gt;
[http://expertiza.ncsu.edu/ Expertiza] is the software benefits for both instructors and students by supporting various types of submissions and providing reusable objects for peer review. It is an open-source project based on [http://rubyonrails.org/ Ruby on Rails] framework. It allows the instructors 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 to work on various projects and assignments. Expertiza also lets students peer-review other students' submissions, enabling them to work together to improve others' learning experiences.&lt;br /&gt;
&lt;br /&gt;
== Description about project ==&lt;br /&gt;
This page is a description of Expertiza OSS project E2211 which is testing for summary_helper.rb &lt;br /&gt;
&lt;br /&gt;
=== Files Involved ===&lt;br /&gt;
&lt;br /&gt;
* summary_helper.rb&lt;br /&gt;
* summary_helper_spec.rb&lt;br /&gt;
&lt;br /&gt;
=== Running Tests ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
  rspec ./spec/helper/summary_helper_spec.rb&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Requirement ===&lt;br /&gt;
&lt;br /&gt;
summary_helper class had methods which were not tested. Our job was to test all the methods so that we can verify summary_helper class is working fine.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Analysis ===&lt;br /&gt;
&lt;br /&gt;
After going through all the methods in the class, we figured out there were some methods that were never being called. So, we removed all the redundant methods that are not being called. Now we had only 9 methods in the class that we need to test. Nine methods in summary_helper class that needed to be tested were:-&lt;br /&gt;
* summarize_reviews_by_reviewee&lt;br /&gt;
* summarize_reviews_by_reviewee_question&lt;br /&gt;
* get_max_score_for_question&lt;br /&gt;
* summarize_sentences&lt;br /&gt;
* get_sentences&lt;br /&gt;
* break_up_comments_to_sentences&lt;br /&gt;
* calculate_avg_score_by_criterion&lt;br /&gt;
* calculate_round_score&lt;br /&gt;
* calculate_avg_score_by_round&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Test Execution ===&lt;br /&gt;
We divided the work among the teammates and started tackling the problems. We stubbed the data using factory to get the desired output from the methods that were calling other methods internally.&lt;br /&gt;
&lt;br /&gt;
=== Conclusion ===&lt;br /&gt;
While we tried to test all the methods in the summary_helper.rb class, we faced some blockers. All the blockers are described below:- &lt;br /&gt;
* summarize_sentences method&lt;br /&gt;
 &lt;br /&gt;
summary_webservice_url: 'http://peerlogic.csc.ncsu.edu/sum/v1.0/summary/8/lsa' &lt;br /&gt;
This URL is being used in the summary_helper.rb file and we were not able to mock it. It's giving us bad gateway error while we try to hit that url. &lt;br /&gt;
&lt;br /&gt;
* summarize_reviews_by_reviewee method&lt;br /&gt;
&lt;br /&gt;
In this method we found out in the loop, questions[round] is not the correct way of passing the individual question since questions is an array and use 0 based indexing. Whereas in the above logic it is being treated as a hash.&lt;br /&gt;
&lt;br /&gt;
* summarize_reviews_by_reviewee_question method&lt;br /&gt;
&lt;br /&gt;
We were not able to write test cases for this method. This method uses the instance variables from a different method(summarize_reviews_by_reviewee) which are not being passed as arguments to this method. Hence we were not able to initialize those variables and it always gives nil value.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
We tested all other remaining methods in the summary_helper.rb class. All the unit tests passed and the methods were working as expected. We tried to cover corner cases but I think there is room for some improvement.&lt;/div&gt;</summary>
		<author><name>Brbhatt</name></author>
	</entry>
	<entry>
		<id>https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Spring_2022_-_E2211:_Testing_for_summary_helper&amp;diff=143081</id>
		<title>CSC/ECE 517 Spring 2022 - E2211: Testing for summary helper</title>
		<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Spring_2022_-_E2211:_Testing_for_summary_helper&amp;diff=143081"/>
		<updated>2022-03-20T22:11:29Z</updated>

		<summary type="html">&lt;p&gt;Brbhatt: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== About Expertiza==&lt;br /&gt;
&lt;br /&gt;
[http://expertiza.ncsu.edu/ Expertiza] is the software benefits for both instructors and students by supporting various types of submissions and providing reusable objects for peer review. It is an open-source project based on [http://rubyonrails.org/ Ruby on Rails] framework. It allows the instructors 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 to work on various projects and assignments. Expertiza also lets students peer-review other students' submissions, enabling them to work together to improve others' learning experiences.&lt;br /&gt;
&lt;br /&gt;
== Description about project ==&lt;br /&gt;
This page is a description of Expertiza OSS project E2211 which is testing for summary_helper.rb &lt;br /&gt;
&lt;br /&gt;
=== Files Involved ===&lt;br /&gt;
&lt;br /&gt;
* summary_helper.rb&lt;br /&gt;
* summary_helper_spec.rb&lt;br /&gt;
&lt;br /&gt;
=== Running Tests ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
  rspec ./spec/helper/summary_helper_spec.rb&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Requirement ===&lt;br /&gt;
&lt;br /&gt;
summary_helper class had methods which were not tested. Our job was to test all the methods so that we can verify summary_helper class is working fine.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Analysis ===&lt;br /&gt;
&lt;br /&gt;
After going through all the methods in the class, we figured out there were some methods that were never being called. So, we removed all the redundant methods that are not being called. Now we had only 9 methods in the class that we need to test. Nine methods in summary_helper class that needed to be tested were:-&lt;br /&gt;
* summarize_reviews_by_reviewee&lt;br /&gt;
* summarize_reviews_by_reviewee_question&lt;br /&gt;
* get_max_score_for_question&lt;br /&gt;
* summarize_sentences&lt;br /&gt;
* get_sentences&lt;br /&gt;
* break_up_comments_to_sentences&lt;br /&gt;
* calculate_avg_score_by_criterion&lt;br /&gt;
* calculate_round_score&lt;br /&gt;
* calculate_avg_score_by_round&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Test Execution ===&lt;br /&gt;
We divided the work among the teammates and started tackling the problems. We stubbed the data using factory to get the desired output from the methods that were calling other methods internally.&lt;br /&gt;
&lt;br /&gt;
=== Conclusion ===&lt;br /&gt;
We tested all the methods in the summary_helper.rb class. All the unit tests passed and the methods were working as expected. We tried to cover corner cases but I think there is room for some improvement.&lt;/div&gt;</summary>
		<author><name>Brbhatt</name></author>
	</entry>
	<entry>
		<id>https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Spring_2022_-_E2211:_Testing_for_summary_helper&amp;diff=143080</id>
		<title>CSC/ECE 517 Spring 2022 - E2211: Testing for summary helper</title>
		<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Spring_2022_-_E2211:_Testing_for_summary_helper&amp;diff=143080"/>
		<updated>2022-03-20T22:05:48Z</updated>

		<summary type="html">&lt;p&gt;Brbhatt: /* Test Execution */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== About Expertiza==&lt;br /&gt;
&lt;br /&gt;
[http://expertiza.ncsu.edu/ Expertiza] is the software benefits for both instructors and students by supporting various types of submissions and providing reusable objects for peer review. It is an open-source project based on [http://rubyonrails.org/ Ruby on Rails] framework. It allows the instructors 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 to work on various projects and assignments. Expertiza also lets students peer-review other students' submissions, enabling them to work together to improve others' learning experiences.&lt;br /&gt;
&lt;br /&gt;
== Description about project ==&lt;br /&gt;
This page is a description of Expertiza OSS project E2211 which is testing for summary_helper.rb &lt;br /&gt;
&lt;br /&gt;
=== Files Involved ===&lt;br /&gt;
&lt;br /&gt;
* summary_helper.rb&lt;br /&gt;
* summary_helper_spec.rb&lt;br /&gt;
&lt;br /&gt;
=== Running Tests ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
  rspec ./spec/helper/summary_helper_spec.rb&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Requirement ===&lt;br /&gt;
&lt;br /&gt;
summary_helper class had methods which were not tested. Our job was to test all the methods so that we can verify summary_helper class is working fine.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Analysis ===&lt;br /&gt;
&lt;br /&gt;
After going through all the methods in the class, we figured out there were some methods that were never being called. So, we removed all the redundant methods that are not being called. Now we had only 9 methods in the class that we need to test. Nine methods in summary_helper class that needed to be tested were:-&lt;br /&gt;
* summarize_reviews_by_reviewee&lt;br /&gt;
* summarize_reviews_by_reviewee_question&lt;br /&gt;
* get_max_score_for_question&lt;br /&gt;
* summarize_sentences&lt;br /&gt;
* get_sentences&lt;br /&gt;
* break_up_comments_to_sentences&lt;br /&gt;
* calculate_avg_score_by_criterion&lt;br /&gt;
* calculate_round_score&lt;br /&gt;
* calculate_avg_score_by_round&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Test Execution ===&lt;br /&gt;
We divided the work among the teammates and started tackling the problems. We stubbed the data using factory to get the desired output from the methods that were calling other methods internally.&lt;/div&gt;</summary>
		<author><name>Brbhatt</name></author>
	</entry>
	<entry>
		<id>https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Spring_2022_-_E2211:_Testing_for_summary_helper&amp;diff=143079</id>
		<title>CSC/ECE 517 Spring 2022 - E2211: Testing for summary helper</title>
		<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Spring_2022_-_E2211:_Testing_for_summary_helper&amp;diff=143079"/>
		<updated>2022-03-20T22:05:20Z</updated>

		<summary type="html">&lt;p&gt;Brbhatt: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== About Expertiza==&lt;br /&gt;
&lt;br /&gt;
[http://expertiza.ncsu.edu/ Expertiza] is the software benefits for both instructors and students by supporting various types of submissions and providing reusable objects for peer review. It is an open-source project based on [http://rubyonrails.org/ Ruby on Rails] framework. It allows the instructors 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 to work on various projects and assignments. Expertiza also lets students peer-review other students' submissions, enabling them to work together to improve others' learning experiences.&lt;br /&gt;
&lt;br /&gt;
== Description about project ==&lt;br /&gt;
This page is a description of Expertiza OSS project E2211 which is testing for summary_helper.rb &lt;br /&gt;
&lt;br /&gt;
=== Files Involved ===&lt;br /&gt;
&lt;br /&gt;
* summary_helper.rb&lt;br /&gt;
* summary_helper_spec.rb&lt;br /&gt;
&lt;br /&gt;
=== Running Tests ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
  rspec ./spec/helper/summary_helper_spec.rb&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Requirement ===&lt;br /&gt;
&lt;br /&gt;
summary_helper class had methods which were not tested. Our job was to test all the methods so that we can verify summary_helper class is working fine.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Analysis ===&lt;br /&gt;
&lt;br /&gt;
After going through all the methods in the class, we figured out there were some methods that were never being called. So, we removed all the redundant methods that are not being called. Now we had only 9 methods in the class that we need to test. Nine methods in summary_helper class that needed to be tested were:-&lt;br /&gt;
* summarize_reviews_by_reviewee&lt;br /&gt;
* summarize_reviews_by_reviewee_question&lt;br /&gt;
* get_max_score_for_question&lt;br /&gt;
* summarize_sentences&lt;br /&gt;
* get_sentences&lt;br /&gt;
* break_up_comments_to_sentences&lt;br /&gt;
* calculate_avg_score_by_criterion&lt;br /&gt;
* calculate_round_score&lt;br /&gt;
* calculate_avg_score_by_round&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Test Execution ===&lt;br /&gt;
We divided the work among the teammates and started tacking the problems. We stubbed the data using factory to get the desired output from the methods that were calling other methods internally.&lt;/div&gt;</summary>
		<author><name>Brbhatt</name></author>
	</entry>
	<entry>
		<id>https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Spring_2022_-_E2211:_Testing_for_summary_helper&amp;diff=143078</id>
		<title>CSC/ECE 517 Spring 2022 - E2211: Testing for summary helper</title>
		<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Spring_2022_-_E2211:_Testing_for_summary_helper&amp;diff=143078"/>
		<updated>2022-03-20T21:53:41Z</updated>

		<summary type="html">&lt;p&gt;Brbhatt: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== About Expertiza==&lt;br /&gt;
&lt;br /&gt;
[http://expertiza.ncsu.edu/ Expertiza] is the software benefits for both instructors and students by supporting various types of submissions and providing reusable objects for peer review. It is an open-source project based on [http://rubyonrails.org/ Ruby on Rails] framework. It allows the instructors 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 to work on various projects and assignments. Expertiza also lets students peer-review other students' submissions, enabling them to work together to improve others' learning experiences.&lt;br /&gt;
&lt;br /&gt;
== Description about project ==&lt;br /&gt;
This page is a description of Expertiza OSS project E2211 which is testing for summary_helper.rb &lt;br /&gt;
&lt;br /&gt;
=== Files Involved ===&lt;br /&gt;
&lt;br /&gt;
* summary_helper.rb&lt;br /&gt;
* summary_helper_spec.rb&lt;br /&gt;
&lt;br /&gt;
=== Running Tests ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
  rspec ./spec/helper/summary_helper_spec.rb&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Requirement ===&lt;br /&gt;
&lt;br /&gt;
summary_helper class had methods which were not tested. Our job was to test all the methods so that we can verify summary_helper class is working fine.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Analysis ===&lt;br /&gt;
&lt;br /&gt;
After going through all the methods in the class, we figured out there were some methods that were never being called. So, we removed all the redundant methods that are not being called. Now we had only 9 methods in the class that we need to test. Nine methods in summary_helper class that needed to be tested were:-&lt;br /&gt;
* summarize_reviews_by_reviewee&lt;br /&gt;
* summarize_reviews_by_reviewee_question&lt;br /&gt;
* get_max_score_for_question&lt;br /&gt;
* summarize_sentences&lt;br /&gt;
* get_sentences&lt;br /&gt;
* break_up_comments_to_sentences&lt;br /&gt;
* calculate_avg_score_by_criterion&lt;br /&gt;
* calculate_round_score&lt;br /&gt;
* calculate_avg_score_by_round&lt;/div&gt;</summary>
		<author><name>Brbhatt</name></author>
	</entry>
	<entry>
		<id>https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Spring_2022_-_E2211:_Testing_for_summary_helper&amp;diff=143077</id>
		<title>CSC/ECE 517 Spring 2022 - E2211: Testing for summary helper</title>
		<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Spring_2022_-_E2211:_Testing_for_summary_helper&amp;diff=143077"/>
		<updated>2022-03-20T21:53:12Z</updated>

		<summary type="html">&lt;p&gt;Brbhatt: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== About Expertiza==&lt;br /&gt;
&lt;br /&gt;
[http://expertiza.ncsu.edu/ Expertiza] is the software benefits for both instructors and students by supporting various types of submissions and providing reusable objects for peer review. It is an open-source project based on [http://rubyonrails.org/ Ruby on Rails] framework. It allows the instructors 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 to work on various projects and assignments. Expertiza also lets students peer-review other students' submissions, enabling them to work together to improve others' learning experiences.&lt;br /&gt;
&lt;br /&gt;
== Description about project ==&lt;br /&gt;
This page is a description of Expertiza OSS project E2211 which is testing for summary_helper.rb &lt;br /&gt;
&lt;br /&gt;
=== Files Involved ===&lt;br /&gt;
&lt;br /&gt;
summary_helper.rb&lt;br /&gt;
summary_helper_spec.rb&lt;br /&gt;
&lt;br /&gt;
=== Running Tests ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
  rspec ./spec/helper/summary_helper_spec.rb&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Requirement ===&lt;br /&gt;
&lt;br /&gt;
summary_helper class had methods which were not tested. Our job was to test all the methods so that we can verify summary_helper class is working fine.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Analysis ===&lt;br /&gt;
&lt;br /&gt;
After going through all the methods in the class, we figured out there were some methods that were never being called. So, we removed all the redundant methods that are not being called. Now we had only 9 methods in the class that we need to test. Nine methods in summary_helper class that needed to be tested were:-&lt;br /&gt;
* summarize_reviews_by_reviewee&lt;br /&gt;
* summarize_reviews_by_reviewee_question&lt;br /&gt;
* get_max_score_for_question&lt;br /&gt;
* summarize_sentences&lt;br /&gt;
* get_sentences&lt;br /&gt;
* break_up_comments_to_sentences&lt;br /&gt;
* calculate_avg_score_by_criterion&lt;br /&gt;
* calculate_round_score&lt;br /&gt;
* calculate_avg_score_by_round&lt;/div&gt;</summary>
		<author><name>Brbhatt</name></author>
	</entry>
	<entry>
		<id>https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Spring_2022_-_E2211:_Testing_for_summary_helper&amp;diff=143075</id>
		<title>CSC/ECE 517 Spring 2022 - E2211: Testing for summary helper</title>
		<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Spring_2022_-_E2211:_Testing_for_summary_helper&amp;diff=143075"/>
		<updated>2022-03-20T21:50:35Z</updated>

		<summary type="html">&lt;p&gt;Brbhatt: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== About Expertiza==&lt;br /&gt;
&lt;br /&gt;
[http://expertiza.ncsu.edu/ Expertiza] is the software benefits for both instructors and students by supporting various types of submissions and providing reusable objects for peer review. It is an open-source project based on [http://rubyonrails.org/ Ruby on Rails] framework. It allows the instructors 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 to work on various projects and assignments. Expertiza also lets students peer-review other students' submissions, enabling them to work together to improve others' learning experiences.&lt;br /&gt;
&lt;br /&gt;
== Description about project ==&lt;br /&gt;
This page is a description of Expertiza OSS project E2211 which is testing for summary_helper.rb &lt;br /&gt;
&lt;br /&gt;
=== Files Involved ===&lt;br /&gt;
&lt;br /&gt;
summary_helper.rb&lt;br /&gt;
summary_helper_spec.rb&lt;br /&gt;
&lt;br /&gt;
=== Running Tests ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
  rspec ./spec/helper/summary_helper_spec.rb&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Requirement ===&lt;br /&gt;
&lt;br /&gt;
summary_helper class had methods which were not tested. Our job was to test all the methods in that class so that we can verify summary_helper class is working fine.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Analysis ===&lt;br /&gt;
&lt;br /&gt;
After going through all the methods in the class, we figured out there were some methods that were never being called. So, we removed all the redundant methods that are not being called. Now we had only 9 methods in the class that we need to test. Nine methods in summary_helper class that needed to be tested were:-&lt;br /&gt;
* summarize_reviews_by_reviewee&lt;br /&gt;
* summarize_reviews_by_reviewee_question&lt;br /&gt;
* get_max_score_for_question&lt;br /&gt;
* summarize_sentences&lt;br /&gt;
* get_sentences&lt;br /&gt;
* break_up_comments_to_sentences&lt;br /&gt;
* calculate_avg_score_by_criterion&lt;br /&gt;
* calculate_round_score&lt;br /&gt;
* calculate_avg_score_by_round&lt;/div&gt;</summary>
		<author><name>Brbhatt</name></author>
	</entry>
	<entry>
		<id>https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Spring_2022_-_E2211:_Testing_for_summary_helper&amp;diff=143071</id>
		<title>CSC/ECE 517 Spring 2022 - E2211: Testing for summary helper</title>
		<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Spring_2022_-_E2211:_Testing_for_summary_helper&amp;diff=143071"/>
		<updated>2022-03-20T21:37:42Z</updated>

		<summary type="html">&lt;p&gt;Brbhatt: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== About Expertiza==&lt;br /&gt;
&lt;br /&gt;
[http://expertiza.ncsu.edu/ Expertiza] is the software benefits for both instructors and students by supporting various types of submissions and providing reusable objects for peer review. It is an open-source project based on [http://rubyonrails.org/ Ruby on Rails] framework. It allows the instructors 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 to work on various projects and assignments. Expertiza also lets students peer-review other students' submissions, enabling them to work together to improve others' learning experiences.&lt;br /&gt;
&lt;br /&gt;
== Description about project ==&lt;br /&gt;
This page is a description of Expertiza OSS project E2211 which is testing for summary_helper.rb &lt;br /&gt;
&lt;br /&gt;
=== Files Involved ===&lt;br /&gt;
&lt;br /&gt;
summary_helper.rb&lt;br /&gt;
summary_helper_spec.rb&lt;br /&gt;
&lt;br /&gt;
=== Running Tests ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
  rspec ./spec/helper/summary_helper_spec.rb&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;/div&gt;</summary>
		<author><name>Brbhatt</name></author>
	</entry>
	<entry>
		<id>https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Spring_2022_-_E2211:_Testing_for_summary_helper&amp;diff=143070</id>
		<title>CSC/ECE 517 Spring 2022 - E2211: Testing for summary helper</title>
		<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Spring_2022_-_E2211:_Testing_for_summary_helper&amp;diff=143070"/>
		<updated>2022-03-20T21:35:21Z</updated>

		<summary type="html">&lt;p&gt;Brbhatt: Created page with &amp;quot;== About Expertiza==  [http://expertiza.ncsu.edu/ Expertiza] is the software benefits for both instructors and students by supporting various types of submissions and providin...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== About Expertiza==&lt;br /&gt;
&lt;br /&gt;
[http://expertiza.ncsu.edu/ Expertiza] is the software benefits for both instructors and students by supporting various types of submissions and providing reusable objects for peer review. It is an open-source project based on [http://rubyonrails.org/ Ruby on Rails] framework. It allows the instructors 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 to work on various projects and assignments. Expertiza also lets students peer-review other students' submissions, enabling them to work together to improve others' learning experiences.&lt;br /&gt;
&lt;br /&gt;
== Description about project ==&lt;br /&gt;
This page is a description of Expertiza OSS project E2211 which is testing for summary_helper.rb &lt;br /&gt;
&lt;br /&gt;
=== Files Involved ===&lt;br /&gt;
&lt;br /&gt;
summary_helper.rb&lt;br /&gt;
summary_helper_spec.rb&lt;/div&gt;</summary>
		<author><name>Brbhatt</name></author>
	</entry>
	<entry>
		<id>https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Spring_2022&amp;diff=143069</id>
		<title>CSC/ECE 517 Spring 2022</title>
		<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Spring_2022&amp;diff=143069"/>
		<updated>2022-03-20T21:32:30Z</updated>

		<summary type="html">&lt;p&gt;Brbhatt: /* OSS Projects */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== OSS Projects ==&lt;br /&gt;
&lt;br /&gt;
* [[CSC/ECE 517 Spring 2022 - E2203: Adding tests for courses_controller, eula_controller]]&lt;br /&gt;
* [[CSC/ECE 517 Spring 2022 - E2204: Adding tests for markup_styles_controller, lock_controller]]&lt;br /&gt;
* [[CSC/ECE 517 Spring 2022 - E2217: Refactor questionnaires_controller]]&lt;br /&gt;
* [[CSC/ECE 517 Spring 2022 - E2216: Refactor late_policies_controller]]&lt;br /&gt;
* [[CSC/ECE 517 Spring 2022 - E2215: Refactor student_quizzes_controller]]&lt;br /&gt;
* [[CSC/ECE 517 Spring 2022 - E2214: Refactor teams_controller]]&lt;br /&gt;
* [[CSC/ECE 517 Spring 2022 - E2219: Improve assessment360_controller.rb]]&lt;br /&gt;
* [[CSC/ECE 517 Spring 2022 - E2211: Testing for summary_helper]]&lt;br /&gt;
&lt;br /&gt;
== Final Projects ==&lt;/div&gt;</summary>
		<author><name>Brbhatt</name></author>
	</entry>
</feed>