首页 > 解决方案 > Azure 管道 | 应用中心测试 | 包含类别时出错

问题描述

我正在 Azure DevOps 上运行一项工作(包括 nuget 还原、构建和签名应用程序在内的一系列任务),以通过 Appcenter 构建 android 应用程序和测试 (Xamarin.UITest) 应用程序。

如果我没有在“使用 Visual Studio App Center 测试”任务的“运行的其他选项”上指定任何参数,测试运行良好。当我这样做时(--include-category LandingPage)任务抛出错误说:

Error: Command 'test run manifest --manifest-path d:\a\12\a\AppCenterTest\manifest.json --app-path d:/a/12/b/Release/PUBLISH_PACKAGE_NAME_PHONE_ANDROID.PUBLISH_PACKAGE_NAME_PHONE_ANDROID.apk --app SampleApp/Android --devices 12345abcd --test-series DevOps --locale en_US --include-category LandingPage --quiet --token ***' failed with exception "Unknown argument --include-category"

我错过了什么?

[当我从本地机器运行时,命令完美运行appcenter test run。]

任何帮助表示赞赏。

标签: xamarin.androidazure-devopsazure-pipelinesvisual-studio-app-centerxamarin.uitest

解决方案


对于面临此问题的人,请确保您提供的--include-category AppCenterTestPrepare Tests区域而不是Run tests。运行测试下的其他选项似乎具有不同的目的。

在此处输入图像描述


推荐阅读