开始使用免费开始使用

Build a Test Baseline for Refactoring

The routes.py file in the Music Analytics API has no unit tests. Before we can safely refactor code, we need test coverage to ensure our changes don't break existing behavior. The project has available a unit testing skill already set up in .claude/skills/unit-tests/.

本练习是课程的一部分

Software Development with Claude Code

查看课程

练习说明

  • Start Claude Code with claude.
  • Use the testing skill: /unit-tests @routes.py to generate unit tests.
  • Run the tests to verify they pass.
  • When done, type /exit to exit Claude Code.

动手互动练习

通过我们的互动练习之一,将理论转化为实践

开始练习