docker-pgredshift icon indicating copy to clipboard operation
docker-pgredshift copied to clipboard

Testing framework

Open shawnpyle opened this issue 3 years ago • 0 comments

It would be great to have a framework that we could test created functions against expected results.

For example, testing

SELECT getdate();

would ensure that the added function would return a TIMESTAMP and its value is what we expected. These tests would be more complex when testing lots of inputs (see this PR).

I don't know if there is a framework to do this easily but I suspect it will require an additional dependency and the value of ensuring the functions work across postgres versions would be worth it.

shawnpyle avatar Jan 20 '22 21:01 shawnpyle