Presentation is loading. Please wait.

Presentation is loading. Please wait.

Darko Marinov February 5, 2009

Similar presentations


Presentation on theme: "Darko Marinov February 5, 2009"— Presentation transcript:

1 Darko Marinov February 5, 2009
cs498dm Software Testing Darko Marinov February 5, 2009

2 Administrative Info Mailing list confirmed Wiki permissions set up
Textbook: Introduction to Software Testing by Paul Ammann and Jeff Offutt Next lectures will be based on the textbook Project: testing refactorings Consider forming groups of 2-3 students Consider which refactorings you’d like to test

3 Previous Lectures Introduction on “Bugs” Refactoring
Why look for bugs? What are bugs? Where they come from? How to detect them? Refactoring What it is? Why you need it? How to perform it? Example Interactive Testing Session TriTyp: Given three integers for the lengths of the sides of a triangle, find the type of triangle Testing fun/hard? Terminology? Testing goal?

4 Coverage Criteria Did we have any test plan or purpose?
Did we specify any test requirements? How good are our tests? Did we generate enough tests? Criterion: rule that imposes test requirements Coverage: satisfaction of test requirements

5 Why JUnit (or a Similar Tool)?
We want to test (early and often) Automated testing Regression testing Alternatives have some cons Different language for scripting A lot of printing if no checking of result Using “main” does not compose well

6 Today’s Lecture: Coverage
Statement coverage

7 Problem Set 1 Will go out this week
Four problems on Chapter 1 and JUnit Two problems on refactorings Total of 120 points, but you need only 100 for maximum score Grading will be strict! Prioritize your work

8 Next Lecture Tuesday, February 10 Graph Coverage for Code
Continuing past statement coverage Project assignment: try some refactorings Think which you’d like to test for your project Discuss ideas with me


Download ppt "Darko Marinov February 5, 2009"

Similar presentations


Ads by Google