Skip to content

Create a "spec" test suite that can run against arbitrary guest implementations #7

@avidal

Description

@avidal

Fastly has official support for Rust, and beta support for AssemblyScript. I think it'd be interesting to have a spec test which can run against wasm binaries produced by both source languages. Coincidentally, this could also be used by anyone developing their own guest bindings for other languages.

My idea is to have a series of defined endpoints, one for each test, where (ideally) each test isolates to a minimal subset of the ABI. There would be a corresponding implementation of these endpoints for each source language. Implementations could write a response with a specific status code as the default response to indicate that a particular test isn't implemented.

For example, there could be a test for dictionaries. Implementations would provide handlers for /dictionaries that are supposed to open a specific dictionary, get a key, and return the value of that key. If a particular implementation does not yet have dictionary support, it could instead write back a 501 Not Implemented to signal to the test runner that it should be skipped.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions