MSTest 无法发布结果。说平台和口味不对,但他们是

发布于 2024-10-08 02:19:53 字数 716 浏览 0 评论 0原文

我们正在尝试从命令行使用 MSTest 执行单元测试并在 TFS 服务器上发布结果。问题是 MSTest 总是返回:

Publishing results of test run buildmachine@XXX-XXXXXXX 2010-12-16 11:39:13_Release_Any CPU到http://xxxx:8080/Build/v1.0/PublishTestResultsBuildService2.asmx... ...................................................... ...................................... 构建 'xxx>xxx>x>x>x>xxxx>xxxx>xxxxxx' 不包含指定的 配置('释放/任何CPU')。

问题是指定的配置应该存在。我们已经使用下一个 MSBuild 设置进行构建:

<ConfigurationToBuild Include="Release|Any CPU">
  <FlavorToBuild>Release</FlavorToBuild>
  <PlatformToBuild>Any CPU</PlatformToBuild>
</ConfigurationToBuild>

有什么想法吗?我开始厌倦这个了。

we are trying to execute unit tests with MSTest from command line and publishing the results at the TFS server. The problem is that MSTest is always returning:

Publishing results of test run buildmachine@XXX-XXXXXXX 2010-12-16 11:39:13_Release_Any
CPU to http://xxxx:8080/Build/v1.0/PublishTestResultsBuildService2.asmx...
.........................................................................................
Build 'xxx>xxx>x>x>x>xxxx>xxxx>x.x.x.xxx' does not include the specified
configuration ('Release/Any CPU').

The problem is that the specified configuration should exist. We've build with the next MSBuild settings:

<ConfigurationToBuild Include="Release|Any CPU">
  <FlavorToBuild>Release</FlavorToBuild>
  <PlatformToBuild>Any CPU</PlatformToBuild>
</ConfigurationToBuild>

Any idea? I'm starting to be fed up with this.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

一萌ing 2024-10-15 02:19:53

问题是构建没有成功,然后 MSTest 无法发布结果。错误消息可能会更好......

The problem was that the build didn't succeeded and then MSTest couldn't publish the results. The error message could be better ...

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文