Explore Library
QA & Software TestingTest Levels (Unit, Integration, System, Acceptance)

45 items

1

Buggy Stub in Unit Test

Code Quiz
2

Mocks, Stubs & the Testing Pyramid

Quiz
3

Jest Unit Test Bug

Code Quiz
4

Arrange-Act-Assert in Jest Unit Tests

Quiz
5

Mocks, Stubs & The Testing Pyramid

Slides / Video
6

Unit Testing With Jest

Slides / Video
7

Mocks, Stubs & the Testing Pyramid

Flashcard
8

Unit Testing with Jest (AAA)

Flashcard
9

Unit Testing & Mocking with Jest

Slides / Video
10

Unit Testing & Mocking in Jest

Flashcard
11

Four Test Levels Compared

Slides / Video
12

Order of Test Levels

Slides / Video
13

Acceptance Testing: User & Business Validation

Slides / Video
14

Acceptance Testing: Definition and Purpose

Slides / Video
15

System Testing: The Whole System

Slides / Video
16

System Testing: Definition and Purpose

Slides / Video
17

Integration Testing: Combining Components

Slides / Video
18

Integration Testing: Definition and Purpose

Slides / Video
19

Scope of Unit Testing

Quiz
20

Definition of Integration Testing

Quiz
21

Purpose of Integration Testing

Quiz
22

Definition of System Testing

Quiz
23

Definition of Acceptance Testing

Quiz
24

Scope of System Testing

Quiz
25

Who Performs Acceptance Testing

Quiz
26

User Acceptance Testing Basics

Quiz
27

Distinguishing the Four Levels

Quiz
28

What Test Levels Are

Quiz
29

Definition of Unit Testing

Quiz
30

Who Performs Unit Testing

Quiz
31

Order of Test Levels

Quiz
32

Definition of Integration Testing

Flashcard
33

What Are Test Levels

Flashcard
34

Types of Acceptance Testing

Flashcard
35

Definition of Acceptance Testing

Flashcard
36

Definition of Unit Testing

Flashcard
37

Who Performs Unit Testing

Flashcard
38

Integration Testing Approaches

Flashcard
39

Order/Sequence of Test Levels

Flashcard
40

Scope Comparison Across Test Levels

Flashcard
41

Stubs and Drivers in Integration Testing

Flashcard
42

Definition of System Testing

Flashcard
43

Unit Testing: Who and What

Slides / Video
44

Unit Testing: Definition and Purpose

Slides / Video
45

What Are Test Levels and Why They Exist

Slides / Video
Code QuizAdvanced

Jest Unit Test Bug

Spot the assertion mistake in a Jest arrange-act-assert unit test.

Codejavascript
function createUser(name) {
  return { name: name, active: true };
}

test('createUser returns correct object', () => {
  // Arrange
  const name = 'Ada';

  // Act
  const result = createUser(name);

  // Assert
  expect(result).toBe({ name: 'Ada', active: true });
});

This test always fails even though createUser works correctly. What is the bug?