GildedRose-Refactoring-Kata/plpgsql/pgunit
2020-01-19 19:56:22 +01:00
..
asserts_tests.sql Move to plpgsql/pgunit 2019-12-28 16:13:44 +01:00
asserts.sql Move to plpgsql/pgunit 2019-12-28 16:13:44 +01:00
initialize.sh move docker files to root 2020-01-19 19:56:22 +01:00
readme.md Move to plpgsql/pgunit 2019-12-28 16:13:44 +01:00
run_tests.sql change test with foo example to fixme 2020-01-12 23:35:38 +01:00

Requirement

Testing on postgres 12
Unit test framework used : pgunit (https://github.com/adrianandrei-ca/pgunit)

Setup

Run docker-compose up -d to start, and docker-compose exec database bash to enter in container.
You can run cat update_quality.sql run_tests.sql | psql -d kata -f -

Kata

update_quality.sql contains code to refactor, and run_tests.sql contains test examples.