Testing and Debugging Flashcards.

0.0(0)
studied byStudied by 0 people
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
Card Sorting

1/16

flashcard set

Earn XP

Description and Tags

Flashcards about Testing and Debugging based on lecture notes.

Study Analytics
Name
Mastery
Learn
Test
Matching
Spaced

No study sessions yet.

17 Terms

1
New cards

What is debugging?

The process of finding bugs (errors) in code and fixing them, involving understanding, finding, and solving the error.

2
New cards

What are three main steps in debugging code?

Understanding that there is an error, finding the error, and solving the error

3
New cards

What is rubber duck debugging?

A debugging technique where you explain your problem to an inanimate object (like a rubber duck) to help clarify your thinking and find a solution.

4
New cards

What is interactive debugging?

Debugging using an interactive debugger involves executing code in debug mode with breakpoints to understand why the code isn't working, allowing step-by-step code examination.

5
New cards

What is the purpose of Breakpoints in interactive debugging?

Breakpoints provide information on what’s happening at a specific place in the code

6
New cards

What is test driven development (TDD)?

Software development practice where developers write automated tests before writing the actual code that needs to be tested.

7
New cards

What are the steps of Test Driven Development?

Write tests, Make tests fail, Write the code, Make tests pass, Repeat

8
New cards

What is Doctest?

A testing tool that is the mainstay of your testing toolkit, where tests are written in plain text and can be embedded in human-readable explanations.

9
New cards

What are the types of testing?

Unit testing, Integration testing, System testing, Regression Testing, User Acceptance Testing (UAT), Stress Testing

10
New cards

What is Unit Testing?

Testing of the smallest possible pieces of a program - it's the foundation upon which everything else is based

11
New cards

What is Integration Testing?

Tests that encompass interactions between related units.

12
New cards

What is System Testing?

System tests are an extreme form of integration tests.

13
New cards

What is Regression Testing?

Ensures that new code changes don't adversely affect existing functionalities. It involves re-testing of the entire application or a significant part of it after modifications.

14
New cards

What is User Acceptance Testing (UAT)?

Involves end-users testing the software to ensure that it meets their requirements and is ready for production release.

15
New cards

What is Stress Testing?

Pushes the system beyond its specified limits to identify how it behaves under extreme conditions and to ensure it doesn’t crash unexpectedly.

16
New cards

How to skip a test in Doctest?

Use +SKIP directive. For example: >>> 'This test would fail.' # doctest: +SKIP

17
New cards

When to use +ELLIPSIS directive in Doctest?

Use +ELLIPSIS to match any substring in the actual output. For example: func(56, "hello") # doctest: +ELLIPSIS