Unit Tests, Documentation and Mocks (oh my!)

Emily Shaffer emilyshaffer at google.com
Thu Aug 8 10:20:17 AEST 2019


On Wed, Aug 7, 2019 at 5:11 PM Andrew Jeffery <andrew at aj.id.au> wrote:

> Hi Wilfred,
>
> On Thu, 8 Aug 2019, at 05:16, Wilfred Smith wrote:
> > Please pardon my ignorance, but I’ve searched and come up empty-handed.
> > A URL would be greatly appreciated.
> >
> > Where are the unit tests,
>
> Unit tests sit in the application repositories alongside the code. OpenBMC
> has historically been poor on unit testing, though this is improving.
>

I'll add that phosphor-host-ipmid has documentation on how to run unit
tests locally using Docker here:
https://github.com/openbmc/phosphor-host-ipmid/blob/master/docs/testing.md

This setup likely applies to a few other areas of the project (although I
haven't tested it). It's very similar to the continuous integration test
suite.

 - Emily
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ozlabs.org/pipermail/openbmc/attachments/20190807/0309e450/attachment.htm>


More information about the openbmc mailing list