mirror of
https://github.com/paradigmxyz/mesc.git
synced 2026-11-16 06:58:05 +00:00
|
…
|
History | |
|---|---|---|
| .. | ||
| adapters | ||
| generated | ||
| generate.py | ||
| README.md | ||
| run.py | ||
MESC Tests
These tests measure the degree to which a MESC implementation is compliant with the MESC specification.
These tests are language-agnostic, allowing the same tests to be run against each MESC implementation.
Usage
generate.pygenerates tests in thegenerated/directoryrun.py adapters/<ADAPTOR>runs the tests for the given adapter
Adapters
Each MESC implementation has an adapter that allows running the tests using the test runner.
To make a custom adapter:
- adapter should be a script that takes a JSON
Queryas its single argument - the adapter should run the query and output the result as JSON
- if the config loading or the query fails, simply output the word
FAIL
The adapter should never crash upon failure, just print the word FAIL