테스트
자신 있게 배포하세요: 단위, 통합, 엔드투엔드 테스트.
Tests are code that checks your code, so you can change things without fear. This track starts with your first expect in Vitest and ends with a team's whole safety net: clear unit tests, edge cases and boundaries, test doubles for time and randomness, an integration test for a Go web handler, end-to-end tests that drive a real browser with Playwright, flaky tests and how to kill them, and the red, green, refactor loop of TDD.
Examples use TypeScript with Vitest, one Go test and Playwright, all on the features of a small social app called Nova: points, tiers, leaderboards, sign-ups and posts. Basic JavaScript or TypeScript is all you need to start.
- 레슨
- 14
- 시간
- 2시간
- 난이도
- 초급
이 코스의 레슨은 당분간 영어로 제공돼요.
- 브론즈 도전 가능
- 실버 도전 가능
- 골드 잠김
실력을 증명할 준비됐나요?
브론즈, 실버, 골드 세 가지 시험이 기다리고 있어요.
이 코스를 마치면 할 수 있는 것
- Write clear unit tests with Vitest's
describe,itandexpect - Hunt edge cases and test both sides of every boundary
- Replace clocks, randomness and email with test doubles
- Test a Go HTTP handler with
httptest - Drive a real browser with Playwright, without sleeps or hardcoded ports
- Work in a red, green, refactor loop and read coverage wisely
여정
1 챕터 1Your first tests
Why tests matter, the shape of a good test, edge cases and test doubles.
0 / 52 챕터 2Testing like a team
The test pyramid, integration and end-to-end tests, flaky tests and TDD.
0 / 53 챕터 3The road ahead
Beyond the basics: property-based tests, contract tests, mutation testing and load tests.
0 / 4