Work with Tests
Suppose you need to add tests for uncovered code.
Identify Untested Code
> find functions in NotificationsService.swift that are not covered by testsGenerate Test Scaffolding
> add tests for the notification serviceAdd Meaningful Test Cases
> add test cases for edge conditions in the notification serviceRun and Verify Tests
> run the new tests and fix any failuresTips:
- Request tests that cover edge cases and error conditions
- Ask for both unit tests and integration tests where appropriate
- Ask Claude to explain the testing strategy