ildus / clickhouse_fdw

ClickHouse FDW for PostgreSQL
Apache License 2.0
260 stars 55 forks source link

How to add test cases #97

Open tkosgrabar opened 1 year ago

tkosgrabar commented 1 year ago

Hi,

I am trying to add few tests for usecase that I have, but failes. Then I tried also to add sample test, but still I cann't manage to pass tests ( locally and with ci ).

Can you check maybe

Thanks in advance

Denchick commented 1 year ago

Hi, try take a look at #88

tkosgrabar commented 1 year ago

HI, sorry, but I don't see tests in #88 I understand that to test functions cases should be added to functions.sql and they are validated buy comparing with functions.out and functions_1.out.

What I do not get is why test from sample branch fails ...

ildus commented 1 year ago

Yes, for tests you need add sql queries to .sql, and the expected result to corresponding .out files. If the result is different for another pg version, then you could add also to correspoding _1.out file. The tests are implememented using docker, you could run them locally then the output will show what's going wrong in your case. In github actions file you can see the exact commands to run.