用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/MikeTreml/MissionControl --skill mobile-testing-frameworks命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
Expert Electron application architecture skill for IPC design, main/renderer/preload boundaries, security hardening, performance optimization, packaging strategy, native integration, and cross-platform desktop development. Use when reviewing or designing Electron apps, planning migrations, auditing architecture risks, choosing IPC patterns, diagnosing startup or memory issues, or coordinating related Electron skills.
Generates DrawIO XML diagrams for Amazon Web Services architectures from text descriptions or images. Analyzes existing .drawio files to extract AWS components. Use for AWS architecture diagrams, cloud infrastructure documentation, or when converting AWS diagram images to editable DrawIO format.
Generates DrawIO XML diagrams for Google Cloud Platform architectures from text descriptions or images. Analyzes existing .drawio files to extract GCP components. Use for GCP architecture diagrams, cloud infrastructure documentation, or when converting GCP diagram images to editable DrawIO format.
基于 SOC 职业分类
正在显示 SKILL.md
| name | Mobile Testing Frameworks |
| description | Comprehensive mobile testing framework expertise |
| version | 1.0.0 |
| category | Quality Assurance |
| slug | mobile-testing |
| status | active |
This skill provides comprehensive expertise in mobile testing frameworks across platforms. It enables E2E testing with Detox and Maestro, native testing with XCUITest and Espresso, and cross-platform testing with Appium.
bash - Execute test commands and framework CLIsread - Analyze test files and configurationswrite - Generate test cases and configurationsedit - Update existing testsglob - Search for test filesgrep - Search for patterns in test codeConfiguration
Test Writing
Advanced Features
Flow Configuration
Actions and Assertions
Test Setup
UI Testing
Test Configuration
UI Testing
This skill integrates with the following processes:
mobile-testing-strategy.js - Testing strategy implementationmobile-accessibility-implementation.js - Accessibility testingmobile-security-implementation.js - Security testing// .detoxrc.js
module.exports = {
testRunner: {
args: {
$0: 'jest',
config: 'e2e/jest.config.js',
},
jest: {
setupTimeout: 120000,
},
},
apps: {
'ios.debug': {
type: 'ios.app',
binaryPath: 'ios/build/Build/Products/Debug-iphonesimulator/MyApp.app',
build: 'xcodebuild -workspace ios/MyApp.xcworkspace -scheme MyApp -configuration Debug -sdk iphonesimulator -derivedDataPath ios/build',
},
'ios.release': {
type: 'ios.app',
binaryPath: 'ios/build/Build/Products/Release-iphonesimulator/MyApp.app',
build: 'xcodebuild -workspace ios/MyApp.xcworkspace -scheme MyApp -configuration Release -sdk iphonesimulator -derivedDataPath ios/build',
},
'android.debug': {
type: 'android.apk',
binaryPath: 'android/app/build/outputs/apk/debug/app-debug.apk',
build: 'cd android && ./gradlew assembleDebug assembleAndroidTest -DtestBuildType=debug',
reversePorts: [8081],
},
'android.release': {
type: 'android.apk',
binaryPath: 'android/app/build/outputs/apk/release/app-release.apk',
build: 'cd android && ./gradlew assembleRelease assembleAndroidTest -DtestBuildType=release',
},
},
: {
: {
: ,
: { : },
},
: {
: ,
: { : },
},
},
: {
: {
: ,
: ,
},
: {
: ,
: ,
},
: {
: ,
: ,
},
: {
: ,
: ,
},
},
};
// e2e/login.test.ts
import { device, element, by, expect } from 'detox';
describe('Login Flow', () => {
beforeAll(async () => {
await device.launchApp({
newInstance: true,
permissions: { notifications: 'YES' },
});
});
beforeEach(async () => {
await device.reloadReactNative();
});
it('should show login screen on first launch', async () => {
await expect(element(by.id('login-screen'))).toBeVisible();
await expect(element(by.id('email-input'))).toBeVisible();
await expect(element(by.id('password-input'))).toBeVisible();
});
it('should show error for invalid credentials', async () => {
await element(by.id('email-input')).();
(by.()).();
(by.()).();
((by.())).();
((by.())).();
});
(, () => {
(by.()).();
(by.()).();
(by.()).();
((by.()))
.()
.();
((by.())).();
});
(, () => {
(by.()).();
(by.()).();
(by.()).();
((by.())).().();
(by.()).();
((by.())).();
(by.()).();
((by.())).();
});
});
# flows/login.yaml
appId: com.example.myapp
---
- launchApp:
clearState: true
- assertVisible: "Welcome"
- tapOn: "Email"
- inputText: "test@example.com"
- tapOn: "Password"
- inputText: "password123"
- tapOn: "Sign In"
- assertVisible: "Home"
- takeScreenshot: "home_after_login"
# Test logout flow
- tapOn: "Profile"
- tapOn: "Sign Out"
- assertVisible: "Welcome"
// MyAppUITests/LoginTests.swift
import XCTest
final class LoginTests: XCTestCase {
var app: XCUIApplication!
override func setUpWithError() throws {
continueAfterFailure = false
app = XCUIApplication()
app.launchArguments = ["--uitesting"]
app.launch()
}
override func tearDownWithError() throws {
app = nil
}
func testLoginScreenElements() throws {
XCTAssertTrue(app.textFields["email-input"].exists)
XCTAssertTrue(app.secureTextFields["password-input"].exists)
XCTAssertTrue(app.buttons["login-button"].exists)
}
func testSuccessfulLogin() throws {
let emailField = app.textFields["email-input"]
let passwordField = app.secureTextFields["password-input"]
let loginButton = app.buttons["login-button"]
emailField.tap()
emailField.typeText("test@example.com")
passwordField.tap()
passwordField.typeText()
loginButton.tap()
homeScreen app.otherElements[]
(homeScreen.waitForExistence(timeout: ))
}
() {
app.textFields[].tap()
app.textFields[].typeText()
app.secureTextFields[].tap()
app.secureTextFields[].typeText()
app.buttons[].tap()
(app.staticTexts[].waitForExistence(timeout: ))
}
() {
app.buttons[].tap()
list app.tables[]
lastItem app.cells[]
lastItem.isHittable {
list.swipeUp()
}
(lastItem.exists)
firstItem app.cells[]
firstItem.isHittable {
list.swipeDown()
}
(firstItem.exists)
}
}
// app/src/androidTest/java/com/example/myapp/LoginTest.kt
package com.example.myapp
import androidx.compose.ui.test.*
import androidx.compose.ui.test.junit4.createAndroidComposeRule
import androidx.test.ext.junit.runners.AndroidJUnit4
import dagger.hilt.android.testing.HiltAndroidRule
import dagger.hilt.android.testing.HiltAndroidTest
import org.junit.Before
import org.junit.Rule
import org.junit.Test
import org.junit.runner.RunWith
@HiltAndroidTest
@RunWith(AndroidJUnit4::class)
class LoginTest {
@get:Rule(order = 0)
val hiltRule = HiltAndroidRule(this)
@get:Rule(order = 1)
val composeRule = createAndroidComposeRule<MainActivity>()
@Before
fun setup() {
hiltRule.inject()
}
@Test
fun loginScreen_displaysAllElements() {
composeRule.onNodeWithTag("email-input").assertIsDisplayed()
composeRule.onNodeWithTag("password-input").assertIsDisplayed()
composeRule.onNodeWithTag("login-button").assertIsDisplayed()
}
@Test
fun login_withValidCredentials_navigatesToHome() {
composeRule.onNodeWithTag("email-input")
.performTextInput("test@example.com")
composeRule.onNodeWithTag()
.performTextInput()
composeRule.onNodeWithTag()
.performClick()
composeRule.waitUntil() {
composeRule.onAllNodesWithTag()
.fetchSemanticsNodes().isNotEmpty()
}
composeRule.onNodeWithTag().assertIsDisplayed()
}
{
composeRule.onNodeWithTag()
.performTextInput()
composeRule.onNodeWithTag()
.performTextInput()
composeRule.onNodeWithTag()
.performClick()
composeRule.onNodeWithText()
.assertIsDisplayed()
}
{
composeRule.onNodeWithTag()
.performTextInput()
composeRule.onNodeWithTag()
.performTextInput()
composeRule.onNodeWithTag()
.performClick()
composeRule.waitUntil() {
composeRule.onAllNodesWithTag()
.fetchSemanticsNodes().isNotEmpty()
}
composeRule.onNodeWithTag()
.performScrollToNode(hasTestTag())
composeRule.onNodeWithTag().assertIsDisplayed()
}
}
# .github/workflows/android-test.yml
name: Android Tests
on: [push, pull_request]
jobs:
instrumented-tests:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up JDK
uses: actions/setup-java@v4
with:
java-version: '17'
distribution: 'temurin'
- name: Build APKs
run: |
./gradlew assembleDebug assembleDebugAndroidTest
- name: Authenticate to Google Cloud
uses: google-github-actions/auth@v2
with:
credentials_json: ${{ secrets.GCP_CREDENTIALS }}
- name: Run tests on Firebase Test Lab
run:
accessibility-testing - Accessibility-focused testingmobile-perf - Performance testingfastlane-cicd - CI/CD integration