Commits on Jun 23, 2016
  1. Indentation, credit @rodo.

    committed Jun 23, 2016
  2. Add extension support

    rodo committed Jun 23, 2016
Commits on Jun 22, 2016
  1. Sort enum labels.

    And adjust spacing for between has_enum_labels() calls.
    committed Jun 22, 2016
Commits on Jun 16, 2016
  1. Add enum support

    rodo committed Jun 16, 2016
Commits on May 23, 2016
  1. Add missing space.

    committed May 23, 2016
  2. Pass trigger function schema to trigger_is().

    Rewrite the query to get that schema name, and to eliminate unused columns.
    Also remove the setting of the search path and pass the table schema name to
    has_trigger() and trigger_is().
    committed May 23, 2016
  3. Add newline and credit @rodo.

    Use "\n" instead of $/, and emit one after the trigger tests. Also, fix some
    typos in the v3.32 changes notes.
    committed May 23, 2016
Commits on May 22, 2016
  1. Add trigger support

    rodo committed May 22, 2016
Commits on May 11, 2016
  1. Increment to v3.33.

    committed May 11, 2016
  2. Timestamp v3.32.

    committed May 11, 2016
  3. Refactor pg_prove to subclass App::Prove.

    This is more in line with how it *should* be written. The impetus for this was
    to address failed option parsing when bundling options, such as `pg_prove -vd
    foo`. That really comes down to a bug in Getopt::Long
    (, but in coming up with a
    workaround for that, it made sense to properly subclass App::Prove and better
    let it do its thing. That workaround, though, boy howdy. We have to
    monkey-patch App::Prove to replace GetOptions(). But we just do that for the
    duration of the call to process_args() (from the subclass implementation), so
    the exposure is limited.
    committed May 11, 2016
Commits on May 10, 2016
Commits on Apr 16, 2016
  1. Restore table test generation.

    And fix up the column test formatting and descriptions, including proper
    quoting of defaults that include string values.
    * Enumerate changes from @slaught.
    * Replace hinky `&func()` syntax in favor of `func()`.
    committed Apr 16, 2016
Commits on Apr 15, 2016
  1. Restsore extenstion creation to pg_tapgen.

    But add `--create-extension` and `--no-create-extension` options to
    allow it to be explicitly included or excluded in the output.
    Also, fix a bug where pg_tapgen died with an error if no database options were
    specified. It should be fine to let them all fall back on the usual libpq
    defaults. And now it is.
    committed Apr 15, 2016
Commits on Mar 31, 2016
  1. improve tests when there are multiple schemas.

    -  add support for ownership checks.
    -  if public is excluded check it if exists.
       This is a hard one to get right. I am trying to ignore the crap that is in
       public but the public schema exists and the tests will blow up.
       Public is always created in an empty database. So unless you explictly drop it
       and it doesn't exist then this shouldn't cause problems.
    -  Change description for column related tests.
       The column releated tests that allow a schema require a description.
       This was hard coded to 'pgtapgen'. This is useless in tests results
       and makes finding the problem very difficult.
       The description is now the schema.table.column_name with an suffix
       to hint at which particular test it might be.
    -  have script function handle $total_test save/restore
       $total_test is a global value to simplify the code but
       when script is called recursively to create a new file
       $total_test needs to start counting again and be restored back
       to the correct value.
    -  use $PGPASSWORD for passwords. update Documentation.
    -  major change to output routine.
       The output routine now defaults to a string. Once all the tests
       are generated the total count is used to call 'plan()' instead
       of using no_plan. The output to the file is a single print
    -  fix for test counts.
       save the previous count and restore after recursive calls to script.
    -  Escape single quotes in default values.
    -  The default values using a sequence have single quotes that need to
       be escaped.
    -  force order of functions by names
       Order By generates the same output for the same set of functions.
    -  Support for materialized views and foreign tables.
       mateiralized views generate like regular views
       foreign tables generate like tables
    -  use full schema qualified object naming.
        - use pgtap functions with schema arguments.
          This fixes Databases with many interrelated schemas which are hard to test in isolation.
          Do NOT set search_path to one schema instead use fully qualified names.
          Use Cast to name to force function selection.
        - Add code to count total tests generated.
          This is prep work for enabling acurate test count delcarations.
        - Remove 'create extension' in test output as that screws with simple CI
          testing. Instlaling a PG extension is 1,000,000 times harder than
          manually loading pgtap and run the tests.
    - fix a typo from commit 8162bb5
    slaught committed Mar 31, 2016
Commits on Mar 29, 2016
Commits on Mar 25, 2016
Commits on Mar 4, 2016
Commits on Jun 19, 2015
  1. Add 3.32 to Changes.

    committed Jun 19, 2015
  2. Increment to v3.32.

    committed Jun 19, 2015
  3. Timestamp v3.31.

    committed Jun 19, 2015
  4. I kant spel.

    committed Jun 19, 2015
  5. Use --ext with --recurse.

    committed Jun 19, 2015
  6. Update copyright dates.

    committed Jun 19, 2015
  7. More than one now.

    committed Jun 19, 2015
  8. Pass --ext option as pgtap suffixes, too.

    This way --ext always resolves to pgTAP tests when using pg_prove, but not
    otherwise. Resolves theory/pgtap/#87.
    committed Jun 19, 2015
Commits on Oct 17, 2014
  1. Update Travis Perl builds.

    committed Oct 17, 2014
  2. Remove smart apostrophes.

    They came out as Xs in perldoc output. :-(.
    committed Oct 17, 2014