Software automation and the start of mbed’s new Testfarm!


Not too long ago, Przemek (sh-em-ek) joined us to lead software automation for mbed. His task is a big one, but he has already made some great strides in developing the next version of our testing framework. I stopped by his desk to chat about how he was getting on, and took a few photos that I thought I might share.

Here is the man himself:

/media/uploads/simon/testfarm-05.jpg

One of our first goals is to make a really solid automated testing solution for platform SDK ports, so we can be confident mbed is running well on all supported platforms. As the number of companies and individuals contributing ports continues to rise, having a well structured and comprehensive test framework will really help us improve the quality over time.

Up until now, we've had various scripts and tests that have done a reasonable job, coupled with some hardware rigs we have built. Things like:

/media/uploads/simon/testfarm-02.jpg

But running the tests and interpreting the results was somewhat manual, and with the growth in hardware platforms, rigs on desks was not going to cut it any more. So Przemek has been starting to put together a next version of our testing framework, to make this much more automated from the software side using things like buildbot:

/media/uploads/simon/testfarm-03.jpg

And some of the tracking for our internal goals - you can see over 100 tests already in place, of which 42 are fully automated.

/media/uploads/simon/testfarm-04.jpg

Lots more to do here, but the software side is just half of the problem. Luckily, this all coincides with us moving in to much bigger offices, so we've now also allocated a whole wall for us to build a really comprehensive hardware test-farm for these platforms:

/media/uploads/simon/testfarm-01.jpg

First up is ordering some racking!

There is a long way to go, but thought you might be interested to see the startings of this work. If you are interested in this area and maybe helping out somehow, please feel free to comment below or contact Przemek Wirkus directly.

3 comments on Software automation and the start of mbed’s new Testfarm!:

17 Apr 2014

I would love to see a follow up regarding this software automation and hardware testing.

17 Apr 2014

How do you run tests via the PC?

I've been experimenting with RPC on the mbed. And for us at Vodafone our thoughts are to execute tests via RPC Python scripts on the PC.

We have tried this and it works well. This means that if we develop no objects or methods we can execute tests for the new objects and methods directly from the PC.

Can you tell us more about the hardware rig?

Kind regards, Nicholas.

28 Apr 2014

Looks really interesting. Keep us posted on your progress and where you would like some help!