Crate test_generator

Source
Expand description

Build library to generate a program which runs all the testsuites.

By generating a separate #[test] test for each file, we allow cargo test to automatically run the files in parallel.

This program is inspired/forked from: https://github.com/bytecodealliance/wasmtime/blob/master/build.rs

Modules§

processors 🔒
Here we define the processors usable for each test genrator

Structs§

Test
Testsuite

Functions§

extract_name
Extract a valid Rust identifier from the stem of a path.
test_directory
test_directory_module
wasi_processor
Given a Testsuite and a path, process the path in case is a WASI wasm file.
wast_processor
Given a Testsuite and a path, process the path in case is a wast file.
with_test_module
write_test 🔒