Upper-Intermediate Testing & QA #test-automation #unit-testing #mocks #test-pyramid

Test Automation Framework Vocabulary

5 exercises — practise the English terms for test doubles, runner hooks, assertion matchers, the test pyramid, and CI/CD pipeline testing language.

0 / 5 completed
Quick reference: Test automation terms
  • Stub — returns canned responses; no call verification
  • Mock — pre-programmed expectations; fails test if expectations unmet
  • Spy — wraps real object; records calls for later assertion
  • beforeEach / afterEach — setup / teardown hooks that run before/after every test
  • Test pyramid — many unit tests → fewer integration tests → very few E2E tests
  • Flaky test — passes or fails non-deterministically; must be quarantined and investigated
1 / 5

A developer is writing a unit test for an email notification service. They want to replace the real email-sending dependency with a fake that simply returns a success response without sending any actual email, and they do not need to verify how many times the method was called. Which test double should they use?