[Libguestfs] [PATCH 06/27] daemon: Add unit tests of the ‘Utils’ module.

Richard W.M. Jones rjones at redhat.com
Wed Jul 19 14:33:39 UTC 2017


On Wed, Jul 19, 2017 at 02:29:33PM +0200, Pino Toscano wrote:
> On Wednesday, 19 July 2017 14:21:51 CEST Richard W.M. Jones wrote:
> > On Wed, Jul 19, 2017 at 12:57:08PM +0200, Pino Toscano wrote:
> > > Would it be possible to use oUnit too?
> > 
> > I'm not clear on what benefit oUnit gives us which is worth the extra
> > dependency it pulls in.
> 
> I was referring to OUnit2, which we already have an optional dependency
> for almost all the OCaml tests.

Sure, understood.  But what would we lose by converting those to
simple programs that just ran a series of "assert"s?  If a single
test fails we have to fix it anyway.

If the lack of oUnit2 means that other users are skipping
those tests, oUnit2 may be a negative.

Rich.

-- 
Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones
Read my programming and virtualization blog: http://rwmj.wordpress.com
Fedora Windows cross-compiler. Compile Windows programs, test, and
build Windows installers. Over 100 libraries supported.
http://fedoraproject.org/wiki/MinGW




More information about the Libguestfs mailing list