I'm not sure what most people do, but here is what I do: For my wxs file testing, I just use LINQ to XML and verify properties of certain things that I do not want to change (i.e. perMachine installs, etc.) I do the same for other types of things, like SQLScript (verify that the sequence is sequential, etc.). I know that Lux ( http://wixtoolset.org/documentation/manual/v3/overview/lux.html) is supposed to be able to do something like that, but I wanted clear assertions in my CI and using NUnit was what was most familiar to me.
For my CustomActions we're using C#. For those, the Session object unfortunately is a sealed class. For that, I just wrote a SessionHelper object that wraps it, and in my unit tests I wrote a stub that acts like a Dictionary<string, object> that I can fake properties and such, whether or not I've logged to it, etc. Other than that, you can write unit tests like you normally would in C#. That's what we have been using and it has worked out pretty well. YMMV. Cheers, Levi On Tue, Feb 11, 2014 at 12:08 PM, Williams, David (UBC) < david.willi...@ubc.com> wrote: > Hello, > > I am new to the world of WiX, and installer in general. The major > question that I have at this time is how to unit test both the WiX and > the MSI that I create. Should I just setup a VM and try the installs > there or what? How do you guys test these projects? > > Thanks for your attention. > > David > > ***************************************************************************************************************************************************************** > This e-mail message and any attachments contain confidential information. > If you are not the intended recipient, you are hereby notified that > disclosure, printing, copying, distribution, or the taking of any action in > reliance on the contents of this electronic information is strictly > prohibited. If you have received this e-mail message in error, please > immediately notify the sender by reply message and then delete the > electronic message and any attachments. Exclaimer Version 4.22 > > > ------------------------------------------------------------------------------ > Android apps run on BlackBerry 10 > Introducing the new BlackBerry 10.2.1 Runtime for Android apps. > Now with support for Jelly Bean, Bluetooth, Mapview and more. > Get your Android app in front of a whole new audience. Start now. > > http://pubads.g.doubleclick.net/gampad/clk?id=124407151&iu=/4140/ostg.clktrk > _______________________________________________ > WiX-users mailing list > WiX-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/wix-users > ------------------------------------------------------------------------------ Android apps run on BlackBerry 10 Introducing the new BlackBerry 10.2.1 Runtime for Android apps. Now with support for Jelly Bean, Bluetooth, Mapview and more. Get your Android app in front of a whole new audience. Start now. http://pubads.g.doubleclick.net/gampad/clk?id=124407151&iu=/4140/ostg.clktrk _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users