Test Driven Development George Mason University. Today’s topics Review of Chapter 1: Testing Go over examples and questions testing in Python.

Slides:



Advertisements
Similar presentations
5.5 INEQUALITIES IN TRIANGLES. Review… Likewise, the smallest angle is always opposite the shortest side!
Advertisements

How SAS implements structured programming constructs
Overview Functional Testing Boundary Value Testing (BVT)
Marking Schema question1: 40 marks question2: 40 marks question3: 20 marks total: 100 marks.
Testing and Quality Assurance
CompSci 230 Software Design and Construction Software Quality 2014S2 Black box testing.
Introduction to Software Engineering Lecture 11 André van der Hoek.
Warm-up: Find the missing side lengths and angle measures This triangle is an equilateral triangle 10 feet 25 feet This triangle is an isosceles triangle.
Test Driven Development George Mason University. Today’s topics Review of Chapter 1: Testing Go over examples and questions testing in Java with Junit.
Programming Logic and Design, Third Edition Comprehensive
Instantaneous Mixing Driven Reactions. Inspiration for this Chapter Comes From In this paper the authors develop the theory we will learn here, which.
Determining if a Triangle is Possible. How many different acute triangles can you draw? How many different right scalene triangles can you draw? Recall.
Informatics 43 – May 5, Restatement of goals Want to verify software’s correctness  Need to test  Need to decide on test cases  No set of test.
Design for Testability
Software Testing and Quality Assurance
Testing of Logic Circuits. 2 Outline  Testing –Logic Verification –Silicon Debug –Manufacturing Test  Fault Models  Observability and Controllability.
Slide 7. Slides 13, 14, 15 NHPP – Non-Homogeneous Poisson Process.
1 Advanced Material The following slides contain advanced material and are optional.
General Testing Background CISC 879 Spring 2007 Lori Pollock.
1 Software Testing and Quality Assurance Lecture 5 - Software Testing Techniques.
This chapter opens with a set of explorations designed to introduce you to new geometric topics that you will explore further. You will learn about the.
CompSci 230 Software Design and Construction
1 Functional Testing Motivation Example Basic Methods Timing: 30 minutes.
Unittest in five minutes Ray Toal How to unit test Not manually, that's for sure You write code that exercises your code Perform assertions.
LING 408/508: Programming for Linguists Lecture 19 November 4 th.
CS 325: Software Engineering March 31, 2015 Software Testing Black-Box Testing White-Box Testing Regression Testing.
© Janice Regan, CMPT 128, Jan CMPT 128 Introduction to Computing Science for Engineering Students Creating a program.
EE 447/EE547 1 VLSI DESIGN Lecture 10 Design for Testability.
Testing. Definition From the dictionary- the means by which the presence, quality, or genuineness of anything is determined; a means of trial. For software.
Introduction to Unit Testing Jun-Ru Chang 2012/05/03.
Software Testing. Definition To test a program is to try to make it fail.
Domain testing Tor Stålhane. Domain testing revisited We have earlier looked at domain testing as a simple strategy for selecting test cases. We will.
1 740f02frankl25 Evaluating Testing Methods by Delivered Reliability Frankl, Hamlet, Littlewood, Strigini IEEE TOSE Aug98.
Introduction to CMOS VLSI Design Test. CMOS VLSI DesignTestSlide 2 Outline  Testing –Logic Verification –Silicon Debug –Manufacturing Test  Fault Models.
By Ian Jackman Davit Stepanyan.  User executed untested code.  The order in which statements were meant to be executed are different than the order.
Python Programming Using Variables and input. Objectives We’re learning to build functions and to use inputs and outputs. Outcomes Build a function Use.
CSE403 Software Engineering Autumn 2001 More Testing Gary Kimura Lecture #10 October 22, 2001.
Summarizing “Structural” Testing Now that we have learned to create test cases through both: – a) Functional (blackbox)and – b) Structural (whitebox) testing.
All you need for almost any angle problem
Chapter 4 Practice cont.. Practice with nested loops 1.What will be the output of the following program segment: 1.for (int i = 1; i
1841f07subdomains2Aug23 Question u What is the main purpose of software testing?
Python Selection. All the programs you have been developing so far have been sequential, this means that each instruction is executed in a set order.
Math – What is a Function? 1. 2 input output function.
Sequencing The most simple type of program uses sequencing, a set of instructions carried out one after another. Start End Display “Computer” Display “Science”
Equivalence Class Testing In chapter 5, we saw that all four variations of boundary value testing are vulnerable to –gaps of untested functionality, and.
Software Construction Lecture 19 Software Testing-2.
Integration testing Integrate two or more module.i.e. communicate between the modules. Follow a white box testing (Testing the code)
LING 408/508: Programming for Linguists Lecture 20 November 16 th.
TESTING FUNDAMENTALS BY K.KARTHIKEYAN.
Debugging and Printing George Mason University. Today’s topics Review of Chapter 3: Printing and Debugging Go over examples and questions debugging in.
1 Software Testing. 2 Equivalence Class Testing 3 The use of equivalence class testing has two motivations: –Sense of complete testing –Avoid redundancy.
Equivalence Class Testing Use the mathematical concept of partitioning into equivalence classes to generate test cases for Functional (Black-box) testing.
Copyright © 2014 Curt Hill Algorithms From the Mathematical Perspective.
Week 6 MondayTuesdayWednesdayThursdayFriday Testing III Reading due Group meetings Testing IVSection ZFR due ZFR demos Progress report due Readings out.
Dictionaries and File I/O George Mason University.
Informatics 43 – May 3, Restatement of goals Want to verify software’s correctness  Need to test  Need to decide on test cases  No set of test.
Lecture 5: Design for Testability. CMOS VLSI DesignCMOS VLSI Design 4th Ed. 12: Design for Testability2 Outline  Testing –Logic Verification –Silicon.
Grade 7 Chapter 4 Functions and Linear Equations.
Topic 2: Hardware and Software
CS 641 – Requirements Engineering
Informatics 43 – May 3, 2016.
Notes Over 2.1 Function {- 3, - 1, 1, 2 } { 0, 2, 5 }
Coding Concepts (Standards and Testing)
Evaluating Logarithms
Exponential and Logarithmic Forms
CSE403 Software Engineering Autumn 2000 More Testing
Every number has its place!
முக்கோண சமனின்மைப் பண்பு
 Is a machine that is able to take information (input), do some work on (process), and to make new information (output) COMPUTER.
Programming Techniques
Presentation transcript:

Test Driven Development George Mason University

Today’s topics Review of Chapter 1: Testing Go over examples and questions testing in Python

Testing review What is a bug? fault? failure? What is the goal of testing? What are the benefits of test-driven development? What makes up a test case? – test input(s) – test result What is a test suite?

Input Domain Characterization What are the partitions of the inputs? What are the partitions for the outputs? (equilateral, isosceles, etc…) Does order matter? (this will almost always be yes, but the order of what is important)

Boundary Conditions What are the partitions of the inputs? What are the partitions for the outputs? (equilateral, isosceles, etc…) Does order matter? (this will almost always be yes, but the order of what is important) What are the boundary cases for the input partitions? What are the boundary cases for the output partitions? What’s the smallest input I can have? What’s the largest input I can have?

Inputs of varying number What are the partitions of the inputs? What are the partitions for the outputs? (equilateral, isosceles, etc…) Does order matter? (this will almost always be yes, but the order of what is important) What are the boundary cases for the input partitions? What are the boundary cases for the output partitions? What’s the smallest input I can have? What’s the largest input I can have? With sequences (like lists), what is the smallest size? What is the next smallest size?

Examples What examples did you have trouble with?

Converting your tests to python Python has several good resources for writing tests – However, we won’t use them this semester, because we need to know python first! This semester, we will write test cases for all of our programming projects – Follow the instructions on the project specifications

Running test cases Tests are meant to be run automatically – Again, python has resources for testing, that unfortunately we can’t use yet – Refer to the project specifications for how to run your tests – Recall, your tests will all fail at first before you write any code – this is okay!

Questions?