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

Add end-to-end tests to CI #42

Open
twifkak opened this issue Aug 27, 2021 · 3 comments
Open

Add end-to-end tests to CI #42

twifkak opened this issue Aug 27, 2021 · 3 comments
Milestone

Comments

@twifkak
Copy link
Collaborator

twifkak commented Aug 27, 2021

#41 runs the unit tests for Rust & TypeScript. Add to this, something that tests that they interact correctly with each other and with the Cloudflare Worker environment. Ideas:

End-to-end tests:

Integration tests for individual TS functions:

@twifkak twifkak added this to the v3+ milestone Aug 27, 2021
@twifkak twifkak modified the milestones: v3+, v1 Sep 27, 2021
@twifkak
Copy link
Collaborator Author

twifkak commented Sep 27, 2021

As an interim solution, maybe some almost e2e tests, like a CLI SXG generator and a shell script that pipes it to dump-signedexchange -verify.

Plus wrangler build and the fastly_compute equivalent.

@twifkak
Copy link
Collaborator Author

twifkak commented Oct 26, 2021

I'm thinking at a minimum the test plan should be a matrix of:

Accept header:

  • prefers SXG
  • doesn't prefer SXG

Response:

  • small (<8MB) HTML
  • small HTML + <meta charset=utf-8>
  • small HTML + <meta charset=utf-8> + UTF-16 encoding with BOM
  • large (>8MB) HTML + <meta charset=utf-8>
  • small non-HTML
  • large non-HTML

@twifkak
Copy link
Collaborator Author

twifkak commented Oct 28, 2021

Another possible alternative to wrangler dev is Cloudflare's Miniflare which is a local Workers emulator.

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

1 participant