fastly / Viceroy

Viceroy provides local testing for developers working with Compute.
https://fastly.dev/learning/compute/testing/#running-a-local-testing-server
Apache License 2.0
140 stars 35 forks source link

Rework component testing support to make test updates easier #395

Closed elliottt closed 2 days ago

elliottt commented 2 days ago

Add a macro for generating the core wasm and component versions of a test, and modify the .adapt_component builder function on Test to accept a bool. This simplifies modifying existing tests to support components by doing the work of abstracting out the body in a macro.