gpt4 book ai didi

C++ 与性能指标的持续集成

转载 作者:太空狗 更新时间:2023-10-29 19:45:12 25 4
gpt4 key购买 nike

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

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

要实现这一点,您会推荐哪种测试框架和哪种持续集成流程?现在我倾向于谷歌测试框架(我知道一些讨论的单元测试框架的比较 in other questions )用于测试和 Cruisecontrol用于持续集成。但我不知道 Cruisecontrol 是否允许轻松集成性能指标。

编辑:为了回答 Wilhelmtell,代码应该适用于 Windows 和 Linux。

最佳答案

我写了一篇可能对你有帮助的文章。它描述了使用 googletest 和 hudson 持续集成 C++ 代码,使用 gcov 进行代码覆盖率度量。 http://meekrosoft.wordpress.com/2010/06/02/continuous-code-coverage-with-gcc-googletest-and-hudson/

关于C++ 与性能指标的持续集成,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/384036/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com