Skip to content

Commit

Permalink
Updated documentation to add visual for frontend testing
Browse files Browse the repository at this point in the history
  • Loading branch information
kyeungk committed May 24, 2014
1 parent 912c000 commit 43b53de
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
8 changes: 8 additions & 0 deletions public/getstarted.html
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,14 @@ <h2 id="testInstr">Test Instruction</h2>
<code>bundle exec rspec spec/</code><br><br>
This will run all the tests and output the results. For more information about RSpec, go to: <a href="http://rubydoc.info/gems/rspec-rails/frames">http://rubydoc.info/gems/rspec-rails/frames</a>

<br><br>

To see a more visual version of the frontend tests, run the command:
<code>bundle exec rails s</code>
Then, navigate to <a href="http://localhost:3000/specs">http://localhost:3000/specs</a>

<br><br>
You can see the code coverage statisitics on the root/coverage/index.html, just open it with browser.
</p>

<hr>
Expand Down
3 changes: 2 additions & 1 deletion public/info.html
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@
<li><a href="#riskAssess">Risks Assessment</a></li>
<li><a href="#dataStorage">Data Storage</a></li>
<li><a href="#diagrams">Class and Sequence Diagrams</a></li>
<li><a href="#testPlans">Test Plans</a></li>
<li><a href="#testPlans">Test Strategy</a></li>
<li><a href="#codingStyle">Coding Style Guidelines</a></li>
</ul>
</div>
Expand Down Expand Up @@ -222,6 +222,7 @@ <h2 id="testPlans">Test Strategy</h2>
<li>AngularJS (frontend) also provides a unit testing system. It is a little more complicated because it deals with simulating certain events, but we plan to follow a similar strategy. The major controller functions and model functions will be tested in parallel with developing them. Here is a good reference tutorial we will use: https://docs.angularjs.org/guide/unit-testing for the specifics on how testing works in Angular.</li>
<li>We plan to create test usually while developing a class so testing should be done once a function is done. We will require that before pushing code to the master branch, all of their test code must pass and seen by at least one team member. No automation system seems necessary at the moment--we can just run the tests before pushing. </li>
<li>In general, we may not have the backend implemented at the same time as the frontend (and vice versa), so we will likely hardcode dummy JSON objects on both ends to use for testing, and actually connect them during system testing. </li>
<li>Since most frontend code directly calls backend code, we do not test those functions. We focus our testing code on the functions such as ordering users, tasks, bills, groups for the UI, or splitting bills evenly that are solely frontend logic.
</ul>
</li>
<li><h4>System Test Strategy</h4>
Expand Down

0 comments on commit 43b53de

Please sign in to comment.