Testing Flashcards
what is a unit test
test the behaviour of a single code unit
what are functional tests
test the major functions of the system
what are integration tests
assess the behaviour of a small number of units working together
what is jacoco
a test coverage tool that runs tests and gives coverage
what is junit
it runs the test suite
it is a testing harness for java that allows us to write concise and readable automated tests for java
what is a branch (in regard to test coverage)
conditional points in code
what does writing tests to trap bugs describe
when you have found a bug, write a test to trap it
then when you have fixed it, the test will pass
what is testing
run code to determine how close its behaviour matches requirements
what is regression
requirements that were previously met now fail
what is the junit principle
junit test is a method
it invokes the method under test with selected inputs and compares the output with the expected output
what are features of junit test methods (4)
public
void return type
no input parameters
begin with test or should
give test code annotations and their meanings
@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 do we manage risk (3)
incremental development
build on and reuse existing components
minimise scope
how do we define scope (3)
object, functions, and users that are affected
what is to be included in a first release
true test of core aspect of functionality