The Zanebug Console provides command line access for running tests. There are several options available via command line.
To start the Zanebug Console, you'll need to get to the command line. For most computers, you can do the following (it will depend on your operating system):
Go to
Type cmd in the box
When the command prompt appears, type the following:
> cd "C:\Program Files\Zanebug"
You should now see the following:
C:\Program Files\Zanebug>
Now, call the Zanebug.Console.exe, with any of the options provided below. Here is an example:
C:\Program Files\Zanebug>Zanebug.Console.exe /assemblies:"C:\Program Files\Zaneb ug\Examples\Examples.Zanebug.v142\bin\Debug\Examples.Zanebug.v142.dll"
Example output:
C:\Program Files\Zanebug>Zanebug.Console.exe /assemblies:"C:\Program Files\Zaneb ug\Examples\Examples.Zanebug.v142\bin\Debug\Examples.Zanebug.v142.dll" Running Zanebug v1.4.2 Please wait... TestFixtureSetUp TestFixtureTearDown DATE: 1/2/2005 9:37:31 PM ======================================== Examples.Zanebug.v142 ======================================== C:\Program Files\Zanebug\Examples\Examples.Zanebug.v142\bin\Debug Passed: 16 Failed: 1 Ignored: 2 Percent Passed: 94.12 % Avg Duration: 0.00452460649258675 Total Duration: 0.00452460649258675 # of Iterations: 1 ======================================== SUMMARY ======================================== Total Failed: 1 Total Passed: 16 Total Ignored: 2 Percent Passed: 94.12 % Percent Failed: 5.88 % C:\Program Files\Zanebug>
Below is a list of the various command line options
Table 5. Command Line Options
| Name | Description |
| /help | Displays all of the command line switch options |
| /file: [filename] | Will run all assemblies listed in the file |
| /assemblies: [assemblies] | Will run all assemblies listed. Separate assemblies using the ; |
| /showdetail | Will show a breakdown of individual test results |
| /showoutput | Will show any console output for each test. /showdetail must be selected |
| /showfailure | Will show any error or exception messages for each test. /showdetail must be selected |
| /showxml | Will show the test results in xml format |
| /save: [file] | Saves the text formatted results to the specified file |
| /savexml: [file] | Saves the XML formatted results to the specified file |
Below are examples for each command line switch
You can list tests to run in a simple text file, with an assembly listed on each line. Here is an example:
Example 1. example.txt
C:\Program Files\Zanebug\Examples\Examples.NUnit.v214\bin\Debug\Examples.NUnit.v214.dll C:\Program Files\Zanebug\Examples\Examples.NUnit.v220\bin\Debug\Examples.NUnit.v220.dll C:\Program Files\Zanebug\Examples\Examples.Zanebug.v141\bin\Debug\Examples.Zanebug.v141.dll C:\Program Files\Zanebug\Examples\Examples.Zanebug.v142\bin\Debug\Examples.Zanebug.v142.dll
Now, you can simply run the tests for all of the above assemblies via the command line
C:\Program Files\Zanebug>Zanebug.Console.exe /file:example.txt
If you don't want to load tests via the /file command, then you can load them using the /assemblies command. The /assemblies command allows you to list all test assemblies on the command line separated by a ;
Loading 1 assembly
C:\Program Files\Zanebug>Zanebug.Console.exe /assemblies:C:\test\sometest.dll
Loading multiple assemblies
C:\Program Files\Zanebug>Zanebug.Console.exe /assemblies:C:\test\sometest.dll;C:\test\sometest2.dll
If the path to your test assembly contains a space, then you must surround it in quotes. Example:
C:\Program Files\Zanebug>Zanebug.Console.exe /assemblies:"C:\test\spaced folder\sometest.dll";C:\test\sometest2.dll
Without the /showdetail command, the results will only focus on the results for an assembly, and the overall results. With the /showdetail switch, results for individual tests will be shown.
C:\Program Files\Zanebug>Zanebug.Console.exe /assemblies:C:\test\sometest.dll /showdetail
Example output:
C:\Program Files\Zanebug>Zanebug.Console.exe /assemblies:"C:\Program Files\Zaneb
ug\Examples\Examples.Zanebug.v142\bin\Debug\Examples.Zanebug.v142.dll" /showdetail
Running Zanebug v1.4.2
Please wait...
DATE: 1/2/2005 9:42:30 PM
========================================
Examples.Zanebug.v142
========================================
C:\Program Files\Zanebug\Examples\Examples.Zanebug.v142\bin\Debug
Passed: 16
Failed: 1
Ignored: 2
Percent Passed: 94.12 %
Avg Duration: 0.00648279076142828
Total Duration: 0.00648279076142828
# of Iterations: 1
+++Examples.Zanebug.v142 - Fail
++Attributes - Fail
+FailExpectedException - Fail
Iteration: 1
+RepeatWithDelay - Pass
Iteration: 2
+RepeatWithDelay - Pass
Iteration: 3
+RepeatWithDelay - Pass
Iteration: 4
+RepeatWithDelay - Pass
Iteration: 5
+RepeatWithDelay - Pass
+MaxKMemory - Pass
+TestWithCategory - Pass
+IgnoreWithReason - Ignore
Iteration: 1
+Repeat - Pass
Iteration: 2
+Repeat - Pass
Iteration: 3
+Repeat - Pass
Iteration: 4
+Repeat - Pass
Iteration: 5
+Repeat - Pass
+ExpectedDivideByZeroException - Pass
+ExpectedException - Pass
+SimpleTest - Pass
+MinOperationsPerSecond - Pass
+Ignore - Ignore
========================================
SUMMARY
========================================
Total Failed: 1
Total Passed: 16
Total Ignored: 2
Percent Passed: 94.12 %
Percent Failed: 5.88 %
C:\Program Files\Zanebug>Show output will show the console output for each test.
/showdetail must be selected
C:\Program Files\Zanebug>Zanebug.Console.exe /assemblies:C:\test\sometest.dll /showdetail /showoutput
/showfailure will show the error and exception messages for each test
/showdetail must be selected
C:\Program Files\Zanebug>Zanebug.Console.exe /assemblies:C:\test\sometest.dll /showdetail /showfailure
Combined with /showoutput
C:\Program Files\Zanebug>Zanebug.Console.exe /assemblies:C:\test\sometest.dll /showdetail /showfailure /showoutput
/showxml will show the results in xml format
C:\Program Files\Zanebug>Zanebug.Console.exe /assemblies:C:\test\sometest.dll /showxml
/save allows you to save the results in well-formatted text to a file
C:\Program Files\Zanebug>Zanebug.Console.exe /file:assemblies.txt /save:output.txt