您的 Django 项目(简单)持续集成解决方案是什么?
在我的一个 Django 项目中,我有一套基于 TransactionalTestCase
类的单元测试(它比 TestCase
花费的时间要长得多)。每次更改代码后都不可能运行测试,因为运行所有测试需要超过 0.5 小时。不久前,我们寻找一些简单的连续集成工具,它可以让我们(至少)在测试服务器上运行测试并向团队成员发送有错误的电子邮件(我们当然有代码存储库,我们目前不需要自动部署)。您有一些可行的解决方案或想法来实现这一目标吗?
我们编写了一些“超级简单的 CI 服务器”,它除了运行测试和发送电子邮件报告外什么也不做(它与我们的代码存储库集成)。但由于最近我们的不理想的简单工具遇到了一些问题,我现在想知道您是否在工作环境中成功完成了类似的场景?
我正在寻找轻量级、易于安装和使用的东西。
In one of my Django projects I have a suite of unit tests that are based on TransactionalTestCase
class (it takes much longer than TestCase
). It is impossible to run tests after each change in code because it takes more than 0.5 hour to run all tests. We looked some time ago for some easy contiuous integration tool that could allow us to (at least) run tests on tests server and send emails with errors to the team members (we have of course code repository and we don't need auto deployment at the momment). Do you have some working solutions or ideas how to accomplish this?
We wrote some 'super extra simple CI server' which does nothing more than running tests and sending email reports (it is integrated with our code repository). But since we had some problems with our not-ideal simple tool recently I'm wondering now if you have sucessfully completed similar scenarios in your working enviroment?
I'm looking for something ligthweight, easy to install and use.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
免责声明:我不认识姜戈。但我确实知道我使用 Hudson 作为多种语言和平台的持续集成工具。我发现它在 Windows 和 Linux 上都很容易安装和配置(设置和忘记),并且对可用插件的数量印象深刻。
基本上,如果您想要做的事情可以通过脚本文件自动化,那么您可以使用 Hudson。这确实值得一看。
我只花了几分钟的时间来设置它,以便当且仅当出现问题时我会收到一封电子邮件,尽管您可能想做其他事情(可能存在一个插件)。 Hudson 还可以与 BigZilla、所有主要版本控制工具等其他工具配合良好
Disclaimer: I don't know Django. But I do know that I use Hudson as my continuous integration tool for a number of languages and platforms. I found it easy to install and confgure on both Windows and Linux (set & forget) and was impressed with the number of plugins available.
Basically, if what you want to do can be automated by a sctript file, then you can use Hudson. It really is worth checking out.
It took me only a few minutes to set it so that I get an email if, and only if, something goes wrong, although you might want to do somethinng else (for which there probably exists a plugin). Hudson also plays well with other tools like BigZilla, all major version control tools, etc
您是否考虑过进行两种测试 - 基本测试和高级测试,并添加额外的 django 命令,该命令仅运行基本测试,而且速度很快?这样您就可以对小的更改进行基本测试,并仅在您即将提交/推送更改时运行完整的测试套件?
Have you considered having two kinds of tests - basic and advanced and adding additional django command, that would run only basic tests, that are fast? This way you can do basic testing on small changes and run the full test suite only when you are about to commit/push changes?