-
Notifications
You must be signed in to change notification settings - Fork 86
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
Add example of E2E testing #368
Conversation
9caf228
to
26731ca
Compare
wait-for-connection localhost:4444 | ||
|
||
export SSL_CERT_FILE="${pkgs.cacert}/etc/ssl/certs/ca-bundle.crt" | ||
${workspace}/bin/e2e_tests |
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.
thought (non-blocking): Oh. Interesting. I think it works, and nothing wrong with it but generally build a whole workspace for testing and other things, and then run the e2e script.
The advantage is that the test scripts work all the same both from dev env (./script/run-some-test.sh
) and CI.
IMO during daily work developers shouldn't need to touch Nix for anything but entering the dev shell.
In Flakebox I even added specialized commands to make it cleaner.
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.
Certainly! I added a comment to highlight this.
26731ca
to
2bab31c
Compare
I went ahead and added PostgreSQL to the example, just to hammer the point home that you can spin up anything together in the test. If it's too much, let me know! |
I didn't squash so it's easy to drop postgres if necessary |
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.
Looking great, thanks for adding this @lelgenio !
I don't mind having postgres in there as long as it doesn't end up making the test suite run for too long (though we can always comment it out later if it does).
Few minor nit/cleanup comments and happy to merge afterwards!
b5d147f
to
1accb3d
Compare
Motivation
Discussion: #366
Checklist
examples/README.md