Unit Testing Flashcards

(6 cards)

1
Q

What is static unit testing?

A

The code is examined over all possible behaviors that might arise during run time

Code of each unit is validated against the requirements w/o executing the program

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What is dynamic testing?

A

A program unit is executed and its outcomes are observed

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What is the code review technique of Inspection?

A

It is a step by step peer review of a work product where each step is compared with pre determined criteria

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What is the code review technique of Walk through?

A

It is the review of code where the author would lead the team through a simulated (or manual) execution of code using some pre-defined scenarios

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What is mutation testing?

A

Introducing small bugs (mutations) into the code base to evaluate the quality of the test suite

If the tests fails to detect the mutations, then they are not good enough

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What is a test oracle?

A

It is a mechanism that is able to detect if a test passes or fails by defining the expected output/behavior for some given outputs

How well did you know this?
1
Not at all
2
3
4
5
Perfectly