From: | Philip Semanchuk <philip(at)americanefficient(dot)com> |
---|---|
To: | Joao Miguel Ferreira <joao(dot)miguel(dot)c(dot)ferreira(at)gmail(dot)com> |
Cc: | PostgreSQL General <pgsql-general(at)lists(dot)postgresql(dot)org> |
Subject: | Re: plpgsql unit testing and code coverage |
Date: | 2020-12-31 13:52:43 |
Message-ID: | 722533B0-6E30-4B34-9D54-1F22F159A724@americanefficient.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
> On Dec 31, 2020, at 7:20 AM, Joao Miguel Ferreira <joao(dot)miguel(dot)c(dot)ferreira(at)gmail(dot)com> wrote:
>
> Hello,
>
> I'm a fan of unit testing and related matters but have used it only on client applications, not on database implemented logic. I recently joined a project whit dozens of PL functions and procedures.
>
> So, it would be great for me to find a way to execute unit tests on those functions and procedures and, even better, if I can get code coverage results from it. I really enjoy approaching sw development with these tools.
>
> I'dd appreciate your feedback
Hi Joao,
Are you familiar with pgTAP? (https://pgtap.org) It gives you some of what you want, but I don’t think it handles coverage.
Cheers
Philip
From | Date | Subject | |
---|---|---|---|
Next Message | Pavel Stehule | 2020-12-31 15:24:35 | Re: plpgsql unit testing and code coverage |
Previous Message | Joao Miguel Ferreira | 2020-12-31 12:20:52 | plpgsql unit testing and code coverage |