Skip to content
Stefan Bodewig edited this page Jan 11, 2015 · 3 revisions

Building XMLUnit

Java

XMLUnit for Java builds using Apache Maven, mainly you want to run

$ mvn install

The tests of XMLUnit depend on JUnit 4.x (legacy uses JUnit 3.x and also depends on JUnit 3.x at runtime), the matchers depend on Hamcrest.

.NET

XMLUnit for .NET builds using NAnt, run nant -projecthelp for the available targets, but mainly you want to run

$ nant

in order to compile core and constraints and build the assemblies.

$ nant test

executes the NUnit tests.

Tests are run using NUnit 2.x and the constraints assembly even has a runtime dependency on it. NUnit is checked into the repository and referenced by the build file.

Discussion

Stefan Bodewig's main development platform is Linux, so the build process must not require Visual Studio. MSBuild/xbuild may be options, in particular it may be easier to create and publish NuGet packages using them.

Clone this wiki locally