【发布时间】:2021-07-28 14:14:48
【问题描述】:
我正在尝试使用 Azure CI 管道配置我的规范流程项目。当我尝试使用 TestExecution.json 创建 Specflow+LivingDoc 时,管道无法找到路径。附上我的 YAML 和 specflow.json。有人可以帮我解决这个问题吗?
YAML
- task: SpecFlowPlus@0
displayName: 'Upload SpecFlow Living Docs'
inputs:
projectFilePath: 'MyProjecct'
projectName: 'MyProjecct'
testExecutionJson: '**\TestExecution.json'
projectLanguage: 'en'
specflow.json
{
"livingDocGenerator": {
"enabled": true,
"filePath": "{CurrentDirectory}\\TestResults\\TestExecution.json"
}
}
Error
##[error]Error: Command failed: dotnet D:\a_tasks\SpecFlowPlus_32f3fe66-8bfc-476e-8e2c-9b4b59432ffa\0.6.859\CLI\LivingDoc.CLI.dll feature-folder "D:\a\1\s\MyProjecct" --output-type JSON --test-execution-json "**/TestExecution.json" --output "D:\a\1\s\16707\FeatureData.json" --project-name "MyProjecct" --project-language "en"
【问题讨论】:
-
请发布整个错误信息
-
##[错误]错误:命令失败:dotnet D:\a_tasks\SpecFlowPlus_32f3fe66-8bfc-476e-8e2c-9b4b59432ffa\0.6.859\CLI\LivingDoc.CLI.dll 功能文件夹“D :\a\1\s\MyProjecct" --output-type JSON --test-execution-json "**/TestExecution.json" --output "D:\a\1\s\16707\FeatureData.json" --project-name "MyProjecct" --project-language "en"
-
文件是否在指定文件夹中生成?
-
请edit您的问题以纯文本形式包含错误消息。评论太难读了。
-
@GregBurghardt 完成
标签: selenium azure-devops continuous-integration specflow