Update console and other doc pages for 3.0
This commit is contained in:
Родитель
882c388764
Коммит
2d4eb181cb
|
@ -1,2 +1,3 @@
|
|||
*.*~
|
||||
archive
|
||||
|
||||
|
|
|
@ -1,8 +1,5 @@
|
|||
<h1>NUnit-Console Command Line Options</h1>
|
||||
|
||||
<h2>Page Under Development</h2>
|
||||
|
||||
<!--<p>The console interface has a few additional options compared to the forms
|
||||
<p>The console interface has a few additional options compared to the forms
|
||||
interface. The command line must always specify one or more file names. The
|
||||
console interface normally creates an XML representation of the test results.
|
||||
This file by default is called TestResult.xml and is placed in the working
|
||||
|
@ -34,20 +31,18 @@ the tests contained in the nunit.tests.dll use the following command:</p>
|
|||
<p>You may specify a test to be run by providing the full name of the test along
|
||||
with the containing assembly. For example to run NUnit.Tests.AssertionTests
|
||||
in the nunit.tests assembly use the following command:
|
||||
<pre class="programtext"> nunit-console /test:NUnit.Tests.AssertionTests nunit.tests.dll</pre>
|
||||
<pre class="programtext"> nunit-console /run:NUnit.Tests.AssertionTests nunit.tests.dll</pre>
|
||||
|
||||
<p>The name of the test to be run may be that of a test case, test fixture or
|
||||
a namespace containing tests.
|
||||
|
||||
<p>The <b>/test</b> option replaces the <b>/run</b> option which is now deprecated.
|
||||
|
||||
<p>You can specify multiple tests by separating names with commas (without spaces). For example:
|
||||
<pre class="programtext"> nunit-console /test:NUnit.Tests.AssertionTests,NUnit.Tests.ConstraintTests nunit.tests.dll</pre>
|
||||
<pre class="programtext"> nunit-console /run:NUnit.Tests.AssertionTests,NUnit.Tests.ConstraintTests nunit.tests.dll</pre>
|
||||
|
||||
<p>Unlike the deprecated <b>/fixture</b> option, this option affects the running
|
||||
rather than the loading of the tests. Consequently it supports much broader use,
|
||||
including situations involving SetUpFixtures, which are not run if the class
|
||||
in question is not loaded. You should use <b>/test</b> in lieu of <b>/fixture</b>
|
||||
in question is not loaded. You should use <b>/run</b> in lieu of <b>/fixture</b>
|
||||
in almost every case.
|
||||
|
||||
<h3>Specifying Tests to be Run Using a Separate File</h3>
|
||||
|
@ -72,7 +67,7 @@ with the character '#' in the first column are treated as comments.
|
|||
class, a legacy suite (using the Suite property ) or a namespace. If a
|
||||
namespace is given, then all fixtures under that namespace are loaded.</p>
|
||||
<p>This option is provided for backward compatibility. In most cases, you will
|
||||
be better served by using the <b>/test</b> option.
|
||||
be better served by using the <b>/run</b> option.
|
||||
|
||||
<h3>Specifying Multiple Assemblies</h3>
|
||||
<p>You may run tests from multiple assemblies in one run using the console
|
||||
|
@ -310,7 +305,7 @@ files to be created in the results directory.
|
|||
<pre class="programtext"> nunit-console /work:results /out:Output.txt nunit.tests.dll</pre>
|
||||
|
||||
<hr>
|
||||
<h2>Miscellaneous Options</h2><hr>
|
||||
<h2>Miscellaneous Options</h2>
|
||||
|
||||
<p>The <b>/trace</b> option allows you to control the amount of information that NUnit
|
||||
writes to its internal trace log. Valid values are Off, Error, Warning,Info
|
||||
|
@ -328,4 +323,4 @@ files to be created in the results directory.
|
|||
<p>The <b>/nologo</b> option disables display of the copyright information at the
|
||||
start of the program.</p>
|
||||
<p>The <b>/cleanup</b> option clears the shadow copy cache and exits.</p>
|
||||
<p>The <b>/help</b> or <b>/?</b> option displays a brief help message</p>-->
|
||||
<p>The <b>/help</b> or <b>/?</b> option displays a brief help message</p>
|
||||
|
|
|
@ -1,191 +1,185 @@
|
|||
<?xml version="1.0" encoding="utf-8" standalone="no"?>
|
||||
<!--This file represents the results of running a test suite-->
|
||||
<test-results name="C:\Program Files\NUnit 2.6\bin\tests\mock-assembly.dll" total="21" errors="1" failures="1" not-run="7" inconclusive="1" ignored="4" skipped="0" invalid="3" date="2012-02-04" time="11:46:05">
|
||||
<environment nunit-version="2.6.0.12035" clr-version="2.0.50727.4963" os-version="Microsoft Windows NT 6.1.7600.0" platform="Win32NT" cwd="C:\Program Files\NUnit 2.6\bin" machine-name="CHARLIE-LAPTOP" user="charlie" user-domain="charlie-laptop" />
|
||||
<culture-info current-culture="en-US" current-uiculture="en-US" />
|
||||
<test-suite type="Assembly" name="C:\Program Files\NUnit 2.6\bin\tests\mock-assembly.dll" executed="True" result="Failure" success="False" time="0.094" asserts="0">
|
||||
<results>
|
||||
<test-suite type="Namespace" name="NUnit" executed="True" result="Failure" success="False" time="0.078" asserts="0">
|
||||
<results>
|
||||
<test-suite type="Namespace" name="Tests" executed="True" result="Failure" success="False" time="0.078" asserts="0">
|
||||
<results>
|
||||
<test-suite type="Namespace" name="Assemblies" executed="True" result="Failure" success="False" time="0.031" asserts="0">
|
||||
<results>
|
||||
<test-suite type="TestFixture" name="MockTestFixture" description="Fake Test Fixture" executed="True" result="Failure" success="False" time="0.031" asserts="0">
|
||||
<categories>
|
||||
<category name="FixtureCategory" />
|
||||
</categories>
|
||||
<results>
|
||||
<test-case name="NUnit.Tests.Assemblies.MockTestFixture.FailingTest" executed="True" result="Failure" success="False" time="0.016" asserts="0">
|
||||
<failure>
|
||||
<message><![CDATA[Intentional failure]]></message>
|
||||
<stack-trace><![CDATA[at NUnit.Tests.Assemblies.MockTestFixture.FailingTest()
|
||||
]]></stack-trace>
|
||||
</failure>
|
||||
</test-case>
|
||||
<test-case name="NUnit.Tests.Assemblies.MockTestFixture.InconclusiveTest" executed="True" result="Inconclusive" success="False" time="0.000" asserts="0">
|
||||
<reason>
|
||||
<message><![CDATA[No valid data]]></message>
|
||||
</reason>
|
||||
</test-case>
|
||||
<test-case name="NUnit.Tests.Assemblies.MockTestFixture.MockTest1" description="Mock Test #1" executed="True" result="Success" success="True" time="0.000" asserts="0" />
|
||||
<test-case name="NUnit.Tests.Assemblies.MockTestFixture.MockTest2" description="This is a really, really, really, really, really, really, really, really, really, really, really, really, really, really, really, really, really, really, really, really, really, really, really, really, really long description" executed="True" result="Success" success="True" time="0.000" asserts="0">
|
||||
<categories>
|
||||
<category name="MockCategory" />
|
||||
</categories>
|
||||
<properties>
|
||||
<property name="Severity" value="Critical" />
|
||||
</properties>
|
||||
</test-case>
|
||||
<test-case name="NUnit.Tests.Assemblies.MockTestFixture.MockTest3" executed="True" result="Success" success="True" time="0.016" asserts="0">
|
||||
<categories>
|
||||
<category name="AnotherCategory" />
|
||||
<category name="MockCategory" />
|
||||
</categories>
|
||||
<reason>
|
||||
<message><![CDATA[Succeeded!]]></message>
|
||||
</reason>
|
||||
</test-case>
|
||||
<test-case name="NUnit.Tests.Assemblies.MockTestFixture.MockTest4" executed="False" result="Ignored">
|
||||
<categories>
|
||||
<category name="Foo" />
|
||||
</categories>
|
||||
<reason>
|
||||
<message><![CDATA[ignoring this test method for now]]></message>
|
||||
</reason>
|
||||
</test-case>
|
||||
<test-case name="NUnit.Tests.Assemblies.MockTestFixture.MockTest5" executed="False" result="NotRunnable">
|
||||
<reason>
|
||||
<message><![CDATA[Method is not public]]></message>
|
||||
</reason>
|
||||
</test-case>
|
||||
<test-case name="NUnit.Tests.Assemblies.MockTestFixture.NotRunnableTest" executed="False" result="NotRunnable">
|
||||
<reason>
|
||||
<message><![CDATA[No arguments were provided]]></message>
|
||||
</reason>
|
||||
</test-case>
|
||||
<test-case name="NUnit.Tests.Assemblies.MockTestFixture.TestWithException" executed="True" result="Error" success="False" time="0.000" asserts="0">
|
||||
<failure>
|
||||
<message><![CDATA[System.ApplicationException : Intentional Exception]]></message>
|
||||
<stack-trace><![CDATA[at NUnit.Tests.Assemblies.MockTestFixture.MethodThrowsException()
|
||||
at NUnit.Tests.Assemblies.MockTestFixture.TestWithException()
|
||||
]]></stack-trace>
|
||||
</failure>
|
||||
</test-case>
|
||||
<test-case name="NUnit.Tests.Assemblies.MockTestFixture.TestWithManyProperties" executed="True" result="Success" success="True" time="0.000" asserts="0">
|
||||
<properties>
|
||||
<property name="Size" value="5" />
|
||||
<property name="TargetMethod" value="SomeClassName" />
|
||||
</properties>
|
||||
</test-case>
|
||||
</results>
|
||||
</test-suite>
|
||||
</results>
|
||||
</test-suite>
|
||||
<test-suite type="TestFixture" name="BadFixture" executed="False" result="NotRunnable">
|
||||
<reason>
|
||||
<message><![CDATA[No suitable constructor was found]]></message>
|
||||
</reason>
|
||||
<results>
|
||||
<test-case name="NUnit.Tests.BadFixture.SomeTest" executed="False" result="NotRunnable">
|
||||
<reason>
|
||||
<message><![CDATA[No suitable constructor was found]]></message>
|
||||
</reason>
|
||||
</test-case>
|
||||
</results>
|
||||
</test-suite>
|
||||
<test-suite type="TestFixture" name="FixtureWithTestCases" executed="True" result="Success" success="True" time="0.000" asserts="0">
|
||||
<results>
|
||||
<test-suite type="ParameterizedTest" name="GenericMethod" executed="True" result="Success" success="True" time="0.000" asserts="0">
|
||||
<results>
|
||||
<test-case name="NUnit.Tests.FixtureWithTestCases.GenericMethod<Int32>(2,4)" executed="True" result="Success" success="True" time="0.000" asserts="0" />
|
||||
<test-case name="NUnit.Tests.FixtureWithTestCases.GenericMethod<Double>(9.2d,11.7d)" executed="True" result="Success" success="True" time="0.000" asserts="0" />
|
||||
</results>
|
||||
</test-suite>
|
||||
<test-suite type="ParameterizedTest" name="MethodWithParameters" executed="True" result="Success" success="True" time="0.000" asserts="0">
|
||||
<results>
|
||||
<test-case name="NUnit.Tests.FixtureWithTestCases.MethodWithParameters(2,2)" executed="True" result="Success" success="True" time="0.000" asserts="1" />
|
||||
<test-case name="NUnit.Tests.FixtureWithTestCases.MethodWithParameters(9,11)" executed="True" result="Success" success="True" time="0.000" asserts="1" />
|
||||
</results>
|
||||
</test-suite>
|
||||
</results>
|
||||
</test-suite>
|
||||
<test-suite type="GenericFixture" name="GenericFixture<T>" executed="True" result="Success" success="True" time="0.000" asserts="0">
|
||||
<results>
|
||||
<test-suite type="TestFixture" name="GenericFixture<Double>(11.5d)" executed="True" result="Success" success="True" time="0.000" asserts="0">
|
||||
<results>
|
||||
<test-case name="NUnit.Tests.GenericFixture<Double>(11.5d).Test1" executed="True" result="Success" success="True" time="0.000" asserts="0" />
|
||||
<test-case name="NUnit.Tests.GenericFixture<Double>(11.5d).Test2" executed="True" result="Success" success="True" time="0.000" asserts="0" />
|
||||
</results>
|
||||
</test-suite>
|
||||
<test-suite type="TestFixture" name="GenericFixture<Int32>(5)" executed="True" result="Success" success="True" time="0.000" asserts="0">
|
||||
<results>
|
||||
<test-case name="NUnit.Tests.GenericFixture<Int32>(5).Test1" executed="True" result="Success" success="True" time="0.000" asserts="0" />
|
||||
<test-case name="NUnit.Tests.GenericFixture<Int32>(5).Test2" executed="True" result="Success" success="True" time="0.000" asserts="0" />
|
||||
</results>
|
||||
</test-suite>
|
||||
</results>
|
||||
</test-suite>
|
||||
<test-suite type="TestFixture" name="IgnoredFixture" executed="False" result="Ignored">
|
||||
<reason>
|
||||
<message><![CDATA[]]></message>
|
||||
</reason>
|
||||
<results>
|
||||
<test-case name="NUnit.Tests.IgnoredFixture.Test1" executed="False" result="Ignored">
|
||||
<reason>
|
||||
<message><![CDATA[]]></message>
|
||||
</reason>
|
||||
</test-case>
|
||||
<test-case name="NUnit.Tests.IgnoredFixture.Test2" executed="False" result="Ignored">
|
||||
<reason>
|
||||
<message><![CDATA[]]></message>
|
||||
</reason>
|
||||
</test-case>
|
||||
<test-case name="NUnit.Tests.IgnoredFixture.Test3" executed="False" result="Ignored">
|
||||
<reason>
|
||||
<message><![CDATA[]]></message>
|
||||
</reason>
|
||||
</test-case>
|
||||
</results>
|
||||
</test-suite>
|
||||
<test-suite type="ParameterizedFixture" name="ParameterizedFixture" executed="True" result="Success" success="True" time="0.000" asserts="0">
|
||||
<results>
|
||||
<test-suite type="TestFixture" name="ParameterizedFixture(42)" executed="True" result="Success" success="True" time="0.000" asserts="0">
|
||||
<results>
|
||||
<test-case name="NUnit.Tests.ParameterizedFixture(42).Test1" executed="True" result="Success" success="True" time="0.000" asserts="0" />
|
||||
<test-case name="NUnit.Tests.ParameterizedFixture(42).Test2" executed="True" result="Success" success="True" time="0.000" asserts="0" />
|
||||
</results>
|
||||
</test-suite>
|
||||
<test-suite type="TestFixture" name="ParameterizedFixture(5)" executed="True" result="Success" success="True" time="0.000" asserts="0">
|
||||
<results>
|
||||
<test-case name="NUnit.Tests.ParameterizedFixture(5).Test1" executed="True" result="Success" success="True" time="0.000" asserts="0" />
|
||||
<test-case name="NUnit.Tests.ParameterizedFixture(5).Test2" executed="True" result="Success" success="True" time="0.000" asserts="0" />
|
||||
</results>
|
||||
</test-suite>
|
||||
</results>
|
||||
</test-suite>
|
||||
<test-suite type="Namespace" name="Singletons" executed="True" result="Success" success="True" time="0.016" asserts="0">
|
||||
<results>
|
||||
<test-suite type="TestFixture" name="OneTestCase" executed="True" result="Success" success="True" time="0.016" asserts="0">
|
||||
<results>
|
||||
<test-case name="NUnit.Tests.Singletons.OneTestCase.TestCase" executed="True" result="Success" success="True" time="0.000" asserts="0" />
|
||||
</results>
|
||||
</test-suite>
|
||||
</results>
|
||||
</test-suite>
|
||||
<test-suite type="Namespace" name="TestAssembly" executed="True" result="Success" success="True" time="0.000" asserts="0">
|
||||
<results>
|
||||
<test-suite type="TestFixture" name="MockTestFixture" executed="True" result="Success" success="True" time="0.000" asserts="0">
|
||||
<results>
|
||||
<test-case name="NUnit.Tests.TestAssembly.MockTestFixture.MyTest" executed="True" result="Success" success="True" time="0.000" asserts="0" />
|
||||
</results>
|
||||
</test-suite>
|
||||
</results>
|
||||
</test-suite>
|
||||
</results>
|
||||
<?xml version="1.0" encoding="utf-8" standalone="no"?>
|
||||
<test-run id="2" name="mock-nunit-assembly.dll" fullname="/home/charlie/Dev/NUnit/nunit-3.0/bin/Debug/net-2.0/mock-nunit-assembly.dll" testcasecount="31" result="Failed" total="28" passed="18" failed="5" inconclusive="1" skipped="4" asserts="2" start-time="2014-11-02 21:22:56Z" end-time="2014-11-02 21:22:56Z" duration="0.147552">
|
||||
<environment nunit-version="3.0.5410.34202" clr-version="2.0.50727.1433" os-version="Unix 3.13.0.36" platform="Unix" cwd="/home/charlie/Dev/NUnit/nunit-3.0/bin/Debug" machine-name="cedar" user="charlie" user-domain="cedar" culture="en-US" uiculture="en-US" />
|
||||
<test-suite type="Assembly" id="1046" name="mock-nunit-assembly.dll" fullname="/home/charlie/Dev/NUnit/nunit-3.0/bin/Debug/net-2.0/mock-nunit-assembly.dll" runstate="Runnable" testcasecount="31" result="Failed" site="Child" start-time="2014-11-02 21:22:56Z" end-time="2014-11-02 21:22:56Z" duration="0.082000" total="28" passed="18" failed="5" inconclusive="1" skipped="4" asserts="2">
|
||||
<properties>
|
||||
<property name="_PID" value="15236" />
|
||||
<property name="_APPDOMAIN" value="test-domain-mock-nunit-assembly.dll" />
|
||||
</properties>
|
||||
<failure>
|
||||
<message>One or more child tests had errors</message>
|
||||
</failure>
|
||||
<test-suite type="TestSuite" id="1047" name="NUnit" fullname="NUnit" runstate="Runnable" testcasecount="31" result="Failed" site="Child" start-time="2014-11-02 21:22:56Z" end-time="2014-11-02 21:22:56Z" duration="0.074000" total="28" passed="18" failed="5" inconclusive="1" skipped="4" asserts="2">
|
||||
<failure>
|
||||
<message>One or more child tests had errors</message>
|
||||
</failure>
|
||||
<test-suite type="TestSuite" id="1048" name="Tests" fullname="NUnit.Tests" runstate="Runnable" testcasecount="31" result="Failed" site="Child" start-time="2014-11-02 21:22:56Z" end-time="2014-11-02 21:22:56Z" duration="0.074000" total="28" passed="18" failed="5" inconclusive="1" skipped="4" asserts="2">
|
||||
<failure>
|
||||
<message>One or more child tests had errors</message>
|
||||
</failure>
|
||||
<test-suite type="TestSuite" id="1049" name="Assemblies" fullname="NUnit.Tests.Assemblies" runstate="Runnable" testcasecount="11" result="Failed" site="Child" start-time="2014-11-02 21:22:56Z" end-time="2014-11-02 21:22:56Z" duration="0.057000" total="10" passed="4" failed="4" inconclusive="1" skipped="1" asserts="0">
|
||||
<failure>
|
||||
<message>One or more child tests had errors</message>
|
||||
</failure>
|
||||
<test-suite type="TestFixture" id="1000" name="MockTestFixture" fullname="NUnit.Tests.Assemblies.MockTestFixture" runstate="Runnable" testcasecount="11" result="Failed" site="Child" start-time="2014-11-02 21:22:56Z" end-time="2014-11-02 21:22:56Z" duration="0.054000" total="10" passed="4" failed="4" inconclusive="1" skipped="1" asserts="0">
|
||||
<properties>
|
||||
<property name="Category" value="FixtureCategory" />
|
||||
<property name="Description" value="Fake Test Fixture" />
|
||||
</properties>
|
||||
<failure>
|
||||
<message>One or more child tests had errors</message>
|
||||
</failure>
|
||||
<test-case id="1005" name="FailingTest" fullname="NUnit.Tests.Assemblies.MockTestFixture.FailingTest" runstate="Runnable" seed="1577084752" result="Failed" start-time="2014-11-02 21:22:56Z" end-time="2014-11-02 21:22:56Z" duration="0.037000" asserts="0">
|
||||
<failure>
|
||||
<message>Intentional failure</message>
|
||||
<stack-trace>at NUnit.Tests.Assemblies.MockTestFixture.FailingTest () [0x00001] in /home/charlie/Dev/NUnit/nunit-3.0/src/NUnitFramework/mock-assembly/MockAssembly.cs:116
|
||||
</stack-trace>
|
||||
</failure>
|
||||
</test-case>
|
||||
<test-case id="1010" name="InconclusiveTest" fullname="NUnit.Tests.Assemblies.MockTestFixture.InconclusiveTest" runstate="Runnable" seed="613849289" result="Inconclusive" start-time="2014-11-02 21:22:56Z" end-time="2014-11-02 21:22:56Z" duration="0.001000" asserts="0">
|
||||
<reason>
|
||||
<message>No valid data</message>
|
||||
</reason>
|
||||
</test-case>
|
||||
<test-case id="1001" name="MockTest1" fullname="NUnit.Tests.Assemblies.MockTestFixture.MockTest1" runstate="Runnable" seed="133455225" result="Passed" start-time="2014-11-02 21:22:56Z" end-time="2014-11-02 21:22:56Z" duration="0.000000" asserts="0">
|
||||
<properties>
|
||||
<property name="Description" value="Mock Test #1" />
|
||||
</properties>
|
||||
</test-case>
|
||||
<test-case id="1002" name="MockTest2" fullname="NUnit.Tests.Assemblies.MockTestFixture.MockTest2" runstate="Runnable" seed="802459947" result="Passed" start-time="2014-11-02 21:22:56Z" end-time="2014-11-02 21:22:56Z" duration="0.000000" asserts="0">
|
||||
<properties>
|
||||
<property name="Description" value="This is a really, really, really, really, really, really, really, really, really, really, really, really, really, really, really, really, really, really, really, really, really, really, really, really, really long description" />
|
||||
<property name="Severity" value="Critical" />
|
||||
<property name="Category" value="MockCategory" />
|
||||
</properties>
|
||||
</test-case>
|
||||
<test-case id="1003" name="MockTest3" fullname="NUnit.Tests.Assemblies.MockTestFixture.MockTest3" runstate="Runnable" seed="1658138704" result="Passed" start-time="2014-11-02 21:22:56Z" end-time="2014-11-02 21:22:56Z" duration="0.000000" asserts="0">
|
||||
<properties>
|
||||
<property name="Category" value="AnotherCategory" />
|
||||
<property name="Category" value="MockCategory" />
|
||||
</properties>
|
||||
<reason>
|
||||
<message>Succeeded!</message>
|
||||
</reason>
|
||||
</test-case>
|
||||
<test-case id="1007" name="MockTest4" fullname="NUnit.Tests.Assemblies.MockTestFixture.MockTest4" runstate="Ignored" seed="1218312642" result="Skipped" label="Ignored" start-time="2014-11-02 21:22:56Z" end-time="2014-11-02 21:22:56Z" duration="0.001000" asserts="0">
|
||||
<properties>
|
||||
<property name="Category" value="Foo" />
|
||||
<property name="_SKIPREASON" value="ignoring this test method for now" />
|
||||
</properties>
|
||||
<reason>
|
||||
<message>ignoring this test method for now</message>
|
||||
</reason>
|
||||
</test-case>
|
||||
<test-case id="1004" name="MockTest5" fullname="NUnit.Tests.Assemblies.MockTestFixture.MockTest5" runstate="NotRunnable" seed="1168218830" result="Failed" label="Invalid" start-time="2014-11-02 21:22:56Z" end-time="2014-11-02 21:22:56Z" duration="0.000000" asserts="0">
|
||||
<properties>
|
||||
<property name="_SKIPREASON" value="Method is not public" />
|
||||
</properties>
|
||||
<failure>
|
||||
<message>Method is not public</message>
|
||||
</failure>
|
||||
</test-case>
|
||||
<test-case id="1009" name="NotRunnableTest" fullname="NUnit.Tests.Assemblies.MockTestFixture.NotRunnableTest" runstate="NotRunnable" seed="1959249430" result="Failed" label="Invalid" start-time="2014-11-02 21:22:56Z" end-time="2014-11-02 21:22:56Z" duration="0.000000" asserts="0">
|
||||
<properties>
|
||||
<property name="_SKIPREASON" value="No arguments were provided" />
|
||||
</properties>
|
||||
<failure>
|
||||
<message>No arguments were provided</message>
|
||||
</failure>
|
||||
</test-case>
|
||||
<test-case id="1011" name="TestWithException" fullname="NUnit.Tests.Assemblies.MockTestFixture.TestWithException" runstate="Runnable" seed="34955911" result="Failed" label="Error" start-time="2014-11-02 21:22:56Z" end-time="2014-11-02 21:22:56Z" duration="0.003000" asserts="0">
|
||||
<failure>
|
||||
<message>System.Exception : Intentional Exception</message>
|
||||
<stack-trace> at NUnit.Tests.Assemblies.MockTestFixture.TestWithException () [0x00000] in /home/charlie/Dev/NUnit/nunit-3.0/src/NUnitFramework/mock-assembly/MockAssembly.cs:147
|
||||
at (wrapper managed-to-native) System.Reflection.MonoMethod:InternalInvoke (System.Reflection.MonoMethod,object,object[],System.Exception&)
|
||||
at System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00000] in <filename unknown>:0 </stack-trace>
|
||||
</failure>
|
||||
</test-case>
|
||||
<test-case id="1006" name="TestWithManyProperties" fullname="NUnit.Tests.Assemblies.MockTestFixture.TestWithManyProperties" runstate="Runnable" seed="732490144" result="Passed" start-time="2014-11-02 21:22:56Z" end-time="2014-11-02 21:22:56Z" duration="0.000000" asserts="0">
|
||||
<properties>
|
||||
<property name="Size" value="5" />
|
||||
<property name="TargetMethod" value="SomeClassName" />
|
||||
</properties>
|
||||
</test-case>
|
||||
</test-suite>
|
||||
</results>
|
||||
</test-suite>
|
||||
<test-suite type="TestFixture" id="1023" name="BadFixture" fullname="NUnit.Tests.BadFixture" runstate="NotRunnable" testcasecount="1" result="Failed" label="Invalid" start-time="2014-11-02 21:22:56Z" end-time="2014-11-02 21:22:56Z" duration="0.001000" total="1" passed="0" failed="1" inconclusive="0" skipped="0" asserts="0">
|
||||
<properties>
|
||||
<property name="_SKIPREASON" value="No suitable constructor was found" />
|
||||
</properties>
|
||||
<failure>
|
||||
<message>No suitable constructor was found</message>
|
||||
</failure>
|
||||
<test-case id="1024" name="SomeTest" fullname="NUnit.Tests.BadFixture.SomeTest" runstate="Runnable" seed="1997431163" result="Failed" site="Parent" start-time="0001-01-01 00:00:00Z" end-time="0001-01-01 00:00:00Z" duration="0.000000" asserts="0">
|
||||
<failure>
|
||||
<message>OneTimeSetUp: No suitable constructor was found</message>
|
||||
</failure>
|
||||
</test-case>
|
||||
</test-suite>
|
||||
<test-suite type="TestFixture" id="1025" name="FixtureWithTestCases" fullname="NUnit.Tests.FixtureWithTestCases" runstate="Runnable" testcasecount="4" result="Passed" start-time="2014-11-02 21:22:56Z" end-time="2014-11-02 21:22:56Z" duration="0.012000" total="4" passed="4" failed="0" inconclusive="0" skipped="0" asserts="2">
|
||||
<test-suite type="GenericMethod" id="1031" name="GenericMethod" fullname="NUnit.Tests.FixtureWithTestCases.GenericMethod" runstate="Runnable" testcasecount="2" result="Passed" start-time="2014-11-02 21:22:56Z" end-time="2014-11-02 21:22:56Z" duration="0.001000" total="2" passed="2" failed="0" inconclusive="0" skipped="0" asserts="0">
|
||||
<test-case id="1029" name="GenericMethod<Double>(9.2d,11.7d)" fullname="NUnit.Tests.FixtureWithTestCases.GenericMethod<Double>(9.2d,11.7d)" runstate="Runnable" seed="540536299" result="Passed" start-time="2014-11-02 21:22:56Z" end-time="2014-11-02 21:22:56Z" duration="0.000000" asserts="0" />
|
||||
<test-case id="1030" name="GenericMethod<Int32>(2,4)" fullname="NUnit.Tests.FixtureWithTestCases.GenericMethod<Int32>(2,4)" runstate="Runnable" seed="379940153" result="Passed" start-time="2014-11-02 21:22:56Z" end-time="2014-11-02 21:22:56Z" duration="0.000000" asserts="0" />
|
||||
</test-suite>
|
||||
<test-suite type="ParameterizedMethod" id="1028" name="MethodWithParameters" fullname="NUnit.Tests.FixtureWithTestCases.MethodWithParameters" runstate="Runnable" testcasecount="2" result="Passed" start-time="2014-11-02 21:22:56Z" end-time="2014-11-02 21:22:56Z" duration="0.011000" total="2" passed="2" failed="0" inconclusive="0" skipped="0" asserts="2">
|
||||
<test-case id="1026" name="MethodWithParameters(9,11)" fullname="NUnit.Tests.FixtureWithTestCases.MethodWithParameters(9,11)" runstate="Runnable" seed="1684488508" result="Passed" start-time="2014-11-02 21:22:56Z" end-time="2014-11-02 21:22:56Z" duration="0.011000" asserts="1" />
|
||||
<test-case id="1027" name="MethodWithParameters(2,2)" fullname="NUnit.Tests.FixtureWithTestCases.MethodWithParameters(2,2)" runstate="Runnable" seed="799071986" result="Passed" start-time="2014-11-02 21:22:56Z" end-time="2014-11-02 21:22:56Z" duration="0.000000" asserts="1" />
|
||||
</test-suite>
|
||||
</test-suite>
|
||||
<test-suite type="GenericFixture" id="1039" name="GenericFixture<T>" fullname="NUnit.Tests.GenericFixture<T>" runstate="Runnable" testcasecount="4" result="Passed" start-time="2014-11-02 21:22:56Z" end-time="2014-11-02 21:22:56Z" duration="0.071000" total="4" passed="4" failed="0" inconclusive="0" skipped="0" asserts="0">
|
||||
<test-suite type="TestFixture" id="1040" name="GenericFixture<Double>(11.5d)" fullname="NUnit.Tests.GenericFixture<Double>(11.5d)" runstate="Runnable" testcasecount="2" result="Passed" start-time="2014-11-02 21:22:56Z" end-time="2014-11-02 21:22:56Z" duration="0.001000" total="2" passed="2" failed="0" inconclusive="0" skipped="0" asserts="0">
|
||||
<test-case id="1041" name="Test1" fullname="NUnit.Tests.GenericFixture<Double>(11.5d).Test1" runstate="Runnable" seed="181561213" result="Passed" start-time="2014-11-02 21:22:56Z" end-time="2014-11-02 21:22:56Z" duration="0.000000" asserts="0" />
|
||||
<test-case id="1042" name="Test2" fullname="NUnit.Tests.GenericFixture<Double>(11.5d).Test2" runstate="Runnable" seed="830068503" result="Passed" start-time="2014-11-02 21:22:56Z" end-time="2014-11-02 21:22:56Z" duration="0.000000" asserts="0" />
|
||||
</test-suite>
|
||||
<test-suite type="TestFixture" id="1043" name="GenericFixture<Int32>(5)" fullname="NUnit.Tests.GenericFixture<Int32>(5)" runstate="Runnable" testcasecount="2" result="Passed" start-time="2014-11-02 21:22:56Z" end-time="2014-11-02 21:22:56Z" duration="0.002000" total="2" passed="2" failed="0" inconclusive="0" skipped="0" asserts="0">
|
||||
<test-case id="1044" name="Test1" fullname="NUnit.Tests.GenericFixture<Int32>(5).Test1" runstate="Runnable" seed="1223302585" result="Passed" start-time="2014-11-02 21:22:56Z" end-time="2014-11-02 21:22:56Z" duration="0.000000" asserts="0" />
|
||||
<test-case id="1045" name="Test2" fullname="NUnit.Tests.GenericFixture<Int32>(5).Test2" runstate="Runnable" seed="552955908" result="Passed" start-time="2014-11-02 21:22:56Z" end-time="2014-11-02 21:22:56Z" duration="0.000000" asserts="0" />
|
||||
</test-suite>
|
||||
</test-suite>
|
||||
<test-suite type="TestFixture" id="1016" name="IgnoredFixture" fullname="NUnit.Tests.IgnoredFixture" runstate="Ignored" testcasecount="3" result="Skipped" label="Ignored" start-time="2014-11-02 21:22:56Z" end-time="2014-11-02 21:22:56Z" duration="0.000000" total="3" passed="0" failed="0" inconclusive="0" skipped="3" asserts="0">
|
||||
<properties>
|
||||
<property name="_SKIPREASON" value="BECAUSE" />
|
||||
</properties>
|
||||
<reason>
|
||||
<message>BECAUSE</message>
|
||||
</reason>
|
||||
<test-case id="1017" name="Test1" fullname="NUnit.Tests.IgnoredFixture.Test1" runstate="Runnable" seed="153094556" result="Skipped" label="Ignored" site="Parent" start-time="0001-01-01 00:00:00Z" end-time="0001-01-01 00:00:00Z" duration="0.000000" asserts="0">
|
||||
<reason>
|
||||
<message>OneTimeSetUp: BECAUSE</message>
|
||||
</reason>
|
||||
</test-case>
|
||||
<test-case id="1018" name="Test2" fullname="NUnit.Tests.IgnoredFixture.Test2" runstate="Runnable" seed="1791574301" result="Skipped" label="Ignored" site="Parent" start-time="0001-01-01 00:00:00Z" end-time="0001-01-01 00:00:00Z" duration="0.000000" asserts="0">
|
||||
<reason>
|
||||
<message>OneTimeSetUp: BECAUSE</message>
|
||||
</reason>
|
||||
</test-case>
|
||||
<test-case id="1019" name="Test3" fullname="NUnit.Tests.IgnoredFixture.Test3" runstate="Runnable" seed="1313028116" result="Skipped" label="Ignored" site="Parent" start-time="0001-01-01 00:00:00Z" end-time="0001-01-01 00:00:00Z" duration="0.000000" asserts="0">
|
||||
<reason>
|
||||
<message>OneTimeSetUp: BECAUSE</message>
|
||||
</reason>
|
||||
</test-case>
|
||||
</test-suite>
|
||||
<test-suite type="ParameterizedFixture" id="1032" name="ParameterizedFixture" fullname="NUnit.Tests.ParameterizedFixture" runstate="Runnable" testcasecount="4" result="Passed" start-time="2014-11-02 21:22:56Z" end-time="2014-11-02 21:22:56Z" duration="0.070000" total="4" passed="4" failed="0" inconclusive="0" skipped="0" asserts="0">
|
||||
<test-suite type="TestFixture" id="1033" name="ParameterizedFixture(42)" fullname="NUnit.Tests.ParameterizedFixture(42)" runstate="Runnable" testcasecount="2" result="Passed" start-time="2014-11-02 21:22:56Z" end-time="2014-11-02 21:22:56Z" duration="0.000000" total="2" passed="2" failed="0" inconclusive="0" skipped="0" asserts="0">
|
||||
<test-case id="1034" name="Test1" fullname="NUnit.Tests.ParameterizedFixture(42).Test1" runstate="Runnable" seed="1746309700" result="Passed" start-time="2014-11-02 21:22:56Z" end-time="2014-11-02 21:22:56Z" duration="0.000000" asserts="0" />
|
||||
<test-case id="1035" name="Test2" fullname="NUnit.Tests.ParameterizedFixture(42).Test2" runstate="Runnable" seed="751833151" result="Passed" start-time="2014-11-02 21:22:56Z" end-time="2014-11-02 21:22:56Z" duration="0.000000" asserts="0" />
|
||||
</test-suite>
|
||||
<test-suite type="TestFixture" id="1036" name="ParameterizedFixture(5)" fullname="NUnit.Tests.ParameterizedFixture(5)" runstate="Runnable" testcasecount="2" result="Passed" start-time="2014-11-02 21:22:56Z" end-time="2014-11-02 21:22:56Z" duration="0.000000" total="2" passed="2" failed="0" inconclusive="0" skipped="0" asserts="0">
|
||||
<test-case id="1037" name="Test1" fullname="NUnit.Tests.ParameterizedFixture(5).Test1" runstate="Runnable" seed="1566720606" result="Passed" start-time="2014-11-02 21:22:56Z" end-time="2014-11-02 21:22:56Z" duration="0.000000" asserts="0" />
|
||||
<test-case id="1038" name="Test2" fullname="NUnit.Tests.ParameterizedFixture(5).Test2" runstate="Runnable" seed="748873569" result="Passed" start-time="2014-11-02 21:22:56Z" end-time="2014-11-02 21:22:56Z" duration="0.000000" asserts="0" />
|
||||
</test-suite>
|
||||
</test-suite>
|
||||
<test-suite type="TestSuite" id="1050" name="Singletons" fullname="NUnit.Tests.Singletons" runstate="Runnable" testcasecount="1" result="Passed" start-time="2014-11-02 21:22:56Z" end-time="2014-11-02 21:22:56Z" duration="0.071000" total="1" passed="1" failed="0" inconclusive="0" skipped="0" asserts="0">
|
||||
<test-suite type="TestFixture" id="1012" name="OneTestCase" fullname="NUnit.Tests.Singletons.OneTestCase" runstate="Runnable" testcasecount="1" result="Passed" start-time="2014-11-02 21:22:56Z" end-time="2014-11-02 21:22:56Z" duration="0.001000" total="1" passed="1" failed="0" inconclusive="0" skipped="0" asserts="0">
|
||||
<test-case id="1013" name="TestCase" fullname="NUnit.Tests.Singletons.OneTestCase.TestCase" runstate="Runnable" seed="573025224" result="Passed" start-time="2014-11-02 21:22:56Z" end-time="2014-11-02 21:22:56Z" duration="0.000000" asserts="0" />
|
||||
</test-suite>
|
||||
</test-suite>
|
||||
<test-suite type="TestSuite" id="1051" name="TestAssembly" fullname="NUnit.Tests.TestAssembly" runstate="Runnable" testcasecount="1" result="Passed" start-time="2014-11-02 21:22:56Z" end-time="2014-11-02 21:22:56Z" duration="0.071000" total="1" passed="1" failed="0" inconclusive="0" skipped="0" asserts="0">
|
||||
<test-suite type="TestFixture" id="1014" name="MockTestFixture" fullname="NUnit.Tests.TestAssembly.MockTestFixture" runstate="Runnable" testcasecount="1" result="Passed" start-time="2014-11-02 21:22:56Z" end-time="2014-11-02 21:22:56Z" duration="0.000000" total="1" passed="1" failed="0" inconclusive="0" skipped="0" asserts="0">
|
||||
<test-case id="1015" name="MyTest" fullname="NUnit.Tests.TestAssembly.MockTestFixture.MyTest" runstate="Runnable" seed="1954453960" result="Passed" start-time="2014-11-02 21:22:56Z" end-time="2014-11-02 21:22:56Z" duration="0.000000" asserts="0" />
|
||||
</test-suite>
|
||||
</test-suite>
|
||||
</test-suite>
|
||||
</results>
|
||||
</test-suite>
|
||||
</test-suite>
|
||||
</test-results>
|
||||
</test-run>
|
Двоичные данные
docs/3.0/img/console-mock.jpg
Двоичные данные
docs/3.0/img/console-mock.jpg
Двоичный файл не отображается.
До Ширина: | Высота: | Размер: 110 KiB |
Двоичный файл не отображается.
После Ширина: | Высота: | Размер: 114 KiB |
|
@ -1,11 +1,7 @@
|
|||
<h2>NUnit-Console</h2>
|
||||
|
||||
<h2>Page Under Development</h2>
|
||||
|
||||
<!--
|
||||
<p>The nunit-console.exe program is a text-based runner and can be used when you
|
||||
want to run all your tests and don’t need a red/yellow/green indication of
|
||||
success or failure.</p>
|
||||
<p>The nunit-console.exe program is a text-based runner for listing and running
|
||||
your tests from the command-line.
|
||||
|
||||
<p>It is useful for automation of tests and integration into other systems. It
|
||||
automatically saves its results in XML format, allowing you to produce reports
|
||||
|
@ -13,7 +9,7 @@
|
|||
program.</p>
|
||||
|
||||
<div class="screenshot-left">
|
||||
<?php echo nunit_doc_img( "console-mock.jpg" ) ?>
|
||||
<?php echo nunit_doc_img( "console-mock.png" ) ?>
|
||||
</div>
|
||||
<p>
|
||||
<p>In this example, nunit-console has just run the tests in the mock-assembly.dll
|
||||
|
@ -22,10 +18,3 @@
|
|||
result of the test run. Click <?php echo nunit_doc_file( "TestResult.xml", "here" ) ?>
|
||||
to see the XML produced for this test run.</p>
|
||||
|
||||
<p>The .NET 2.0 version of the nunit-console program is built using /platform:anycpu,
|
||||
which causes it to be jit-compiled to 32-bit code on a 32-bit system and 64-bit code
|
||||
on a 64 bit system. This causes an exception when NUnit is used to test a 32-bit
|
||||
application on a 64-bit system. To avoid this problem, use the nunit-console-x86
|
||||
program, which is built using /platform:x86, when testing 32-bit code on a
|
||||
64-bit system.
|
||||
-->
|
||||
|
|
|
@ -6,10 +6,67 @@ dt { font-weight: bold }
|
|||
|
||||
<h2>Release Notes</h2>
|
||||
|
||||
<h3>NUnit 3.0.0 Alpha - September 22, 2014</h3>
|
||||
|
||||
<h5>NOTE: A combined description of changes since NUnit 2.6.3 is under development along with a summary statement of major features. Both will be available in the next release.</h5>
|
||||
|
||||
<h3>NUnit 3.0.0 Alpha 2 - November 2, 2014</h3>
|
||||
|
||||
<h4>Breaking Changes</h4>
|
||||
|
||||
<ul>
|
||||
<li>The console runner no longer displays test results in the debugger.
|
||||
<li>The NUnitLite compact framework 2.0 build has been removed.
|
||||
<li>All addin support has been removed from the framework. Documentation of NUnit 3.0 extensibility features will be published in time for the beta release. In the interim, please ask for support on the nunit-discuss list.
|
||||
</ul>
|
||||
|
||||
<h4>General</h4>
|
||||
|
||||
<ul>
|
||||
<li>A separate solution has been created for Linux
|
||||
<li>We now have continuous integration builds under both Travis and Appveyor
|
||||
<li>The compact framework 3.5 build is now working and will be supported in future releases.
|
||||
</ul>
|
||||
|
||||
<h4>New Features</h4>
|
||||
|
||||
<ul>
|
||||
<li>The console runner now automatically detects 32- versus 64-bit test assemblies.
|
||||
<li>The NUnitLite report output has been standardized to match that of nunit-console.
|
||||
<li>The NUnitLite command-line has been standardized to match that of nunit-console where they share the same options.
|
||||
<li>Both nunit-console and NUnitLite now display output in color.
|
||||
<li>ActionAttributes now allow specification of multiple targets on the attribute as designed. This didn't work in the first alpha.
|
||||
<li>OneTimeSetUp and OneTimeTearDown failures are now shown on the test report. Individual test failures after OneTimeSetUp failure are no longer shown.
|
||||
<li>The console runner refuses to run tests build with older versions of NUnit. A plugin will be available to run older tests in the future.
|
||||
</ul>
|
||||
|
||||
<h4>Issues Resolved</h4>
|
||||
|
||||
<ul>
|
||||
<li>222 Color console for NUnitLite
|
||||
<li>229 Timing failures in tests
|
||||
<li>241 Remove reference to Microslft BCL packages
|
||||
<li>243 Create solution for Linux
|
||||
<li>245 Multiple targets on action attributes not implemented
|
||||
<li>246 C++ tests do not compile in VS2013
|
||||
<li>247 Eliminate trace display when running tests in debug
|
||||
<li>255 Add new result states for more precision in where failures occur
|
||||
<li>256 ContainsConstraint break when used with AndConstraint
|
||||
<li>264 Stacktrace displays too many entries
|
||||
<li>269 Add manifest to nunit-console and nunit-agent
|
||||
<li>270 OneTimeSetUp failure results in too much output
|
||||
<li>271 Invalid tests should be treated as errors
|
||||
<li>274 Command line options should be case insensitive
|
||||
<li>276 NUnit-console should not reference nunit.framework
|
||||
<li>278 New result states (ChildFailure and SetupFailure) break NUnit2XmlOutputWriter
|
||||
<li>282 Get tests for NUnit2XmlOutputWriter working
|
||||
<li>288 Set up Appveyor CI build
|
||||
<li>290 Stack trace still displays too many items
|
||||
<li>315 NUnit 3.0 alpha: Cannot run in console on my assembly
|
||||
<li>319 CI builds are not treating test failures as failures of the build
|
||||
<li>322 Remove Stopwatch tests where they test the real .NET Stopwatch
|
||||
</ul>
|
||||
|
||||
<h3>NUnit 3.0.0 Alpha 1 - September 22, 2014</h3>
|
||||
|
||||
<h4>Breaking Changes</h4>
|
||||
|
||||
<ul>
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
# of a page name and an optional display name
|
||||
# for use in the menu, separated by a comma.
|
||||
#
|
||||
docHome,NUnit 3.0 Alpha Release
|
||||
docHome,NUnit 3.0 Alpha 2 Release
|
||||
getStarted,Getting Started
|
||||
quickStart,Quick Start
|
||||
quickStartSource,Source Listing
|
||||
|
|
|
@ -9,13 +9,13 @@
|
|||
<h3>Under Development</h3>
|
||||
|
||||
<ul>
|
||||
<li><a href="index.php?p=docHome&r=3.0">NUnit 3.0 Alpha Release</a></li>
|
||||
<li><a href="index.php?p=docHome&r=3.0">NUnit 3.0 Alpha 2 Release</a></li>
|
||||
</ul>
|
||||
|
||||
<h3>Older Releases</h3>
|
||||
|
||||
<p>Documentation for older releases remains available.
|
||||
<ul>
|
||||
<ul class="across">
|
||||
<li><a href="index.php?p=docHome&r=2.6.2">NUnit 2.6.2</a></li>
|
||||
<li><a href="index.php?p=docHome&r=2.6.1">NUnit 2.6.1</a></li>
|
||||
<li><a href="index.php?p=docHome&r=2.6">NUnit 2.6</a></li>
|
||||
|
@ -50,11 +50,7 @@
|
|||
<li><a href="index.php?p=docHome&r=2.2.2">NUnit 2.2.2</a></li>
|
||||
<li><a href="index.php?p=docHome&r=2.2.1">NUnit 2.2.1</a></li>
|
||||
<li><a href="index.php?p=docHome&r=2.2">NUnit 2.2</a></li>
|
||||
</ul>
|
||||
|
||||
<h3>Older Releases in PDF Format</h3>
|
||||
<ul>
|
||||
<li><a href="NUnit-V2.1.4-ReadMe.pdf">NUnit 2.1</a></li>
|
||||
<li><a href="NUnit-V2.0-ReadMe.pdf">NUnit 2.0</a></li>
|
||||
<li><a href="NUnit-V2.1.4-ReadMe.pdf">NUnit 2.1 (pdf)</a></li>
|
||||
<li><a href="NUnit-V2.0-ReadMe.pdf">NUnit 2.0 (pdf)</a></li>
|
||||
</ul>
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче