en un clic
test
Run tests for Android or iOS SDK
Installer avec Codex ou Claude Copiez ce prompt, collez-le dans Codex, Claude ou un autre assistant, puis laissez-le vérifier la page du skill et l'installer pour vous.
Menu
Run tests for Android or iOS SDK
Installer avec Codex ou Claude Copiez ce prompt, collez-le dans Codex, Claude ou un autre assistant, puis laissez-le vérifier la page du skill et l'installer pour vous.
Basé sur la classification professionnelle SOC
Create git commit following project conventions
Full Jira-tracked change workflow — create/select Jira ticket under epic SDK-5256, create feat/SDK-XXXX branch, commit with ticket id, push, and open PR with ticket id in title and Jira links in body
Generate test JSON configurations following JSON_STRUCTURE_REFERENCE.md rules
Review code changes against project standards and conventions
Show current project status and development phase progress
| name | test |
| description | Run tests for Android or iOS SDK |
| user-invocable | true |
| disable-model-invocation | false |
Runs unit tests for Android or iOS Native Display SDK with clear result reporting.
# Run both Android and iOS tests
/test
# Run only Android tests
/test android
# Run only iOS tests
/test ios
# Run specific test class (Android)
/test android VariableEvaluatorTest
# Run specific test class (iOS)
/test ios VariableEvaluatorTests
Detects Platform
Runs Tests
cd android && ./gradlew testcd ios && swift testReports Results
Validation
✅ Android Tests: PASSED
- 45 tests passed
- 0 tests failed
- Duration: 12.3s
✅ iOS Tests: PASSED
- 38 tests passed
- 0 tests failed
- Duration: 8.7s
❌ Android Tests: FAILED
- 43 tests passed
- 2 tests failed
- Duration: 11.8s
Failed Tests:
1. VariableEvaluatorTest.testNestedVariables
Error: Expected "Hello John Doe" but got "Hello {{user.name}}"
Location: android/sdk/src/test/kotlin/VariableEvaluatorTest.kt:45
2. StyleResolverTest.testInheritance
Error: Text color not inherited from parent
Location: android/sdk/src/test/kotlin/StyleResolverTest.kt:78
Symptom: JSON parsing fails Common Causes:
Fix: Check model definitions against JSON_STRUCTURE_REFERENCE.md
Symptom: Template expressions not resolved Common Causes:
Fix: Check VariableEvaluator implementation
Symptom: Styles not applied correctly Common Causes:
Fix: Check StyleResolver implementation
Symptom: Dimensions calculated incorrectly Common Causes:
Fix: Check LayoutCalculator implementation
# All tests
cd android && ./gradlew test
# Specific module
cd android && ./gradlew :sdk:test
# Specific test class
cd android && ./gradlew test --tests VariableEvaluatorTest
# With detailed output
cd android && ./gradlew test --info
# Clean and test
cd android && ./gradlew clean test
# All tests
cd ios && swift test
# Specific test
cd ios && swift test --filter VariableEvaluatorTests
# With verbose output
cd ios && swift test --verbose
# Parallel execution
cd ios && swift test --parallel
When available, shows test coverage:
Android Coverage:
- Models: 95%
- Evaluators: 88%
- Resolvers: 92%
- Overall: 91%
iOS Coverage:
- Models: 93%
- Evaluators: 86%
- Resolvers: 90%
- Overall: 89%
# Always run tests before committing
/test
# If tests pass, commit
/commit
# Implement feature
# Run tests
/test android
# Fix any failures
# Run tests again
/test android
# After Android implementation
/test android
# After iOS implementation
/test ios
# Verify both pass
/test
This skill's test commands are compatible with CI/CD pipelines:
.claude/reference/ docs/build - Build before testing/review - Review code after tests pass/commit - Commit after tests passcd android && chmod +x gradlew
Install Xcode Command Line Tools:
xcode-select --install