GildedRose-Refactoring-Kata/plpgsql/pgunit
2020-01-12 23:35:38 +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
docker-compose.yml Move to plpgsql/pgunit 2019-12-28 16:13:44 +01:00
Dockerfile Move to plpgsql/pgunit 2019-12-28 16:13:44 +01:00
initializeDatabase.sh Move to plpgsql/pgunit 2019-12-28 16:13:44 +01:00
initializeDocker.sh Move to plpgsql/pgunit 2019-12-28 16:13:44 +01:00
item.sql Move to plpgsql/pgunit 2019-12-28 16:13:44 +01:00
new_item.sql Move to plpgsql/pgunit 2019-12-28 16:13:44 +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
update_quality.sql Move to plpgsql/pgunit 2019-12-28 16:13:44 +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.