[英]The term 'livingdoc' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if
I am trying to generate the livingdoc through my feature files, but I am having some error messages coming up.我正在尝试通过我的功能文件生成 livingdoc,但出现了一些错误消息。 I have already installed the SpecFlow.Plus.LivingDocPlugin via nuget package, and the next step was for me to run the command bellow in the command prompt:
我已经通过 nuget package 安装了 SpecFlow.Plus.LivingDocPlugin,下一步是在命令提示符下运行以下命令:
livingdoc feature-folder C:\Users\UserId\Desktop\Projects\ProjectName\Projects\Project.Tests.Automation -t C:\Users\userId\Desktop\Projects\ProjectName\Projects\Project.Tests.Automation\bin\DEV\net6.0\TestExecution.json
ERROR MESSAGE:
livingdoc: The term 'livingdoc' is not recognized as the name of a cmdlet, function, script file, or operable program. livingdoc:术语“livingdoc”未被识别为 cmdlet、function、脚本文件或可运行程序的名称。 Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
检查名称的拼写,或者如果包含路径,请验证路径是否正确并重试。 At line:1 char:1
在行:1 字符:1
+ CategoryInfo: ObjectNotFound: (livingdoc:String) [], CommandNotFoundException + FullyQualifiedErrorId: CommandNotFoundException
Have you installed the SpecFlow.Plus.LivingDoc.CLI tool globally?您是否全局安装了SpecFlow.Plus.LivingDoc.CLI工具? This is also needed alongside the Nuget package you've installed.
这与您安装的 Nuget package 一起也是必需的。
Try running the following command in a CMD window: do.net tool install --global SpecFlow.Plus.LivingDoc.CLI
尝试在 CMD window 中运行以下命令:
do.net tool install --global SpecFlow.Plus.LivingDoc.CLI
Then open a new CMD window and try to generate the living docs again.然后新开一个 CMD window 再次尝试生成living docs。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.