简体   繁体   English

如何创建亚军类/通过命令行运行规范流-C#?

[英]how to create a runner class / run the spec flows through command line - C#?

Can someone help in knowing how to create a runner class in C# to run all the specflows/features like we have a runner class in java? 有人可以帮助我们了解如何在C#中创建运行器类以运行所有规格流程/功能,就像我们在Java中拥有一个运行器类一样吗?

Or is there any other way that I can run all the features through commandline ? 还是有其他方法可以通过命令行运行所有功能?

FYI, In the existing project's app.config i have -> unittestprovider name = "NUnit" 仅供参考,在现有项目的app.config中,我具有-> unittestprovider name =“ NUnit”

SpecFlow generates test classes for SpecFlow+Runner, NUnit, MSTest, XUnit and MbUnit. SpecFlow为SpecFlow + Runner,NUnit,MSTest,XUnit和MbUnit生成测试类。 Everyone has it's own console runner which executes in the standard configuration all tests in an assembly. 每个人都有自己的控制台运行程序,该程序以标准配置执行程序集中的所有测试。

Please have a look at the documentation of your used unit test runner. 请查看所使用的单元测试运行器的文档。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM