Softwareontwikkeling met Claude Code
Dani Zysman
AI Curriculum Manager @ DataCamp

Zelfde workflow: vraag Claude om de tests te schrijven!

music-analytics-api/
app.py
routes.py
models.py
db_routes.py # Database-backed Blueprint
chinook.db
test_routes.py # Unit tests (Ch.2)
test_db_routes.py # <- Integration tests
CLAUDE.md
> Generate pytest integration tests for @db_routes.py and run them
Test Coverage TestGetArtistAlbums: Kernfunctionaliteit - Ophalen, sorteren, 404's, ongeldige ID's TestDatabaseConnection: Verbindingafhandeling - Pad, sluiten bij succes en fout TestErrorHandling: 500 bij databasefouten TestResponseFormat: JSON-indeling en veldvalidatie Gebruikt tijdelijke SQLite-database, los van chinook.dbAlle 23 tests gedraaid: Geslaagd!
Softwareontwikkeling met Claude Code