-
Notifications
You must be signed in to change notification settings - Fork 9
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 Integration Tests #239
Conversation
`make clean-dev-server` will remove this
Codecov Report
@@ Coverage Diff @@
## master #239 +/- ##
=======================================
Coverage 94.41% 94.41%
=======================================
Files 107 107
Lines 4767 4767
Branches 272 272
=======================================
Hits 4501 4501
Misses 223 223
Partials 43 43 Continue to review full report at Codecov.
|
GitHub Actions are weak
This reverts commit 0c923f5.
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.
Great Work!
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.
LGTM!
* Persist the database in docker-compose `make clean-dev-server` will remove this * Add an integration test * Make curl fail * Generate some test fixtures * Wait longer for the boot GitHub Actions are weak * Do better shell redirects * 10 seconds is plenty * Try and set current working directory * Revert "Try and set current working directory" This reverts commit 0c923f5. * More escaping * Even more * Try removing a character * Spaces * IT NEARLY WORKS * Try no tty * Docker is bad * Set working directory for exec * Try less arguments * Force non interactive * Try a subshell * Use smaller fixtures * Make curl verbose * Bind to all interfaces * Test the makefile whilst we're here * Change test names
This Pull Request adds integrations tests in GitHub Actions, which perform the following:
make fake-data
to generate some test fixtures/stats/stats/
endpoint worksTo do this, I've had to add a persistent database to the
postgres
container, but I've updated theclean-dev-server
makefile target to clean this up. This is tested within the workflow.This should hopefully catch things like us writing broken migrations or updating things like twisted which prevent core from booting.
Resolves #238