Testing Flashcards

1
Q

what is a unit test

A

test the behaviour of a single code unit

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

what are functional tests

A

test the major functions of the system

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

what are integration tests

A

assess the behaviour of a small number of units working together

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

what is jacoco

A

a test coverage tool that runs tests and gives coverage

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

what is junit

A

it runs the test suite

it is a testing harness for java that allows us to write concise and readable automated tests for java

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

what is a branch (in regard to test coverage)

A

conditional points in code

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

what does writing tests to trap bugs describe

A

when you have found a bug, write a test to trap it

then when you have fixed it, the test will pass

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

what is testing

A

run code to determine how close its behaviour matches requirements

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

what is regression

A

requirements that were previously met now fail

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

what is the junit principle

A

junit test is a method

it invokes the method under test with selected inputs and compares the output with the expected output

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

what are features of junit test methods (4)

A

public

void return type

no input parameters

begin with test or should

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

give test code annotations and their meanings

A

@test comes before the test and is what junit recognises as a test

@before comes before conducting a test
@beforeclass comes before all tests
@after execute the method after test
@afterclass execute method after all tests
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

how do we manage risk (3)

A

incremental development

build on and reuse existing components

minimise scope

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

how do we define scope (3)

A

object, functions, and users that are affected

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

what is to be included in a first release

A

true test of core aspect of functionality

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

give some agile practices (4)

A

short iterations

user stories

iteration/release planning

evolutionary design