Skip to content

Which Kind of Test Is This?

Run the Which Kind of Test Is This? MicroSim Fullscreen

Which Kind of Test Is This? screenshot

About This MicroSim

A test's kind depends on how much of the app it runs, not on what topic it covers. This MicroSim gives you ten tests from the dating-safety app and four bins: Unit, Integration, End-to-end and Smoke.

Several cards share a topic. Two are about who can reach a scan, and two are about the score. They still belong in different bins, because one runs a single function, one runs a route with the database, and one drives the whole app through a browser.

Cards 3, 5 and 10 are illustrative. The rest follow the running example in this book.

How to Use

  1. Point at a card in the stack to read it in full.
  2. Drag each card into the bin for its kind. Tick Show hint if you want a nudge. You can move cards between bins until you press Check.
  3. Press Check. Each card turns green or pink. Point at any card to see why it belongs where it does.
  4. Eight of ten right on the first attempt shows mastery. Start over gives you a practice round; the first score stays on screen.

Notice cards 2 and 7. Both test who can reach data, but only one uses a browser.

Iframe Embed Code

You can add this MicroSim to any web page by adding this to your HTML:

<iframe src="https://arunbatchu.github.io/good-enough-engineering/sims/test-kind-sorter/main.html"
        height="594px"
        width="100%"
        scrolling="no"></iframe>

Lesson Plan

Grade Level

Adult professional (Good Enough Engineering)

Duration

10-15 minutes

Learning Objective

Classify ten test descriptions from the dating-safety app as unit, integration, end-to-end or smoke tests, with at least eight of ten correct.

Prerequisites

  • Automated test
  • Unit test
  • Integration test
  • End-to-end test
  • Browser test tool
  • Smoke test

Activities

  1. Exploration (3 min): Read the four kinds in the chapter table. Point at a few cards without sorting them.
  2. Guided Practice (5 min): Sort all ten cards. For each, ask: does it use a browser, a database, or run after a deploy?
  3. Assessment (5 min): Press Check. Discuss any card you got wrong, and why cards 2 and 7 differ.

Assessment

Mastery is 8 of 10 cards in the right bin on the first attempt. Opening a hint is exploration, not evidence.

References

  1. Playwright documentation - a common browser test tool for end-to-end tests.
  2. Vitest documentation - a common test runner for unit and integration tests.
  3. Martin Fowler: The Practical Test Pyramid - why most tests should be small and fast.