GildedRose-Refactoring-Kata/postgres
2019-12-23 11:53:54 +01:00
..
asserts_tests.sql Add custom assertions 2019-12-23 11:53:54 +01:00
asserts.sql Add custom assertions 2019-12-23 11:53:54 +01:00
docker-compose.yml Create custom dockerfile 2019-12-23 11:53:54 +01:00
Dockerfile Create custom dockerfile 2019-12-23 11:53:54 +01:00
initializeDatabase.sh Create custom dockerfile 2019-12-23 11:53:54 +01:00
initializeDocker.sh Create custom dockerfile 2019-12-23 11:53:54 +01:00
item.sql translate item of plsql 2019-12-23 11:53:53 +01:00
new_item.sql translate new_item of plsql 2019-12-23 11:53:53 +01:00
readme.md add readme 2019-12-23 11:53:54 +01:00
run_tests.sql Add test sample 2019-12-23 11:53:54 +01:00
update_quality.sql translate update_quality of plsql 2019-12-23 11:53:54 +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.