English 中文(简体)
A consistent and simple group of IDE and tools for embedded code and unit test in C++?
原标题:

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).

最佳回答

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.

问题回答

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.





相关问题
SoapUI Groovy 方言

我试图阅读即将提出的申请,并根据请求中价值分立的3.0作出模拟反应。 我为此使用了以下大写。

Mocking Entity Context in EF4

I am using VS2010 B2 and EF4 B2 and trying to use Rhino Mocks to mock the entity context generated by EEF. var context = MockRepository.GenerateMock<SomeDBEntities>(); IObjectSet<TxMode> ...

Google Mock for iPhone development?

I have an interesting situation where I am refactoring a bunch of ObjC iPhone code to create a C++ API. I m a novice to C++ and looking into C++ mocking frameworks to augment the work I d done using ...

StrucutureMap RhinoMock Record/Playback, Example needed

I m looking for some examples on how to do the following Mock Tests using StructureMap or Unity with NUnit. I have the following code structure public interface IDAL { List<Model> Method1(...

Easiest way to deal with sample data in Java web apps?

I m writing a Java web app in my free time to learn more about development. I m using the Stripes framework and eventually intend to use hibernate and MySQL For the moment, whilst creating the pages ...

Elegant design of simulating a read-only object

I am currently developing an GUI to an embedded system. (I am using GUI to descripe my app opposed to interface to avoid confusion with the progamatic meaning) Context I have created a class which ...

热门标签