There is a suite of tests that are included with WiX. They can be used to verify that changes to the toolset do not regress existing functionality.
The tests will build as part of the normal WiX build. They have a dependency on Microsoft.VisualStudio.QualityTools.UnitTestFramework 220.127.116.11 assembly that ships with the following editions of Visual Studio:
The build system searches the registry to detect if one of the above mentioned editions is installed on the machine. If the detection key cannot be found then the tests will not build from Nant but they can still be built by MSBuild if the required UnitTestFramework assembly exists.
The tests are built into an assembly called wixtests.dll to the same location as the other WiX binaries.
Nant must be run from the WiX root directory. To build only the tests, specify the 'wixtests' target.
Open c:\delivery\dev\wix\test\wixtests.sln from a WiX command window. The solution should build from within Visual Studio.
The tests can be run from within Visual Studio or from the command line. Before the tests are run, the environment variable 'WIX_ROOT' must be set to the WiX root directory. It should be set if you are in a WiX command window, but if it is not:
The WIX_ROOT environment variable requirement is used in many tests to locate test data.
There is a batch file, test.bat, which can be used to run the tests.
c:\delivery\dev\wix\test\test.bat [all|smoke|test name]
Run MSTest with the test binaries.
Open wixtests.sln from a WiX command window.
Run the tests from Visual Studio Test Manager.