0

我遵循了一些关于如何让 nunit 在 TFS(云版本)上工作的指南

http://www.mytechfinds.com/articles/software-testing/6-test-automation/72-running-nunit-tests-from-team-foundation-server-2012-continuous-integration-build

http://walkingthestack.blogspot.sg/2013/04/using-nunit-for-your-tests-in-team.html

但是,在设置完所有内容后,我仍然收到此错误消息:

Exception Message: The path '$/Plan.Ess.sln' could not be converted to a local path. Make sure this path is relative to the 'src' folder on the build machine or specify a full server path. (type ArgumentException)
Exception Stack Trace:    at Microsoft.TeamFoundation.Build.Activities.Core.LocalPathProvider.GetLocalPath(String incomingPath)
   at System.Activities.CodeActivity`1.InternalExecute(ActivityInstance instance, ActivityExecutor executor, BookmarkManager bookmarkManager)
   at System.Activities.Runtime.ActivityExecutor.ExecuteActivityWorkItem.ExecuteBody(ActivityExecutor executor, BookmarkManager bookmarkManager, Location resultLocation)

TF270003: Failed to copy. Ensure the source directory C:\a\bin exists and that you have the appropriate permissions.

1)$/Plan.Ess.sln是我在构建定义 > 编辑构建定义 > 过程 > 1. 构建解决方案中键入的内容

2)我不确定为什么它指的是 C:\a\bin

我不确定我是否有“ Make sure that installed test discoverers & executors, platform & framework settings are appropiate and try again”(来自第二个链接的解决方案)但我已经将构建控制器指向包含 nunit 测试适配器和 dll 的文件夹

4

1 回答 1

0

好的,我已经找到原因了。我指向了错误的路径。我替换$/Plan.Ess.slnPlan.Ess.sln并且它有效。

于 2013-08-27T05:56:29.810 回答