Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to add test cases #97

Open
tkosgrabar opened this issue Jan 31, 2023 · 3 comments
Open

How to add test cases #97

tkosgrabar opened this issue Jan 31, 2023 · 3 comments

Comments

@tkosgrabar
Copy link

tkosgrabar commented Jan 31, 2023

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
Copy link
Contributor

Hi, try take a look at #88

@tkosgrabar
Copy link
Author

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
Copy link
Owner

ildus commented Feb 15, 2023

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants