Run NUnit tests automatically from command line

我与影子孤独终老i 提交于 2020-01-02 07:23:26

问题


I'm launching the NUnit gui from visual studio by setting the test project to start start nunit 2.5.3 as an external program. That loads the tests into the GUI but I still have to manually click the run button. Is there a command line argument that will have the tests run at the same time they're loaded?


回答1:


Specify /run on the command line.




回答2:



Help Syntax

NUNIT-GUI [inputfile] [options]

Runs a set of NUnit tests from the console. You may specify an assembly or a project file of type .nunit as input.

Options: /fixture=STR Fixture to test

/include=STR List of categories to include

/exclude=STR List of categories to exclude

/config=STR Project configuration to load

/noload Suppress loading of last project

/run Automatically run the loaded project

/runselected Automatically run selected tests or all tests if none are selected

/console Create console display for viewing any unmanaged output

/lang=STR Language to use for the NUnit GUI

/cleanup Erase any leftover cache files and exit

/help Display help (Short format: /?)

Options that take values may use an equal sign, a colon

or a space to separate the option from its value.

OK



来源:https://stackoverflow.com/questions/2043130/run-nunit-tests-automatically-from-command-line

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!