From: Katy Huff Date: Fri, 17 Feb 2012 00:06:36 +0000 (-0600) Subject: Uniform headings X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=08e50374c109abaadc4672a3f932f9548b3b7752;p=swc-testing-nose.git Uniform headings W. Trevor King: I dropped everything from the original f7bd97a except for the Python-10-Testing-your-program.rest modification. Conflicts: Python-5:-Strings-and-File-I-O.rest Python-6:-Object-oriented-programming.rest Python2-ListsDictsSetsTuples.rest Python3-FlowControl.rest Python4-FunctionsAndStandardModules.rest --- diff --git a/Python-10-Testing-your-program.rest b/Python-10-Testing-your-program.rest index a21e953..d9ab32d 100644 --- a/Python-10-Testing-your-program.rest +++ b/Python-10-Testing-your-program.rest @@ -1,3 +1,13 @@ + + +[[Back To NumPy | Python9-NumPy]] - [[Forward To Home | Home]] + +---- + +**Presented By Tommy Guy** + +**Based on materials by Katy Huff and Rachel Slaybaugh** + **What is testing?** Software testing is a process by which one or more expected behaviors and results from a piece of software are exercised and confirmed. Well chosen tests will confirm expected code behavior for the extreme boundaries of the input domains, output ranges, parametric combinations, and other behavioral edge cases. @@ -236,4 +246,4 @@ There are a few tests for the mean function that we listed in this lesson. What Some people develop code by writing the tests first. -If you write your tests comprehensively enough, the expected behaviors that you define in your tests will be the necessary and sufficient set of behaviors your code must perform. Thus, if you write the tests first and program until the tests pass, you will have written exactly enough code to perform the behavior your want and no more. Furthermore, you will have been forced to write your code in a modular enough way to make testing easy now. This will translate into easier testing well into the future. \ No newline at end of file +If you write your tests comprehensively enough, the expected behaviors that you define in your tests will be the necessary and sufficient set of behaviors your code must perform. Thus, if you write the tests first and program until the tests pass, you will have written exactly enough code to perform the behavior your want and no more. Furthermore, you will have been forced to write your code in a modular enough way to make testing easy now. This will translate into easier testing well into the future.