单元测试安装脚本

发布于 2024-07-24 05:57:33 字数 220 浏览 4 评论 0原文

我的 InstallScript 中有一些函数非常适合进行单元测试。 我的项目是 InstallScript MSI 项目。 我找到了一篇有关如何使用自定义 ICE 对自定义操作进行单元测试的文章,但我想要进行单元测试的代码不在自定义操作中,而是在 UI 序列中。

有没有办法对这种 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?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

夜空下最亮的亮点 2024-07-31 05:57:34

我建议使用 SprintfMsiLog() InstallScript 函数。 它将写入 MSI 日志文件,因此您可以对发生的情况进行故障排除,就像它是 MSI 标准操作一样。

我希望我理解你所说的“单元测试”的意思。

I would suggest the SprintfMsiLog() InstallScript function. It will write to the MSI log file, and so you can troubleshoot what's happening just as if it were an MSI standard action.

I hope I'm understanding what you mean by "unit test".

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文