Service installation unit testing
Our installer will install a number of system services for Windows and UNIX using the JavaServiceWrapper . A class will be created that is responsible for creating JavaServiceWrapper configuration files, installing services, etc.
May I get some suggestions on how to test this class?
a source to share
I wouldn't struggle too much with unit testing such a class, rather I would go for integration / smoke tests . You still need to make sure your installation is working correctly - preferably not only on your own machine, but also in the target environment, in real life, before you go to show it off to your boss and most important client :-)
Update: I am guessing that the class in question will not contain complex logic, but simply glue the different parts supplied by other APIs together. However, if this is not the case, and you feel like you cannot easily test a significant portion of your functionality with integration tests, you can still try testing units with good macs and / or dependencies.
a source to share
Lol! Found this last night. Environmentally friendly deployment . I do find the more complex your deployment is, the more you need to test your environment.
a source to share