зеркало из
1
0
Форкнуть 0

Merge pull request #934 from nunit/issue-931

Remove beta warnings from NuGet packages
This commit is contained in:
CharliePoole 2015-10-27 08:38:54 -07:00
Родитель f2f60981b4 11fa7a258f
Коммит 66770788ea
4 изменённых файлов: 21 добавлений и 15 удалений

Просмотреть файл

@ -13,9 +13,7 @@
<summary>NUnit is a unit-testing framework for all .Net languages with a strong TDD focus.</summary>
<description>NUnit features a fluent assert syntax, parameterized, generic and theory tests and is user-extensible.
A number of runners, both from the NUnit project and by third parties, are able to execute NUnit tests.
This package includes the NUnit 3.0 framework assembly, which is referenced by your tests. You will need to install version 3.0 of the nunit-console program or a third-party runner that supports NUnit 3.0 in order to execute tests. Runners intended for use with NUnit 2.x will not run 3.0 tests correctly.
This is an beta release, but is ready for production use for people with prior NUnit experience.
Supported platforms:
- .NET 2.0+
@ -26,9 +24,7 @@ Supported platforms:
- Universal (Windows Phone 8.1+, Windows 8.1+)
- Xamarin (MonoTouch, MonoAndroid, Xamarin iOS Universal)
- Portable Libraries (supporting Profile259)</description>
<releaseNotes>This package includes the NUnit 3.0 framework assembly, which is referenced by your tests. You will need to install version 3.0 of the nunit-console program or a third-party runner that supports NUnit 3.0 in order to execute tests. Runners intended for use with NUnit 2.x will not run 3.0 tests correctly.
This is an beta release, but is ready for production use for people with prior NUnit experience.</releaseNotes>
<releaseNotes>This package includes the NUnit 3.0 framework assembly, which is referenced by your tests. You will need to install version 3.0 of the nunit-console program or a third-party runner that supports NUnit 3.0 in order to execute tests. Runners intended for use with NUnit 2.x will not run 3.0 tests correctly.</releaseNotes>
<language>en-US</language>
<tags>nunit test testing tdd framework fluent assert theory plugin addin</tags>
<copyright>Copyright (c) 2015 Charlie Poole</copyright>
@ -47,7 +43,7 @@ This is an beta release, but is ready for production use for people with prior N
<file src="bin/sl-5.0/nunit.framework.xml" target="lib\sl50" />
<file src="bin/portable/nunit.framework.dll" target="lib/dotnet" />
<file src="bin/portable/nunit.framework.xml" target="lib/dotnet" />
<file src="bin/portable/nunit.framework.dll" target="lib/portable-net45+win8+wp8+wpa81" />
<file src="bin/portable/nunit.framework.xml" target="lib/portable-net45+win8+wp8+wpa81" />
<file src="bin/portable/nunit.framework.dll" target="lib/portable-net45+win8+wp8+wpa81+Xamarin.Mac+MonoAndroid10+MonoTouch10+Xamarin.iOS10" />
<file src="bin/portable/nunit.framework.xml" target="lib/portable-net45+win8+wp8+wpa81+Xamarin.Mac+MonoAndroid10+MonoTouch10+Xamarin.iOS10" />
</files>
</package>

Просмотреть файл

@ -11,8 +11,19 @@
<iconUrl>http://nunit.org/nuget/nunitv3_32x32.png</iconUrl>
<requireLicenseAcceptance>false</requireLicenseAcceptance>
<summary>NUnitlite is a lightweight runner for tests that use the NUnit testing framework.</summary>
<description>NUnitLite provides a simple way to run NUnit tests, without the overhead of a full NUnit installation. It is suitable for projects that want to have a quick way to run tests using a console runner and don't need all the features of the NUnit engine and console runner. This package contains builds of the NUnitLite runner for .NET 2.0, 4.0 and 4.5 as well as Silverlight 5.0.&#10;&#13;How to use this package:&#10;&#13;1. Create a console application for your tests and delete the generated class containing Main().&#10;&#13;2. Install the NUnitLite package, which creates a new Main() as well as adding a reference to NUnitLite. This will also bring in the NUnit package, which adds a reference to the nunit framework to your project.&#10;&#13;3. Add your tests to the test project and simply start the project to execute them.</description>
<releaseNotes>This is an beta release, but is ready for production use for people with prior NUnit experience.</releaseNotes>
<description>NUnitLite provides a simple way to run NUnit tests, without the overhead of a full NUnit installation. It is suitable for projects that want to have a quick way to run tests using a console runner and don't need all the features of the NUnit engine and console runner.
Supported platforms:
- .NET 2.0+
- .NET Core (Universal Windows Apps 10+, DNX Core 5+)
- SilverLight 5.0
- Portable Libraries (supporting Profile259)
How to use this package:
1. Create a console application for your tests and delete the generated class containing Main().
2. Install the NUnitLite package, which creates a new Main() as well as adding a reference to NUnitLite. This will also bring in the NUnit package, which adds a reference to the nunit framework to your project.
3. Add your tests to the test project and simply start the project to execute them.</description>
<language>en-US</language>
<tags>test unit testing tdd framework fluent assert device phone embedded</tags>
<copyright>Copyright (c) 2015 Charlie Poole</copyright>
@ -31,7 +42,7 @@
<file src="bin/net-4.5/nunitlite.dll" target="lib/net45" />
<file src="bin/sl-5.0/nunitlite.dll" target="lib/sl5" />
<file src="bin/portable/nunitlite.dll" target="lib/dotnet" />
<file src="bin/portable/nunitlite.dll" target="lib/portable-net45+win8+wp8+wpa81" />
<file src="bin/portable/nunitlite.dll" target="lib/portable-net45+win8+wp8+wpa81+Xamarin.Mac" />
<file src="..\..\nuget\Program.cs" target="content" />
<file src="..\..\nuget\Program.vb" target="content" />
<file src="..\..\nuget\install.ps1" target="tools" />

Просмотреть файл

@ -38,8 +38,11 @@ namespace NUnit.Framework.Internal.Builders
private const string DEFAULT_TEST_NAME_PATTERN = "{m}{a:40}";
private readonly Randomizer _randomizer = Randomizer.CreateRandomizer();
private readonly TestNameGenerator _nameGenerator;
private readonly TestNameGenerator _nameGenerator;
/// <summary>
/// Constructs an <see cref="NUnitTestCaseBuilder"/>
/// </summary>
public NUnitTestCaseBuilder()
{
_nameGenerator = new TestNameGenerator(DEFAULT_TEST_NAME_PATTERN);

Просмотреть файл

@ -154,8 +154,6 @@ namespace NUnitLite
// TODO: Add where clause here
}
private bool _testCreatedOutput = false;
public void TestFinished(ITestResult result)
{
bool isSuite = result.Test.IsSuite;
@ -168,13 +166,11 @@ namespace NUnitLite
if (!isSuite && labels == "ALL" || !isSuite && labels == "ON" && result.Output.Length > 0)
{
_writer.WriteLine("=> " + result.Test.Name);
_testCreatedOutput = true;
}
if (result.Output.Length > 0)
{
_writer.Write(result.Output);
_testCreatedOutput = true;
if (!result.Output.EndsWith("\n"))
_writer.WriteLine();
}