Go from never having used a coding agent to working productively and safely with one. The learner should understand what an agent is and how it differs from a chat assistant. They should choose a tool, set up a protected first project, describe tasks the agent can do well, and follow and verify its work. They should recover from bad changes, manage context, and plan bigger changes. They should also use tests as the definition of done and run everyday workflows (bug fixes, features, writing tests, codebase exploration, scripts, small tools, refactors). Throughout, they should keep secrets and systems safe and keep their own understanding growing instead of outsourcing it.
What automated tests are and how to run them card 3 of 6

Running a test suite: one command

builds on: Command output and exit codes, How a code project is laid out
All of a project's tests together form its **test suite**. A **test runner** finds them by their names (for example, any file whose name starts with `test_` and ends in `.py`), runs each one, and reports. 1. `cd` to the project root. 2. Find the command in the README or config. Common ones: `pytest` (Python), `npm test` (JavaScript), `go test ./...` (Go), `cargo test` (Rust). 3. Run it and read the summary line at the bottom. 4. Exit code 0 = all passed. Non-zero = a failure, or the tests couldn't run.
Terms on this card
test
A small piece of code that runs part of your program with a known input and checks that the output is what it should be.
test suite
All the tests in a project together, usually run at once with a single command.
test runner
A program that finds a project's test files, runs every test, and reports which passed and which failed.
pytest
The most common test runner for Python projects. You run it by typing `pytest` in the project root.
npm test
The usual command to run the tests of a JavaScript project. It runs whatever test command the project's config defines.
Learn this step by step on Bytewise
Lesson goal: Explain a test as code that runs your code with known inputs and checks the output. Run a project's test suite with one command and read which tests passed and which failed. · the whole lesson