代码之家  ›  专栏  ›  技术社区  ›  Liam Joshua

“未找到可测试的文件。”当试图通过最终生成器运行NUnit时

  •  0
  • Liam Joshua  · 技术社区  · 7 年前

    我试图使用finalbuilder/continua运行Nunit单元测试,但它根本不起作用,我不知道为什么。我刚刚得到这个错误:

    enter image description here

    未找到可测试文件。检查您是否为输入了有效的路径 正确设置以将文件复制到代理。

    enter image description here

    我正在构建dll:

    enter image description here

    我可以在(我认为是)正确的目录中看到dll:

    enter image description here

    Medium: 08:52:38.824 {T12} [Debug] Running action 'NUnit MES_Helpers_Test (NUnitAction)'. 
    Medium: 08:52:38.840 {T12} [Execute Action] Action 'NUnit MES_Helpers_Test' has failed due to an error: No testable files found. Check that you have entered valid paths for the Files field. Also ensure that the Workspace and Repository Rules are set up correctly to copy the files to the agent. 
    Medium: 08:52:38.840 {T12} [Debug] Running action 'Build solution (MSBuildAction)'.
    

    我错过了什么?

    1 回复  |  直到 7 年前
        1
  •  2
  •   sparkplug Bozhidar Batsov    7 年前

    您的文件路径中似乎缺少“s”。

    $Workspace$\输出\MES\u Helpers\u测试\MES\u Helpers\u测试。dll

    $Workspace$\输出\MES\u Helpers\u测试\MES\u Helpers\u测试 s