I upgraded my tests from Specflow 1.9 to 2.0 and nunit 2.6.4 to nunit 3.0. We run all our tests via command line, and use xml generated from Nunit to report testing status in a custom test reporting dashboard. I also generate specflow html report using nunit xml output.
Issue
1. When i run test using nunit 3.0 xml shows 0 for number of test passed, failed, ignored etc. Can someone help me figure this ?
2. In nunit 2.6.4 i could name xml as my need, but looks like nunit 3.0 always sets it to TestResults.xml, beside manually updating names, is there a way similar to nunit 2.6.4 that i can set the name of this file ?
3. Even though both test were run using same tags total number does not match, so does total mean different between these 2 version?
Command line that was being used to execute test in nunint 2.6.4
"C:\Program Files (x86)\NUnit 2.6.4\bin\nunit-console-x86.exe" /labels /nologo /nodots /include:bol+smoke /output=TestResultsRegression\SmokeTest\LastTestResults.txt /xml=TestResultsRegression\SmokeTest\LastTestResults.xml /framework=4.0.30319 "BL.dll"
Command line i am using for nunit 3.0
"C:\Program Files (x86)\NUnit.org\nunit-console\nunit3-console.exe" "BL.dll" --where "cat == bol && cat == smoke" --out=D:\AutomatedTests\TestResultsRegression\SmokeTest\LastTestResults.txt --work=D:\AutomatedTests\TestResultsRegression\SmokeTest\
Part of XML from nunit 2.6.4
<?xml version="1.0" encoding="utf-8" standalone="no"?>
<!--This file represents the results of running a test suite-->
<test-results name="D:\AutomatedTests\BL.dll" total="505" errors="0" failures="0" not-run="1" inconclusive="0" ignored="1" skipped="0" invalid="0" date="2016-03-24" time="08:24:06">
<environment nunit-version="2.6.4.14350" clr-version="2.0.50727.5485" os-version="Microsoft Windows NT 6.1.7601 Service Pack 1" platform="Win32NT" cwd="D:\AutomatedTests" machine-name="PD10" user="automation" user-domain="ABC" />
<culture-info current-culture="en-US" current-uiculture="en-US" />
<test-suite type="Assembly" name="D:\AutomatedTests\BL.dll" executed="True" result="Success" success="True" time="118.961" asserts="0">
<results>
Part of XML from nunit 3.0
<?xml version="1.0" encoding="utf-8" standalone="no"?>
<test-run id="2" testcasecount="78218" result="Passed" total="78218" passed="0" failed="0" inconclusive="0" skipped="0" asserts="0" engine-version="3.2.0.0" clr-version="4.0.30319.34209" start-time="2016-03-24 12:10:09Z" end-time="2016-03-24 12:12:37Z" duration="147.733461">
<command-line><![CDATA["C:\Program Files (x86)\NUnit.org\nunit-console\nunit3-console.exe" "BL.dll" --where "cat == bol && cat == smoke" --out=D:\AutomatedTests\TestResultsRegression\SmokeTest\LastTestResults.txt --work=D:\AutomatedTests\TestResultsRegression\SmokeTest\ ]]></command-line>
<filter>
<and>
<cat>bol</cat>
<cat>smoke</cat>
</and>
</filter>
<test-suite type="Assembly" id="1-88941" name="D:\AutomatedTests\BL.dll" fullname="D:\AutomatedTests\BL.dll" runstate="Runnable" testcasecount="78218" result="Passed" duration="120.187742" total="78218" passed="0" failed="0" inconclusive="0" skipped="0" asserts="0">
<properties>
<property name="_PID" value="8212" />
<property name="_APPDOMAIN" value="test-domain-" />
</properties>