cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
epotter
Level 5

Unit testing InstallScript

I've got a handful of functions in my InstallScript that are good candidates for unit tests. My project is a InstallScript MSI project. I found an article about how to unit test Custom Actions with custom ICEs, but the code I want to unit test isn't in a Custom Action, it is in the UI sequence.

Is there a way to unit test this kind of InstallScript code?
Labels (1)
0 Kudos
(1) Reply
joshstechnij
Level 10 Flexeran
Level 10 Flexeran

You can use a pure InstallScript project (assuming you don't need to test MSI related functionality) with a program/endprogram style script to test your functions. You can write the results to a text file and parse them after the project exits.
0 Kudos