This website uses cookies. By clicking Accept, you consent to the use of cookies. Click Here to learn more about how we use cookies.
Turn on suggestions
Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
- Revenera Community
- :
- InstallShield
- :
- InstallShield Forum
- :
- Unit testing InstallScript
Subscribe
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Subscribe
- Mute
- Printer Friendly Page
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
Jun 05, 2009
01:02 PM
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?
Is there a way to unit test this kind of InstallScript code?
(1) Reply
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
Jun 05, 2009
03:41 PM
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.
![](/skins/images/A5EADE085F77DE82FB3B14D6B307AE6A/responsive_peak/images/icon_anonymous_message.png)