一组一致且简单的 IDE 和工具,用于 C++ 中的嵌入式代码和单元测试?

发布于 2024-09-02 23:06:14 字数 658 浏览 2 评论 0原文

我正在为 Texas Instrument C283xx 和 C6xxx 目标使用 C++ 启动一个新的固件项目。 单元测试不会在目标上运行,但将在带有 Windows 的 PC 上使用 gcc/gcov 进行编译(并在 PC 上运行),并提供简单的测试指标代码覆盖率。

整个项目将成为 Cruise Control.NET 的一部分,用于持续集成。

我的问题是:有哪些一致的 IDE/框架/工具可以协同工作?

答/ 一位开发人员说 CodeComposerStudio V3.1 用于应用程序,CodeBlocks + CxxUnit 用于单元测试。

B/ 我更喜欢用于应用程序的 CodeComposerStudio V4、用于单元测试的 Eclipse CDT(以及 CCS V4)和 CppUnit + <用于模拟的strong>MockCpp。

我不需要为每个流程提供一流的工具,而是需要一个全局、一致且简单的解决方案(或者如果您愿意,可以使用一组工具)。

I’m starting a new firmware project in C++ for Texas Instrument C283xx and C6xxx targets.
The unit tests will not run on the target, but will be compiled with gcc/gcov on a PC with windows (and run as well on PC) with simple metrics for tested code coverage.

The whole project will be part of Cruise Control.NET for continuous integrations.

My question is: what are the consistent IDE / framework / tools to work together?

A/ One of the developers says CodeComposerStudio V3.1 for application and CodeBlocks + CxxUnit for the Unit tests.

B/ I’m more attracted with CodeComposerStudio V4 for application, Eclipse CDT (well, as CCS V4) and CppUnit for unit test + MockCpp for mocks.

I don’t want the best in class tools for each process, but a global, consistent and easy solution (or group of tools if you prefer).

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

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

发布评论

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

评论(2

红颜悴 2024-09-09 23:06:14

在我看来,google C++ Test Framework 和 google C++ Mocking Framework 可能是更好的选择。它与 eclipse cdt 配合使用,并且可以为 CI 服务器生成 xml 格式的输出。

In my opinion, google C++ Test Framework and google C++ Mocking Framework might be a better option. It works with eclipse cdt, and the output can be generated in the xml format for CI servers.

千笙结 2024-09-09 23:06:14

我了解单元测试未在目标上运行。但无论如何,您可能希望在目标中收集测试覆盖率。

请参阅 SD C++ 测试覆盖率,了解在实际应用中以最小占用空间运行的工具。位于大多数目标内部。您必须定制提供的小型数据收集程序才能使其发挥作用;通常是一个下午的简单锻炼。

I understand the Unit tests not running on the target. But you might want test coverage collected in the target anyway.

See SD C++ Test Coverage for a tool that operates with minimal footprint in a practical way inside most targets. You have to customize a provided small data collection procedure for this to work; normally an afternoons' straightforward exercise.

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