Re: Thoughts on unit testing?

From: Thomas Munro <thomas(dot)munro(at)enterprisedb(dot)com>
To: Andres Freund <andres(at)anarazel(dot)de>
Cc: Pg Hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Thoughts on unit testing?
Date: 2017-08-10 23:37:47
Message-ID: CAEepm=0tAVcSRth8sCcVNf8pwgYaGop1qLPSGDgP4XTZEKzASQ@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Fri, Aug 11, 2017 at 11:13 AM, Thomas Munro
<thomas(dot)munro(at)enterprisedb(dot)com> wrote:
> Just create a .test.c file and type "TEST(my_math,
> factorial) { EXPECT_EQ(6, factorial(3)); }" ...

Of course that would really need to #include "something/test_macros.h"
and "something/factorial.h", and EXPECT_EQ probably doesn't make much
sense in C, but you get the point: very low barrier to use it.

--
Thomas Munro
http://www.enterprisedb.com

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Noah Misch 2017-08-11 01:51:07 Re: [BUGS] Replication to Postgres 10 on Windows is broken
Previous Message AP 2017-08-10 23:31:52 Re: pgsql 10: hash indexes testing