afry-south / dragonfly-fcb

ÅF Dragonfly Quadrotor UAV Project
Other
7 stars 3 forks source link

Unit testing setup #34

Open stenbergd opened 9 years ago

stenbergd commented 9 years ago

Is there a way where we can test some (all?) of the code functions through unit testing?

What would it require? Is there some standard method of unit testing embedded applications such as the one run on the STM32F3Discovery board?

Do we need to copy-paste function from target code to a separate C environment?

This could open up the possibility for Test-Driven development.

stenbergd commented 9 years ago

Currently working on system emulation with QEMU, which opens up possibilities to unit test greatly.

stenbergd commented 9 years ago

How does unit test on real HW work? Does it need a dedicated build with different main method?

adam-at-epsilon commented 9 years ago

I think we should add a stability test on hardware as well, perhaps if we could use a power source other than the battery (or two batteries), we could perhaps run the software for 2-3 hours in a row or preferably even longer.