INITIALIZING SECURE CHANNEL...
CPU MEM NET PING9.2 ms SECSECURED
COFFEE—WEB v4.0 // eu-1
ONLINE 2 847 --:--:--
/english > 18. Testing & Quality Assurance
// УРОК 18

Testing & Quality Assurance

B1

Testing & QA Vocabulary

Types of Tests

TypeScopeExample Phrase
Unit testSingle function/class in isolation"We have 90% unit test coverage on the business logic layer."
Integration testMultiple components together"Integration tests verify that our API works with the real database."
End-to-end (E2E)Full user journey"E2E tests simulate a user placing an order from start to finish."
Regression testEnsure old features still work"We run regression tests on every release to catch unintended breakage."

Key Concepts

  • TDD — Test-Driven Development: write tests before the code
  • mock — a fake object that simulates a dependency
  • coverage — percentage of code executed by tests
  • flaky test — a test that sometimes passes and sometimes fails without code changes
// TERMINAL CHALLENGE

Проверь себя

Q1. What is a 'unit test'?
Q2. What is a 'mock' in testing?
Q3. What is a 'flaky test'?
Q4. Complete: 'We have 90% unit test ___ on the business logic layer.'
Q5. What does TDD stand for and what is its key rule?
╔═ GL1TCH v0.1 ═[ПОДКЛЮЧЕНО]═╗ [×]
СОЕДИНЕНИЕ АКТИВНО
запросов:
// сессия #{} начата
>_
[ РАЗРЫВ СВЯЗИ ]
лимит исчерпан...
иду спать... zzZ
хочешь больше? [зарегистрироваться] // +10 запросов в день