Week 5 Flashcards
What is unit testing?
Unit tests checks if classes in a project behaves correctly
What is integration testing?
Integration test checks that components works together and that interfaces between components works as intended.
What is system testing?
System testing checks if the entire system works as intended.
What is acceptance testing?
Acceptance testing checks if users agree that the system does what it is meant to do.
What are testing framewroks?
Testing frameworks are libraries for making writing and running tests easier.
What is regression testing?
Regression testing checks if new parts added works and that older parts is still functioning as intended.
What is black box testing?
Black box testing checks part of code where one does not now hoe the code works, only what the code is supposed to do.
What is white box testing?
White box testing is testing designed with the knowledge of the internal implementation.
What is test-driven development?
Test-driven development is writing tests before the actual code.
What is coverage in testing?
Coverage is how much of the code that has been tested.
What is statement coverage?
Statement coverage checks how many statements are excecuted in different scenarios.
What is branch coverage?
Branch coverage look into the different pathways of decision statements, i.e if-else statements.
What is path coverage?
Path coverage checks if loops work as inteded.
How do you write basic Javadoc comments?
The comment must begin with /** and end with */. For Each line in the Javadoc comment * must be in front.
/**
*
*
*/
What must be included in a Javadoc comment?
Javadoc comment must describe what the code does, all the parameters and what is returned.
/**
* This is what the following code does
* @param parameterName desciption
* @return parameterName description
*/
What is procedural abstraction?
Procedural abstraction is concidering methods based on what they do, not how they do it.
What are the benefits of procedural abstraction?
Procedural abstraction makes programs easier to read ans maintain by keeping the size and complexity of methods small.