Testing Validation
Testing & Qualitytesting-validationTesting Validation is an Agent Skill for testing & quality published in the Adamant-im/adamant-iOS repository on GitHub: a SKILL.md instruction file an AI agent can load to do this task.
Testing and validation requirements for ADAMANT iOS. Use when writing tests, validating changes, or ensuring code quality before commits.
How to use this skill
Bring this guide into your coding agent with a prompt tailored to the tool you use.
- Open your project in Codex.
- Copy and paste the prompt below.
- Review files and risks before approving any action.
Inspect the Agent Skill at https://github.com/Adamant-im/adamant-iOS/blob/HEAD/.ai/skills/testing-validation/SKILL.md and all supporting files. Report provenance, permissions, scripts, dependencies, and security risks. Propose an exact installation into .agents/skills/testing-validation, but wait for my approval before writing files or running scripts.
Copying this prompt does not install or run the skill. Review third-party files before use.
Testing and Validation
Testing requirements and validation procedures for ADAMANT iOS.
Testing Philosophy
For any non-trivial change, report exactly what was run.
Baseline Validation
Run before considering any change complete:
- Build the project in Xcode without errors
- Run SwiftLint:
swiftlint(or via Xcode build phase) - Run unit tests:
Cmd+Uin Xcode orxcodebuild testcommand - Test on both iPhone and iPad simulators when UI changes are involved
- Test in both light and dark mode when UI changes are involved
Test Organization
- Unit tests:
AdamantTests/ - Disabled/legacy tests:
AdamantTests/DisabledTests/ - Test stubs and mocks:
AdamantTests/Stubs/ - Test extensions:
AdamantTests/Extensions/
Test Requirements
When adding or modifying code:
- Add unit tests for new service logic, especially security-critical paths
- Add integration tests for wallet operations when touching blockchain code
- Mock external dependencies using stubs from
AdamantTests/Stubs/ - Test error paths and edge cases, not just happy paths
- Perform manual testing on real devices when possible for UI changes
- Test with slow network conditions and offline scenarios for network-dependent features
Build Validation
- Standard build: Build and run in Xcode
- Release build: Test with Release configuration to catch optimization-related issues
- Pod dependencies: Run
pod installafter Podfile changes - Package dependencies: Ensure Swift Package Manager dependencies resolve correctly
Edge Cases to Test
- Empty states
- Slow networks
- Large datasets
- Rapid user actions
- Network transitions (WiFi to cellular, offline to online)
- Memory warnings
- Background/foreground transitions
Security-Critical Testing
When touching security-sensitive code:
- Verify no sensitive data is logged
- Test cryptographic operations with known test vectors
- Verify Keychain storage and retrieval
- Test error handling doesn't leak sensitive information
- Verify proper cleanup on logout/account deletion
When to Use This Skill
Activate this skill when:
- Writing new tests
- Validating changes before commit
- Setting up CI/CD pipelines
- Investigating test failures
- Planning test coverage for new features
See Also
- Validation Scripts for automated validation