I am currently developing an embedded c++ project in Atmel Studio 6. This project has a fairly significant embedded portion and also a significant business logic portion. Ideally I would like to run some unit testing for the business logic code. Being able to conveniently build then run these tests would make it more likely that the unit tests get used.
If I try to compile with the Boost unit tests with the default avr-gcc compiler I get errors because various header files cannot be found. I understand that these headers are not implemented for the AVR chipset I am using as they would be too expensive in that context. However these headers are only ever used for unit testing the non-embedded part and have therefore been placed in their own dedicated unit tests project.
Will I need to set up a different compiler to compile the unit tests? Is it possible to compile the unit tests with a different compiler toolchain to the default avr-gcc installed or will I have to compile the unit tests elsewhere? Is there an easier way of doing this?