Difference between revisions of "RPR-Unit testing"

From "A B C"
Jump to navigation Jump to search
m (Boris moved page RPR-Testing to RPR-Unit testing without leaving a redirect)
m
Line 28: Line 28:
 
== Abstract ==
 
== Abstract ==
 
<section begin=abstract />
 
<section begin=abstract />
<!-- included from "../components/RPR-Testing.components.wtxt", section: "abstract" -->
+
<!-- included from "../components/RPR-Unit_testing.components.wtxt", section: "abstract" -->
 
...
 
...
 
<section end=abstract />
 
<section end=abstract />
Line 37: Line 37:
 
== This unit ... ==
 
== This unit ... ==
 
=== Prerequisites ===
 
=== Prerequisites ===
<!-- included from "../components/RPR-Testing.components.wtxt", section: "prerequisites" -->
+
<!-- included from "../components/RPR-Unit_testing.components.wtxt", section: "prerequisites" -->
 
<!-- included from "ABC-unit_components.wtxt", section: "notes-prerequisites" -->
 
<!-- included from "ABC-unit_components.wtxt", section: "notes-prerequisites" -->
 
You need to complete the following units before beginning this one:
 
You need to complete the following units before beginning this one:
*[[FND-CSC-Unit_testing|FND-CSC-Unit_testing (Unit Testing Best Practice)]]
+
*[[FND-CSC-Test_driven_development|FND-CSC-Test_driven_development (Test Driven Development)]]
  
 
{{Vspace}}
 
{{Vspace}}
Line 46: Line 46:
  
 
=== Objectives ===
 
=== Objectives ===
<!-- included from "../components/RPR-Testing.components.wtxt", section: "objectives" -->
+
<!-- included from "../components/RPR-Unit_testing.components.wtxt", section: "objectives" -->
 
...
 
...
  
Line 53: Line 53:
  
 
=== Outcomes ===
 
=== Outcomes ===
<!-- included from "../components/RPR-Testing.components.wtxt", section: "outcomes" -->
+
<!-- included from "../components/RPR-Unit_testing.components.wtxt", section: "outcomes" -->
 
...
 
...
  
Line 60: Line 60:
  
 
=== Deliverables ===
 
=== Deliverables ===
<!-- included from "../components/RPR-Testing.components.wtxt", section: "deliverables" -->
+
<!-- included from "../components/RPR-Unit_testing.components.wtxt", section: "deliverables" -->
 
<!-- included from "ABC-unit_components.wtxt", section: "deliverables-time_management" -->
 
<!-- included from "ABC-unit_components.wtxt", section: "deliverables-time_management" -->
 
*<b>Time management</b>: Before you begin, estimate how long it will take you to complete this unit. Then, record in your course journal: the number of hours you estimated, the number of hours you worked on the unit, and the amount of time that passed between start and completion of this unit.
 
*<b>Time management</b>: Before you begin, estimate how long it will take you to complete this unit. Then, record in your course journal: the number of hours you estimated, the number of hours you worked on the unit, and the amount of time that passed between start and completion of this unit.
Line 72: Line 72:
  
 
=== Evaluation ===
 
=== Evaluation ===
<!-- included from "../components/RPR-Testing.components.wtxt", section: "evaluation" -->
+
<!-- included from "../components/RPR-Unit_testing.components.wtxt", section: "evaluation" -->
 
<!-- included from "ABC-unit_components.wtxt", section: "eval-none" -->
 
<!-- included from "ABC-unit_components.wtxt", section: "eval-none" -->
 
<b>Evaluation: NA</b><br />
 
<b>Evaluation: NA</b><br />
Line 83: Line 83:
 
<div id="BIO">
 
<div id="BIO">
 
== Contents ==
 
== Contents ==
<!-- included from "../components/RPR-Testing.components.wtxt", section: "contents" -->
+
<!-- included from "../components/RPR-Unit_testing.components.wtxt", section: "contents" -->
  
  
 
http://steipe.biochemistry.utoronto.ca/abc/students/index.php/User:Bronnil.hawill/Best_Practices
 
http://steipe.biochemistry.utoronto.ca/abc/students/index.php/User:Bronnil.hawill/Best_Practices
  
 +
place tests in file, or many files in directory
 +
test_file()
 +
test_dir()
  
  
Line 102: Line 105:
  
 
== Notes ==
 
== Notes ==
<!-- included from "../components/RPR-Testing.components.wtxt", section: "notes" -->
+
<!-- included from "../components/RPR-Unit_testing.components.wtxt", section: "notes" -->
 
<!-- included from "ABC-unit_components.wtxt", section: "notes" -->
 
<!-- included from "ABC-unit_components.wtxt", section: "notes" -->
 
<references />
 
<references />
Line 112: Line 115:
 
<div id="ABC-unit-framework">
 
<div id="ABC-unit-framework">
 
== Self-evaluation ==
 
== Self-evaluation ==
<!-- included from "../components/RPR-Testing.components.wtxt", section: "self-evaluation" -->
+
<!-- included from "../components/RPR-Unit_testing.components.wtxt", section: "self-evaluation" -->
 
<!--
 
<!--
 
=== Question 1===
 
=== Question 1===

Revision as of 17:36, 15 October 2017

Testing R code


 

Keywords:  Code testing in R with the testthat package


 



 


Sorry!

This page is only a stub; it is here as a placeholder to establish the logical framework of the site but there is no significant content as yet. Do not work with this material until it is updated to "live" status.


 


Abstract

...


 


This unit ...

Prerequisites

You need to complete the following units before beginning this one:


 


Objectives

...


 


Outcomes

...


 


Deliverables

  • Time management: Before you begin, estimate how long it will take you to complete this unit. Then, record in your course journal: the number of hours you estimated, the number of hours you worked on the unit, and the amount of time that passed between start and completion of this unit.
  • Journal: Document your progress in your Course Journal. Some tasks may ask you to include specific items in your journal. Don't overlook these.
  • Insights: If you find something particularly noteworthy about this unit, make a note in your insights! page.


 


Evaluation

Evaluation: NA

This unit is not evaluated for course marks.


 


Contents

http://steipe.biochemistry.utoronto.ca/abc/students/index.php/User:Bronnil.hawill/Best_Practices

place tests in file, or many files in directory test_file() test_dir()


 


Further reading, links and resources

 


Notes


 


Self-evaluation

 



 




 

If in doubt, ask! If anything about this learning unit is not clear to you, do not proceed blindly but ask for clarification. Post your question on the course mailing list: others are likely to have similar problems. Or send an email to your instructor.



 

About ...
 
Author:

Boris Steipe <boris.steipe@utoronto.ca>

Created:

2017-08-05

Modified:

2017-08-05

Version:

0.1

Version history:

  • 0.1 First stub

CreativeCommonsBy.png This copyrighted material is licensed under a Creative Commons Attribution 4.0 International License. Follow the link to learn more.