Lecture 2 - Test Driven Development Flashcards

(14 cards)

1
Q

What is Unit Testing?

A

Focuses on the smallest unit of software design (functions, etc).

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

What is Integration Testing?

A

Tests the combination of unit tested components.

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

What is Regression Testing?

A

Tests that a component works properly even after adding components to the complete program.

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

What is Alpha Testing?

A

A type of acceptance testing done before the product is released to customers (done by QA).

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

What is Beta Testing?

A

Conducted at one or more customer sites by the end-user of the software. This version is released for a limited number of users.

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

What is System Testing?

A

Tests that all works for different operating systems. Includes security testing, recovery testing, stress testing, and performance testing.

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

JUnit features include:

A
  • Assertions for testing expected results;
  • Test fixtures for sharing common test data;
  • Test runners for running tests.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

What is JUnit?

A

a simple, open source framework to
write and run repeatable tests.

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

import.org.junit

A

Import statement for using the following annotations

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

@Test

A

Identifies a method as a Test Method

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

@Before

A

Executed before each test. It is used to prepare the test environment

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

@After

A

Executed after each test. it is used to cleanup the test environment

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

@BeforeClass

A

Executed once, before the start of all tests. It is used to perform time intensive activities. Methods marked with this annotation need to be defined as static to work with JUnit.

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

@AfterClass

A

Executed once, after all tests have been finished. It is used to perform time clean-up activities, for example, to disconnect from a database. Methods annotated with this annotation need to be defined as static to work with JUnit.

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