NUnitLite 1.0
Milestone information
- Project:
- NUnitLite
- Series:
- trunk
- Version:
- 1.0
- Released:
- Registrant:
- Charlie Poole
- Release registered:
- Active:
- No. Drivers cannot target bugs and blueprints to this milestone.
Activities
- Assigned to you:
- No blueprints or bugs assigned to you.
- Assignees:
- 2 Charlie Poole, 1 Tyrel Alastair Hunter
- Blueprints:
- No blueprints are targeted to this milestone.
- Bugs:
- 3 Fix Released
Download files for this release
Release notes
NUnitLite Version 1.0 - September 13, 2013
NUnitLite is a small-footprint implementation of much of the current NUnit framework. It is distributed in source form and is intended for use in situations where NUnit is too large or complex. In particular, it targets mobile and embedded environments as well as testing of applications that require "embedding" the framework in another piece of software, as when testing plugin architectures.
This file provides basic information about NUnitLite. For more info see the NUnitLite web site at http://
COPYRIGHT AND LICENSE
NUnitLite is Copyright 2004-2013, Charlie Poole and is licensed under the MIT license.
A copy of the license is distributed with the program in the file LICENSE.txt and is also available at http://
NUnitLite is based on ideas in NUnit, but not on the NUnit implementation. In addition, some code developed in NUnitLite was subsequently contributed to the NUnit project, where it is available under the NUnit license. Subsequently, some (but not all) of the newer NUnit features were ported back to NUnitLite.
ATTRIBUTES
NUnitLite supports most of the same attributes as NUnit 2.6.2.
CategoryAttribute
CombinatorialA
CultureAttribute
DatapointAttribute
DatapointsAttr
DescriptionAtt
ExpectedExcept
ExplicitAttribute
IgnoreAttribute
MaxTimeAttribute
PairwiseAttribute
PlatformAttribute
PropertyAttribute
RandomAttribute
RangeAttribute
SequentialAttr
SetCultureAttr
SetUICultureAt
SetUpAttribute
TearDownAttribute
TestAttribute
TestCaseAttribute
TestCaseSource
TestFixtureAtt
TestFixtureSet
TestFixtureTea
TheoryAttribute
TimeoutAttribute
ValuesAttribute
ValueSourceAtt
ASSERTS
The programmer expresses expected test conditions using the Assert class. The existing functionality of most current NUnit Assert methods is supported, but the syntax has been changed to use the more extensible constraint-based format. The following methods are supported:
Assert.Pass
Assert.Fail
Assert.Ignore
Assert.
Assert.That
Assert.ByVal
Assert.Throws
Assert.
Assert.Catch
Assert.Null
Assert.NotNull
Assert.True
Assert.False
Assert.AreEqual
Assert.AreNotEqual
Assert.AreSame
Assert.AreNotSame
ASSUMPTIONS
The programmer may express assumptions in the test using Assume.That() A failure in Assume.That causes an Inconclusive result.
CONSTRAINTS
NUnitLite supports most of the same built-in constraints as NUnit. Users may also derive custom constraints from the abstract Constraint class. The following built-in constraints are provided:
AllItemsConstraint
AndConstraint
AssignableFrom
AssignableToCo
AttributeConst
AttributeExist
BinarySerializ
CollectionCont
CollectionEqui
CollectionOrde
CollectionSubs
ContainsConstraint
DelayedConstraint
EmptyCollectio
EmptyConstraint
EmptyDirectory
EmptyStringCon
EndsWithConstraint
EqualConstraint
ExactCountCons
ExactTypeConst
ExceptionTypeC
FalseConstraint
GreaterThanCon
GreaterThanOrE
InstanceOfType
LessThanConstraint
LessThanOrEqua
NaNConstraint
NoItemConstraint
NotConstraint
NullConstraint
NullOrEmptyStr
OrConstraint
PredicateConst
PropertyConstraint
PropertyExists
RangeConstraint
RegexConstraint (not available on compact framework)
ReusableConstraint
SameAsConstraint
SamePathConstraint
SamePathOrUnde
SomeItemsConst
StartsWithCons
SubPathConstraint
SubstringConst
ThrowsConstraint
ThrowsNothingC
TrueConstraint
UniqueItemsCon
XmlSerializabl
Although constraints may be created using their constructors, the more usual approach is to make use of one or more of the NUnitLite SyntaxHelpers. The following helpers are provided:
Is: Not, All, Null, True, False, Positive, Negative, NaN, Empty, Unique,
EqualTo, SameAs, GreaterThan, GreaterThanOrEq
AtLeast, AtMost, TypeOf, InstanceOf, AssignableFrom, AssignableTo,
StringCon
EquivalentTo, SubsetOf, BinarySerializable, XmlSerializable,
Ordered, SamePath, SamePathOrUnder, InRange
Contains: Substring, Item
Has: No, All, Some, None,Exactly, Property, Length, Count, Message, InnerException, Member, Attribute
Tests are loaded as a tree structure of suites, fixtures and test cases. Each fixture contains it's tests. Tests are executed in the order found, without any guarantees of ordering. A separate instance of the fixture object is created for each test case executed by NUnitLite. The embedded console runner produces a summary of tests run and lists any errors or failures. It can also save an XML representation of the test results.
USAGE
NUnitLite is not "installed" in your system. Instead, you should include nunitlite.dll in your project. Your test assembly should be an exe file and should reference the nunitlite assembly. If you place a call like this in your Main
new TextUI(
then NUnitLite will run all the tests in the test project, using the args provided. Use -help to see the available options.
DOCUMENTATION
NUnitLite uses the NUnit.Framework namespace, which allows relatively easy portability between NUnit and NUnitLite. Currently, there is no separate set of documentation for NUnitLite so you should use the docs for NUnit 2.6 or later in conjunction with the information in this file.
Changelog
0 blueprints and 3 bugs targeted
Bug report | Importance | Assignee | Status | |||
---|---|---|---|---|---|---|
1223294 | #1223294 | System.NullReferenceException thrown when ExpectedExceptionAttribute is used in a static class | 2 Critical | Charlie Poole | 10 Fix Released | |
1221712 | #1221712 | When non-existing test method is specified in -test, result is still "Tests run: 1, Passed: 1" | 3 High | Charlie Poole | 10 Fix Released | |
1223166 | #1223166 | Range and Value Attribute appear to be broken | 1 Undecided | Tyrel Alastair Hunter | 10 Fix Released |