A test automation consultant documents their first real experience using Claude Code (with Opus 4.6) to refactor the RestAssured.Net library. The task involved extracting logic from an oversized ExecutableRequest class into a new RequestBodyFactory class, then further improving it by grouping arguments into a RequestBodySettings type. Key guardrails used: no AI touching tests, thorough human review before every commit, and small incremental steps. All existing tests passed after refactoring. Main takeaways: Claude is effective for refactoring tasks when paired with solid guardrails (linters, tests, human review), and humans should retain ownership of test writing and code review.
Sort: