Yue Jia, Mark Harman King’s College London CREST Constructing Subtle Faults Using Higher Order Mutation Testing Higher Order Mutation Testing.

Slides:



Advertisements
Similar presentations
Triangles TOPIC 9 LESSON 9-5.
Advertisements

An Analysis and Survey of the Development of Mutation Testing by Yue Jia and Mark Harmon A Quick Summary For SWE6673.
7/3/2015 Geometry 1 Classifying Triangles Free powerpoints at
Mathematics Types of Triangles By: Jenny Ordonez.
EXAMPLE 1 Classifying a Triangle a.Classify XYZ by its angles. b. Classify XYZ by its side lengths. SOLUTION a. The triangle has a right angle at Y. So,
Classifying Triangles Students will classify triangles using the lengths of the sides and the angles. S. Calahan October 2010.
Classify Triangles Standard 4C.
Triangles Review.
EQUILATERAL & ISOSCELES Quiz tomorrow. CLASSIFY the triangle by ANGLES and SIDES Angles: acute, obtuse, right Sides:equilateral, isosceles, scalene 91.
Types of 2 D Shapes and There Properties 1)A shape with 3 sides is called a triangle 2)A shape with 4 sides is called a quadrilateral 3)The general term.
Triangle Inequality Notes. Triangle Inequality Theorem  Scalene triangle: A triangle that has no congruent (equal) sides. None of their angles are congruent.
Triangle A polygon with three sides and three angles. A triangle can be names by its’ side lengths and angles. – Side lengths: isosceles, equilateral,
EXAMPLE 1 Standardized Test Practice SOLUTION Let ( x 1, y 1 ) = ( –3, 5) and ( x 2, y 2 ) = ( 4, – 1 ). = (4 – (–3)) 2 + (– 1 – 5) 2 = = 85 (
TRIANGLES AND TYPES OF TRIANGLES. A triangle has three sides.
Types of Triangles. Equilateral Triangle All sides are the same length and all the angles are the same length.
Triangles 1st year P26 Chapter 4.
Types of Triangles. Angles The angles in a triangle add up to o + 60 o + 60 o =
AGENDA WARM-UP LESSON 18 CORRECTIONS LESSON 19 QUESTIONS LESSON 20 EXIT CARD.
Classifying Triangles Math 7 Ms. Conway Math 7 Ms. Conway.
Equilateral, Isosceles, Scalene, Right, Acute, Obtuse Types of Triangles.
4.1 Types of Triangles You can classify a triangle by its sides and its angles. There are THREE different classifications for triangles based on their.
Warm Up # 4 Classify and name each angle. 1 ab c d.
Classifying Triangles How many degrees can be found in all triangles? 180 We can classify triangles 2 ways: By their angles By their sides.
Classifying Triangles. Two Ways to Classify Triangles  By Their Sides  By Their Angles.
Lesson 8.3 Concept: How to classify triangles by their sides and angles. An equilateral triangle has three sides of the same length. An isosceles triangle.
Learning Objective Identify triangles using their sides.
Lesson 10-4 Pages Triangles. What you will learn! How to identify and classify triangles.
Notes Over 10.1 Finding the Distance Between Two Points Find the distance between the two points.
Mathematics Types of Triangles.
Triangles.
Classifying Triangles by sides and angles
Classify the triangle by its angles and by its sides.
3.6 Types of Triangles Objective:
Triangles.
Classifying Triangles
Triangles.
TRIANGLES BY ASHANTI.
TRI NGLES 2 ways to classify: By Sides By Angles 60 4” 4” 4” 60 60
CLASSIFICATIONS, ANGLES AND MORE!!
Classifying Triangles
Classifying Triangles
Classifying Triangles
Triangles Review.
CLASSIFICATIONS, ANGLES AND MORE!!
Classifying Triangles
Classifying Triangles
Geometry.
Right Triangle Definition: A triangle with one 90 degree angle.
Explain why is greater than
Classifying Triangles
Classifying Triangles
Classifying Triangles
Classifying Triangles
Objective - To classify triangles.
Triangles Guided Notes
Add up all the sides Perimeter of Area of a Rectangle: ANY polygon:
Directions: Cut out each of the triangles below
Identify type of triangle
Classifying Triangles
Types of Triangles Thursday, 11 April 2019.
Types of Triangles Thursday, 11 April 2019.
Objectives Classify triangles by their angle measures and side lengths. Use triangle classification to find angle measures and side lengths.
4-1 Vocabulary Acute triangle Equiangular triangle Right triangle
Intro to Triangles.
Classifying Triangles
Classifying Triangles
Classifying Triangles
4-1 Classifying Triangles
Area and Perimeter Triangles.
Classifying Triangles
Presentation transcript:

Yue Jia, Mark Harman King’s College London CREST Constructing Subtle Faults Using Higher Order Mutation Testing Higher Order Mutation Testing

Agenda Background Problems Solution Empirical Study Summary Mark Harman and Yue Jia King’s College London, CREST Centre BackgroundProblemsSolutionEmpirical StudySummary

Mutation Testing Mark Harman and Yue Jia King’s College London, CREST Centre ProblemsSolutionEmpirical StudySummary Background

Mutation Testing Which test case is better? Mark Harman and Yue Jia King’s College London, CREST Centre ProblemsSolutionEmpirical StudySummary Background

Mutation Testing Mark Harman and Yue Jia King’s College London, CREST Centre ProblemsSolutionEmpirical StudySummary Background

Mutation Testing Mark Harman and Yue Jia King’s College London, CREST Centre ProblemsSolutionEmpirical StudySummary Background

Mutation Testing Generate Mutants > First Order MutantOriginal Program Mark Harman and Yue Jia King’s College London, CREST Centre ProblemsSolutionEmpirical StudySummary Background

Mutation Testing Generate Mutants > + > Higher Order MutantFirst Order MutantOriginal Program Mark Harman and Yue Jia King’s College London, CREST Centre ProblemsSolutionEmpirical StudySummary Background

Mutation Testing Generate Mutants > + > Higher Order MutantFirst Order MutantOriginal Program > > First Order MutantHigher Order Mutant Mark Harman and Yue Jia King’s College London, CREST Centre ProblemsSolutionEmpirical StudySummary Background

Problem 1970s Computational cost Mark Harman and Yue Jia King’s College London, CREST Centre BackgroundSolutionEmpirical StudySummary Problems

Problem 1970s Computational cost e.g. Triangle LoC 50 FOM 500 HOM Mark Harman and Yue Jia King’s College London, CREST Centre BackgroundSolutionEmpirical StudySummary Problems

Problem 1970s Computational cost e.g. Triangle LoC 50 FOM 500 HOM Mark Harman and Yue Jia King’s College London, CREST Centre BackgroundSolutionEmpirical StudySummary Problems

Problem 1970s Computational cost e.g. Triangle LoC 50 FOM 500 HOM cost Mark Harman and Yue Jia King’s College London, CREST Centre BackgroundProblemsSolutionEmpirical StudySummary Problems

Solution 1980s Coupling effect hypothesis cost Mark Harman and Yue Jia King’s College London, CREST Centre BackgroundSolutionEmpirical StudySummary Problems

Solution 1980s Coupling effect hypothesis cost Mark Harman and Yue Jia King’s College London, CREST Centre BackgroundSolutionEmpirical StudySummary Problems

Solution 1980s Simple Complex cost If a test set kills simple faults, it also kills the complex faults Mark Harman and Yue Jia King’s College London, CREST Centre BackgroundSolutionEmpirical StudySummary Problems

Solution 1980s Coupling effect hypothesis cost Mark Harman and Yue Jia King’s College London, CREST Centre BackgroundSolutionEmpirical StudySummary Problems

Solution 1990s Selective mutation / Mutation sampling cost Mark Harman and Yue Jia King’s College London, CREST Centre BackgroundSolutionEmpirical StudySummary Problems

Selected First Order Mutants > > < < a a b b Trivial Fault Mark Harman and Yue Jia King’s College London, CREST Centre BackgroundSolutionEmpirical StudySummary Problems

Subtle Fault 90% of the real faults are complex faults (Purushothaman and Perry) HOMs -> Subtle faults Mark Harman and Yue Jia King’s College London, CREST Centre BackgroundSolutionEmpirical StudySummary Problems

Subtle Fault Solution Programmer Mark Harman and Yue Jia King’s College London, CREST Centre BackgroundSolutionEmpirical StudySummary Problems

Subtle Fault Solution Programmer 1 Mark Harman and Yue Jia King’s College London, CREST Centre BackgroundSolutionEmpirical StudySummary Problems

Subtle Fault Solution Programmer 2 Mark Harman and Yue Jia King’s College London, CREST Centre BackgroundSolutionEmpirical StudySummary Problems

Subtle Fault Solution Programmer 3 Mark Harman and Yue Jia King’s College London, CREST Centre BackgroundSolutionEmpirical StudySummary Problems

Subtle Fault 4 Mark Harman and Yue Jia King’s College London, CREST Centre BackgroundSolutionEmpirical StudySummary Problems Solution Programmer

Solution 1990s Selective mutation / Mutation sampling cost Mark Harman and Yue Jia King’s College London, CREST Centre BackgroundSolutionEmpirical StudySummary Problems

Solution 1980s Coupling effect hypothesis cost Mark Harman and Yue Jia King’s College London, CREST Centre BackgroundSolutionEmpirical StudySummary Problems

cost Problem 1970s Computational cost Mark Harman and Yue Jia King’s College London, CREST Centre BackgroundSolutionEmpirical StudySummary Problems

Solution Higher order mutation testing cost Mark Harman and Yue Jia King’s College London, CREST Centre BackgroundProblemsEmpirical StudySummary Solution

Higher order mutation testing …Search Based Optimization cost Mark Harman and Yue Jia King’s College London, CREST Centre BackgroundProblemsEmpirical StudySummary Solution

Higher Order Mutation Testing Increase the subtlety Reduce the Oracle effort Reduced number of equivalent mutants Mark Harman and Yue Jia King’s College London, CREST Centre BackgroundProblemsEmpirical StudySummary Solution

Higher Order Mutant Most common case Test set T Ta Tb Tc Tabc Mark Harman and Yue Jia King’s College London, CREST Centre BackgroundProblemsEmpirical StudySummary Solution

Higher Order Mutant Uncommon case Ta Tb Tc Tabc Mark Harman and Yue Jia King’s College London, CREST Centre BackgroundProblemsEmpirical StudySummary Solution

Higher Order Mutant Subsuming higher order mutant Ta Tb Tc Tabc Mark Harman and Yue Jia King’s College London, CREST Centre BackgroundProblemsEmpirical StudySummary Solution

Higher Order Mutant Subsuming higher order mutant Ta Tb Tc Tabc Mark Harman and Yue Jia King’s College London, CREST Centre BackgroundProblemsEmpirical StudySummary Solution

Higher Order Mutant Strongly Subsuming higher order mutant Ta Tb Tc Tabc If a test case kills HOM M abc, it also kills the FOM F a, F b and F c Mark Harman and Yue Jia King’s College London, CREST Centre BackgroundProblemsEmpirical StudySummary Solution

Higher Order Mutation Testing Increase the subtlety Reduce the Oracle effort Reduced number of equivalent mutants Mark Harman and Yue Jia King’s College London, CREST Centre BackgroundProblemsEmpirical StudySummary Solution

Higher Order Mutation Testing Increase the subtlety Reduce the Oracle effort Mutants Reduced number of equivalent mutants Mark Harman and Yue Jia King’s College London, CREST Centre BackgroundProblemsEmpirical StudySummary Solution

Higher Order Mutation Testing Increase the subtlety Reduce the Oracle effort Mutants Test cases Reduced number of equivalent mutants Mark Harman and Yue Jia King’s College London, CREST Centre BackgroundProblemsEmpirical StudySummary Solution

Higher Order Mutation Testing Increase the subtlety Reduce the Oracle effort Mutants Test cases Reduced number of equivalent mutants Mark Harman and Yue Jia King’s College London, CREST Centre BackgroundProblemsEmpirical StudySummary Solution

Results Mutants LoC FOM sHOM Triangle Tcas Schedule Totinfo Printtokens Space Mark Harman and Yue Jia King’s College London, CREST Centre BackgroundProblemsSolution Empirical Study Summary

Algorithms Greedy Hill Climbing Genetic Algorithm Mark Harman and Yue Jia King’s College London, CREST Centre BackgroundProblemsSolutionSummary Empirical Study

Results Mark Harman and Yue Jia King’s College London, CREST Centre BackgroundProblemsSolutionSummary Empirical Study

Triangle Program Classify triangle by the lengths of the sides Equilateral Isosceles Scalene Mark Harman and Yue Jia King’s College London, CREST Centre BackgroundProblemsSolutionSummary Empirical Study

Strongly Subsuming HOM if(trian == 1 && a + b > c) if(trian > 1 && a + b > c) if(trian == 1 && a + b <= c) a == c && a + b > c && a + c <= b b == c && a + b > a && b + c <= a a == b && a + b > c a == b && a + b <= c Mark Harman and Yue Jia King’s College London, CREST Centre BackgroundProblemsSolutionSummary Empirical Study

Tool MiLu Deer Horse Cow Donkey rarevaluable Strongly Subsuming HOM (Père David's Deer) Mark Harman and Yue Jia King’s College London, CREST Centre BackgroundProblemsSolutionSummary Empirical Study

Mark Harman and Yue Jia King’s College London, CREST Centre BackgroundProblemsSolutionSummary Empirical Study

Summary Higher order mutation testing Quality of mutant Computational Cost Question Are real faults higher order mutants? Thanks Mark Harman and Yue Jia King’s College London, CREST Centre BackgroundProblemsSolutionEmpirical Study Summary