【问题标题】:TeamCity configuarion for nUnit run用于 nUnit 运行的 TeamCity 配置
【发布时间】:2015-12-16 18:55:37
【问题描述】:

我在为 nUnit 运行设置 TeamCity 时遇到问题,并且添加了以下行以用于编辑程序集文件。

"%system.NUNIT_EXE%" 
"%env.ROOT_FOLDER%\FunctionalTests\bin\Debug\Test.dll"  /nologo
/framework=4.0.30319 /labels /xml=c:\simulator\TestBox.xml 
/fixture:Instron.Tests.Test_FunctionalTests

我在运行 TeamCity 时收到错误消息。

无法解析 TeamCity 隐式参数。中的非法字符 路径。

System.ArgumentException:路径中有非法字符。

在 System.IO.Path.CheckInvalidPathChars(字符串路径)

在 System.IO.Path.IsPathRooted(字符串路径)

在 JetBrains.TeamCity.Utils.FsScanner.RealFileSystem.IsPathAbsolute(String 路径)

在 JetBrains.TeamCity.Utils.FsScanner.DirectoryScanner.ParsePattern(IFileSystem fs, Wildcard[] rootPrefix, Boolean caseSensitive, String pattern)

【问题讨论】:

  • 您需要提供更多背景信息,然后才能获得合理的答案。例如,TeamCity 是什么?
  • 嗨 Neil,我已经为 team_city_config 页面添加了图片链接。
  • @Gobi 你确定system.NUNIT_EXEenv.ROOT_FOLDER 被定义了吗?
  • 嗨,Sergii,我如何确定它们是否已被定义

标签: configuration nunit teamcity


【解决方案1】:

您可以在Administration页面的项目设置中找到参数。使用Add new parameter 按钮为您的构建添加参数。

查看the official documentation 以获取更多信息。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2011-09-14
    • 1970-01-01
    • 2011-10-20
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多