Skip to content

Commit 97859ed

Browse files
committed
fix: enhance runAppTestsOnBrowserStack tool description and update app/test path instructions
1 parent 57026ac commit 97859ed

File tree

1 file changed

+18
-4
lines changed

1 file changed

+18
-4
lines changed

src/tools/appautomate.ts

Lines changed: 18 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -255,17 +255,31 @@ export default function addAppAutomationTools(server: McpServer) {
255255

256256
server.tool(
257257
"runAppTestsOnBrowserStack",
258-
"Run AppAutomate tests on BrowserStack by uploading app and test suite, then triggering a test run. Supports both Espresso (Android) and XCUITest (iOS).",
258+
"Run AppAutomate tests on BrowserStack by uploading app and test suite. If running from Android Studio or Xcode, the tool will help export app and test files automatically. For other environments, you'll need to provide the paths to your pre-built app and test files.",
259259
{
260260
appPath: z
261261
.string()
262262
.describe(
263-
"Path to the .apk/.aab (Espresso) or .ipa (XCUITest) file for your app. Export on your own in local IDEs.",
263+
"Path to your application file:\n" +
264+
"If in development IDE directory:\n" +
265+
"• For Android: 'gradle assembleDebug'\n" +
266+
"• For iOS:\n" +
267+
" xcodebuild clean -scheme YOUR_SCHEME && \\\n" +
268+
" xcodebuild archive -scheme YOUR_SCHEME -configuration Release -archivePath build/app.xcarchive && \\\n" +
269+
" xcodebuild -exportArchive -archivePath build/app.xcarchive -exportPath build/ipa -exportOptionsPlist exportOptions.plist\n\n" +
270+
"If in other directory, provide existing app path"
264271
),
265272
testSuitePath: z
266273
.string()
267274
.describe(
268-
"Path to the Espresso test suite .apk or XCUITest .zip file. Export on your own in local IDEs.",
275+
"Path to your test suite file:\n" +
276+
"If in development IDE directory:\n" +
277+
"• For Android: 'gradle assembleAndroidTest'\n" +
278+
"• For iOS:\n" +
279+
" xcodebuild test-without-building -scheme YOUR_SCHEME -destination 'generic/platform=iOS' && \\\n" +
280+
" cd ~/Library/Developer/Xcode/DerivedData/*/Build/Products/Debug-iphonesimulator/ && \\\n" +
281+
" zip -r Tests.zip *.xctestrun *-Runner.app\n\n" +
282+
"If in other directory, provide existing test file path"
269283
),
270284
devices: z
271285
.array(z.string())
@@ -275,7 +289,7 @@ export default function addAppAutomationTools(server: McpServer) {
275289
project: z
276290
.string()
277291
.optional()
278-
.default("Espresso Test")
292+
.default("BStack-AppAutomate-Suite")
279293
.describe("Project name for organizing test runs on BrowserStack."),
280294
detectedAutomationFramework: z
281295
.string()

0 commit comments

Comments
 (0)