This new pre-release introduces two backwards incompatible changes over 2.0.0-alpha-02:
- the
byXPath
ElementSelector
was changed so that an XPath of "." refers to the control and test nodes respectively - which is what most would have expected anyway. - the
ElementSelectors.conditionalBuilder
has changed its behavior to stop evaluating the conditions once awhen
condition has returnedtrue
. In alpha-02 the nextwhen
s and finally the defaultElementSelectors
would have been consulted if awhen
returnedtrue
but the associatedElementSelector
returned false.
XMLUnit.NET now comes with two different constraint assemblies targeting NUnit 2.x and 3.x respectively. To reflect this the XMLUnit.Constraints nuget package has been renamed to XMLUnit.NUnit2.Constraints.
This is still an alpha release as the API may well change based on
your feedback. Please provide feedback about the API in case it needs
to get adapted before the final release on the
xmlunit-general
list or via GitHub issues.
XMLUnit 2.0.0-alpha-03 is available as GitHub release via https://github.com/xmlunit/xmlunit/releases/tag/v2.0.0-alpha-03/ and https://github.com/xmlunit/xmlunit.net/releases/tag/v2.0.0-alpha-03/ respectively.
XMLUnit for Java is also available via Maven Central.
<dependency> <groupId>org.xmlunit</groupId> <artifactId>xmlunit-core</artifactId> <version>2.0.0-alpha-03</version> </dependency>
with additional artifacts xmlunit-matchers
and
xmlunit-legacy
.
XMLUnit.NET is also available as nuget packages XMLUnit.Core, XMLUnit.NUnit2.Constraints and XMLUnit.NUnit3.Constraints.
For more information please visit http://www.xmlunit.org.
path: /en/oss/XMLUnit | #