pgTAP installation - Mailing list pgsql-general

From Ray O'Donnell
Subject pgTAP installation
Date
Msg-id 70a80595-d834-9936-4fc7-3ae245f37d4a@rodonnell.ie
Whole thread Raw
Responses Re: pgTAP installation  (Vijaykumar Jain <vijaykumarjain.github@gmail.com>)
List pgsql-general
Hi all,

I'm just tipping my toe into the water with pgTAP for the first time, 
and must be doing something wrong - I can't seem to get it working.

I'm on Kubuntu Hirsute, and I've installed both PostgreSQL 13 and pgTAP 
from apt.postgresql.org:

    sudo apt install postgresql-13
    sudo apt install postgresql-13-pgtap

Then I connected to my database and installed pgTAP there:

     create extension pgtap;

And I can see it there:

gfc_booking6_dev=# \dx
                  List of installed extensions
   Name   | Version |   Schema   |         Description
---------+---------+------------+------------------------------
  pgtap   | 1.1.0   | public     | Unit testing for PostgreSQL
  plpgsql | 1.0     | pg_catalog | PL/pgSQL procedural language
(2 rows)


However, when I try to use it, I get:

gfc_booking6_dev=# select * from noplan();
ERROR:  function noplan() does not exist
LINE 1: select * from noplan();
                       ^
HINT:  No function matches the given name and argument types. You might 
need to add explicit type casts.

Am I missing a step somewhere?

Many thanks in advance,

Ray.


-- 
Raymond O'Donnell // Galway // Ireland
ray@rodonnell.ie



pgsql-general by date:

Previous
From: Ron
Date:
Subject: Re: Temporal tables as part of main release
Next
From: Vijaykumar Jain
Date:
Subject: Re: pgTAP installation