简体   繁体   English

从Visual Studio中的MSTest或NUnit或控制台应用程序中运行Fitnesse测试

[英]Run fitnesse test out of MSTest or NUnit or console application in Visual Studio

I debug fitnesse test next way: fitnesse下面的方式调试fitnesse测试:

  1. I run fitnesse webserver. 我运行fitnesse Web服务器。
  2. Go to test page in browser 在浏览器中转到测试页
  3. Run test. 运行测试。
  4. RunnerW.exe opens. RunnerW.exe打开。
  5. I ReAttach to it. ReAttach安装。
  6. I press Go . 我按Go

I want to speed up this cycle. 我想加快这个周期。

Is next way possible and how? 下一条路可行吗?

Eg run MSTest or NUnit or Console application via F5 from Visual studio. 例如,通过Visual Studio中的F5运行MSTestNUnit或控制台应用程序。 Given I referenced fit.dll or fitsharp.dll or convert some jar into dll via IKVM , configured some runners/parsers, defined paths to saved test pages and test pages names. 给定我引用了fit.dllfitsharp.dll或通过IKVM将一些jar转换为dll,配置了一些运行器/解析器,定义了保存的测试页和测试页名称的路径。

Other alternatives to have debug mode with one button click from Visual Studio? 从Visual Studio一键单击即可具有调试模式的其他替代方案?

Dzmitry, please see here example how to start FitNesse test from Power Shell. Dzmitry,请在此处查看如何从Power Shell启动FitNesse测试的示例。

So, answer on your question: execute line: 因此,回答您的问题:执行以下行:

java -jar fitnesse-standalone.jar -c "InternalTests.NetRunnerRegression?suite&format=xml" -b $xmlFilePath

Where InternalTests.NetRunnerRegression?suite&format=xml is path to your test page, see documentation to check all options available. 如果InternalTests.NetRunnerRegression?suite&format = xml是测试页的路径,请参阅文档以检查所有可用选项。 By this line I started execution test for InternalTests.NetRunnerRegression as suite (eg this page and subpages), and requested result in xml (html by default). 通过这一行,我开始以套件(例如此页面和子页面)的形式对InternalTests.NetRunnerRegression执行测试,并以xml(默认为html)请求结果。

暂无
暂无

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

相关问题 如何使用NUnit在Visual Studio中强制最后一次运行测试 - How to force a test run last in visual studio using NUnit 单元测试,NUnit或Visual studio? - Unit test, NUnit or Visual studio? MSTest / Visual Studio并行测试运行 - MSTest/Visual Studio parallel test running 如何在不安装 Visual Studio 2010 的情况下使用 MSTest.ese 运行编码的 UI 测试 - How to run coded UI test with MSTest.ese without installing Visual Studio 2010 项目可以正常编译,可以在Visual Studio中运行测试,但是nunit-console“无法加载文件或程序集……” - Project compiles fine, tests run inside visual studio, but nunit-console “Could not load file or assembly …” 如何在Visual Studio 2010中调试Nunit测试 - How to debug Nunit test in Visual Studio 2010 是什么导致在单元测试(NUnit或MSTest)中从C#调用的C ++函数产生的结果不同于在控制台应用程序中运行的同一代码? - What is causing a C++ function called from C# in a unit test (NUnit or MSTest) to produce a different result from the same code run in a console app? 如何在执行 MSTest 测试期间写入 Console.Out - How to write to Console.Out during execution of an MSTest test 如何通过Visual Studio创建和运行NUnit / WebDriver测试套件? - How do I create and run NUnit/WebDriver test-suites via Visual Studio? 在带有 C# 的 Visual Studio Code 中,如何在发布模式下运行 NUnit 测试? - In Visual Studio Code with C#, how do I run an NUnit test in Release mode?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM