-
Notifications
You must be signed in to change notification settings - Fork 33
Setup framework to do integration testing #50
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
Conversation
7731817
to
d987aa6
Compare
also added readme to tests/tmp/ so that the directory is present when cloning repo (otherwise tests fail)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you add a README in the new integration test dir please, with info as to what and why we're doing this?
"INSERT INTO state_groups (id, room_id, event_id) VALUES ({},{},{});\n", | ||
sg, | ||
PGEscape(room_id), | ||
PGEscape("left_blank") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Instead of using the slightly awful PGEscape
here, can't we just do a bunch of client.execute(..)
instead? It may be a touch slower but I think its much clearer.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I used PGEscape
because this is the same code used when the compressor generates the SQL in lib.rs
(where we should have PGEscape
or at least some sort of safe escaping) - and so if the reader can understand one they can understand both
I added information in the next PR to the workspace README on how to run the tests allong with info on all the other running options |
Co-authored-by: Erik Johnston <[email protected]>
BUILDS ON azren/stats_tests (PR #49)
Setup ability to do integration tests.
This done by starting a postgres docker image and running the tests using that.
NOTE: not currently run by github actions