en un clic
test-template
Test templates with test_template.sh script
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
Test templates with test_template.sh script
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
Add Salesforce Mobile SDK capabilities to Android Kotlin applications. Covers creating new apps with the SDK pre-integrated, or adding base SDK, SmartStore (encrypted database), MobileSync (cloud sync), and biometric authentication to existing applications.
Integrate Salesforce Mobile SDK into iOS Swift apps. Covers creating a new app, adding SDK auth, SmartStore (encrypted local DB), MobileSync (cloud sync), and biometric auth (Face ID / Touch ID). Use when an iOS Swift project needs Salesforce login, encrypted local storage backed by SmartStore, sObject-to-soup synchronization, or biometric session locking.
End-to-end test harness for the consolidated SDK consumer skills. Creates 10 apps (5 iOS, 5 Android) in parallel, one per scenario within the ios-mobile-sdk and android-mobile-sdk skills, builds each, and reports results.
Remove a template from the Templates repository
Update the minimum iOS deployment target across all iOS and React Native templates
| name | test-template |
| description | Test templates with test_template.sh script |
| type | skill |
This skill documents testing templates in the Templates repository using the test_template.sh script.
After modifying templates (adding, removing, or updating), you need to verify that:
install.js runs successfully./test_template.sh --template iOSNativeSwiftTemplate
./test_template.sh --template ReactNativeTemplate --platform ios
./test_template.sh
When testing template changes alongside SDK changes, you can override SDK dependencies:
./test_template.sh \
--msdk-ios-org wmathurin \
--msdk-ios-branch feature/new-api \
--template iOSNativeSwiftTemplate --platform ios
This modifies package.json sdkDependencies to use:
{
"SalesforceMobileSDK-iOS": "https://github.com/wmathurin/SalesforceMobileSDK-iOS.git#feature/new-api"
}
./test_template.sh \
--msdk-android-org wmathurin \
--msdk-android-branch feature/new-api \
--template AndroidNativeKotlinTemplate --platform android
./test_template.sh \
--msdk-ios-branch my-feature \
--msdk-android-branch my-feature \
--rn-force-branch my-feature \
--template ReactNativeTemplate
This overrides:
SalesforceMobileSDK-iOS dependencySalesforceMobileSDK-Android dependencyreact-native-force npm dependency✅ Tested:
install.js executionmobile_sdk/ directory)❌ NOT Tested:
| Template Type | Test Support |
|---|---|
| Native (iOS) | ✅ Full support |
| Native (Android) | ✅ Full support |
| React Native | ✅ Full support (iOS and Android) |
| Hybrid | ❌ Not supported |
Test that remaining templates still work:
./test_template.sh
Test the specific modified template:
./test_template.sh --template <TemplateName>
When coordinating template changes with SDK changes:
./test_template.sh \
--msdk-ios-branch my-feature \
--msdk-android-branch my-feature \
--template ReactNativeTemplate
# Test each iOS template manually
for template in iOSNativeSwiftTemplate iOSNativeSwiftPackageManagerTemplate iOSIDPTemplate; do
./test_template.sh \
--msdk-ios-branch my-feature \
--template $template --platform ios
done
Success:
Failure:
install.js errorsThis skill is used by:
cd SalesforceMobileSDK-Templates
# After removing a template, test remaining iOS templates
./test_template.sh --template iOSNativeSwiftTemplate --platform ios
./test_template.sh --template iOSIDPTemplate --platform ios
./test_template.sh --template iOSNativeLoginTemplate --platform ios
# Or test all templates
./test_template.sh
cd SalesforceMobileSDK-Templates
# Testing modified template with custom iOS SDK
./test_template.sh \
--msdk-ios-org wmathurin \
--msdk-ios-branch fix/template-issue \
--template iOSNativeSwiftTemplate --platform ios
test_output/ directory with generated projectsTESTING.md for comprehensive testing documentation.github/workflows/pr.yaml for CI test configurationtest-templates.md for cross-repo testing coordination