如何在 Test suit XCUI 中禁用某些测试用例?

How to disable some test case in Test suit XCUI?

目前我遇到无法禁用某些测试用例 (XCUI Test) 的问题。

我已经尝试从架构中禁用大小写,当我从 xcode 测试时它有效,但是当我从脚本 运行 它时它不起作用。

我的脚本

/usr/bin/xcodebuild test-without-building -derivedDataPath "build" -workspace tako_ios_superapp.xcworkspace -scheme PlatformUITest -configuration Debug -UseModernBuildSystem=NO -destination "platform=iOS Simulator,name=Platform_Regression,OS=13.3" -resultBundlePath Platform '-only-testing:(my_app_target)/MY_Test_suit'

在我 运行 这个脚本之后,它仍然 运行 测试套件中的每个测试用例。有人曾经通过脚本禁用或跳过测试用例吗? ps。我必须使用命令的原因是因为我必须使用 CI,它需要脚本。

My Schema that I disable test case

当从命令行 运行 时,不使用 Xcode run/skip 架构配置。您需要明确列出要测试的内容和要跳过的内容。

有关更多详细信息和讨论,请参阅