不同数据库平台上的 CI

发布于 2024-08-22 19:52:54 字数 109 浏览 4 评论 0原文

我想针对不同的数据库测试我的应用程序(尤其是 SQL 语句)。实际上我正在使用 Cruise Control 和 Oracle。

我想用其他数据库扩展测试。

有什么建议吗?

I want to test my application (especially SQL statements) against different databases. Actually I'm using Cruise Control and Oracle.

I want expand the tests with other databases.

Any suggestions?

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

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

发布评论

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

评论(1

妖妓 2024-08-29 19:52:54

我们的软件有一个包含数据库配置的 .config 文件。如果你能以任何方式分离出配置,f.eks就像我们一样。然后,您可以复制巡航控制测试项目(TestsOracle、TestsMSSql)并在单元测试任务之前的任务中切换配置。我们像这样测试 Oracle、MySql 和 SQL Server。

我还创建了一个插件,用于从构建任务中检索代码修改,因此对于每个测试执行,我们都可以看到实际单元测试执行中内置的代码修改。

希望有帮助!

Our software has a .config file with database configuration. If you can separate out the configuration in any way, f.eks like we do. Then you can duplicate the cruise control test project (TestsOracle, TestsMSSql) and switch the configuration in a task before the unit test task. We test for Oracle, MySql and SQL Server like that.

I also created a plugin that retrieves the code modifications from the build task, so for each test execution we can see the code modifications built into the actual unit test execution.

Hope that helps!

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