8000 Add cram test for the examples by Willenbrink · Pull Request #396 · aantron/dream · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Add cram test for the examples #396

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

Open
wants to merge 8 commits into
base: master
Choose a base branch
from

Conversation

Willenbrink
Copy link

Previously, the examples were t 8000 here but not tested and IIUC not even compiled during publishing/testing. This leads to them bitrotting. This PR adds simple cram tests that start the server from the respective example and test the output via curl.

I've only implemented the tests for the first few examples as some examples don't compile currently or require more advanced curl knowledge.

There are a few issues documented in the README.md such as:

  • The curl command might be run before the server becomes available
  • The tests all use the same port so they cannot be run concurrently
  • The logs contain timestamps which prevents reproducible tests using them

I don't think these are large issues and can be addressed in a later PR.

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

Successfully merging this pull request may close these issues.

1 participant
0