C ++与性能指标持续集成 [英] c++ continuous integration with performance metrics

查看:195
本文介绍了C ++与性能指标持续集成的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想建立一个持续集成和测试框架为我的开源C ++项目。所需的功能有:

I want to set up a continuous integration and test framework for my open source C++ project. The desired features are:

1. check out the source code
2. run all the unit and other tests
3. run performance tests (these measure the software quality - for example how long does it take the system to complete the test)
4. produce a report based on 3. and 4. daily
5. archive the reports for future reference

要实现这一点,这测试框架,你会推荐什么持续集成的过程?现在我倾向于谷歌测试框架(我知道的一些讨论的单元测试框架的比较的其他问题),用于测试和 Cruisecontrol可以持续集成。但我不知道是否Cruisecontrol可以易于集成性能指标。

To implement this, which test framework and what continuous integration process would you recommend? Right now I am leaning towards Google Test Framework (I am aware of some of the comparisons of unit test frameworks discussed in other questions) for tests and Cruisecontrol for continuous integration. But I don't know if Cruisecontrol allows easy integration of performance metrics.

修改的:要回答Wilhelmtell,code应与Windows和Linux的工作。

Edit: To answer Wilhelmtell, code should work with both Windows and Linux.

推荐答案

我使用CruiseControl的和的UnitTest ++今天正是这种任务。

I am using CruiseControl and UnitTest++ today for exactly this task.

++的UnitTest是非常好的,虽然我感到它在拐角处有时选择有限。至少它比CppUnit的好10倍。还没有尝试过的谷歌测试框架,这将是我的下一个项目。

UnitTest++ is really nice although I feel sometimes limited by it around the corner. At least it is 10 times better than cppunit. Still haven't tried the google testing framework, it will be for my next project.

我已经被CruiseControl的极度失望。有请在邮件列表上的一些错误和问题根本没有回答。许多默认的功能来管理程序的执行和记录并不令人满意。我们必须写我们自己的报表生成,我们自己的输出和错误捕获,我们自己的状态邮件。没有太多放置CruiseControl的,除了定期运行试验和收集它们的中心Web服务器

I have been extremely disappointed by CruiseControl. There are a few bugs and questions asked on the mailing list were never answered. Many of the default "features" to manage program execution and logging were not satisfying. We had to write our own report generation, our own stdout and stderr capturing, our own status mailer. There is not much left for CruiseControl, apart from running test at regular intervals and gathering them in a central web server.

这篇关于C ++与性能指标持续集成的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆