Using AI for Testing in iOS

Oct 28 2026 · Swift 5, iOS 27, Xcode 27

Lesson 01: Fix Bugs & Guard Them With Tests

From Audits to a Test Plan

Episode complete

Play next episode

Next

Written by the author, AI-editedAI-generated, author-verified How this module was made

Heads up... You’re accessing parts of this content for free, with some sections shown as obfuscated text.

Heads up... You’re accessing parts of this content for free, with some sections shown as obfuscated text.

Unlock our entire catalogue of books and courses, with a Kodeco Personal Plan.

Unlock now

Welcome to the first lesson of Module 5. In this lesson, you’ll cover testing with AI agents.

The files, "Acceptance-CornerCases-Audit.md", "Goals-NonGoals-Audit.md", "Dynamic-Type-Audit.md", "SwiftSurface-Audit.md", "VoiceOver-Audit.md" are all audits against a feature implemented by "reviewed-feature-plan.md" and "execution-plan.md".  All those files are on the same folder as the project file itself.
The plan intentionally skipped the addition of the tests. I want you to consolidate the audit files and create a new plan for the new tests to be implemented. Ensure that the tests are meaningful and the plan guarantees fixes for all the outcomes of the audit and creates valuable tests that ensures they wouldn't break by accident in the future with future changes. This plan needs to include some details on each test that will be introduced:
- Name of test
- Function(s) it will cover
- Description on what the test will cover
- Assertions and what data the test will check to fail or succeed on.
Implement the plan using workflows. Skip the optional points and don't implement UI Tests now, only focus on Unit Tests.
Revise again that the issues found in the audits are fixed.
See forum comments
Cinema mode Download course materials from Github
Previous: Introduction Next: Conclusion