【问题标题】:how to Run tests based on category in teamcity using mstest如何使用 mstest 在 teamcity 中基于类别运行测试
【发布时间】:2011-06-23 10:57:56
【问题描述】:

我正在使用此设置在 teamcity 中使用 mstest 运行 vstest 程序集列表:Z:\Test\Tests\bin\Debug\Test.dll /category:"abc Tests"

在 teamcity 中使用 mstest 运行 vstest 时出现以下错误

Illegal characters in path.
   at System.IO.Path.CheckInvalidPathChars(String path)
   at System.IO.Path.IsPathRooted(String path)
   at JetBrains.TeamCity.Utils.FileUtil.MakeFullPath(String path, String workDir) in c:\Agent\work\2f9f8fe94ae5352e\src\Utils\src\FileUtil.cs:line 40
   at JetBrains.TeamCity.MSTestSupport.Executable.MSTestTargetGenerator.ForEachNewLine(ArrayList argz, String items, String KEY, Boolean fullPath) in c:\Agent\work\2f9f8fe94ae5352e\src\MSTestSupport\src\Executable\MSTestTargetGenerator.cs:line 95
   at JetBrains.TeamCity.MSTestSupport.Executable.MSTestTargetGenerator.GenerateMSTestCommand(IMSTestExeArguments msTestArgs, String resultsFile) in c:\Agent\work\2f9f8fe94ae5352e\src\MSTestSupport\src\Executable\MSTestTargetGenerator.cs:line 61
   at JetBrains.TeamCity.MSTestSupport.Executable.MSTestTargetGenerator.GenerateTargetContent(IMSTestExeArguments mstestArgs) in c:\Agent\work\2f9f8fe94ae5352e\src\MSTestSupport\src\Executable\MSTestTargetGenerator.cs:line 45
   at JetBrains.TeamCity.MSTestSupport.Executable.MSTestExeTestRunnerFactory.CreateRunner(ITestRunArguments args) in c:\Agent\work\2f9f8fe94ae5352e\src\MSTestSupport\src\Executable\MSTestExeTestRunnerFactory.cs:line 29
   at JetBrains.BuildServer.NAntLoggers.RunnerFactory.FindTestRunner(ITestRunArguments arguments) in c:\Agent\work\2f9f8fe94ae5352e\src\NUnitBootstrap\src\RunnerFactory.cs:line 45
   at JetBrains.BuildServer.NAntLoggers.RunnerFactory.CreateTestRunner(ITestRunArguments arguments) in c:\Agent\work\2f9f8fe94ae5352e\src\NUnitBootstrap\src\RunnerFactory.cs:line 30
   at JetBrains.BuildServer.NAntLoggers.NUnitLauncher2.Run2(String[] args) in c:\Agent\work\2f9f8fe94ae5352e\src\NUnitBootstrap\src\NUnitLauncher2.cs:line 88
   at JetBrains.BuildServer.NAntLoggers.NUnitLauncher2.Run(String[] args) in c:\Agent\work\2f9f8fe94ae5352e\src\NUnitBootstrap\src\NUnitLauncher2.cs:line 50

【问题讨论】:

    标签: visual-studio-2010 testing selenium mstest teamcity


    【解决方案1】:

    您应该在其他命令行参数:字段

    中指定您的/category参数

    【讨论】:

    • "/category:[您的类别名称。]"
    • 如何排除一个类别?
    猜你喜欢
    • 2012-01-13
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2011-12-25
    • 1970-01-01
    • 2014-02-06
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多