3 releases
Uses old Rust 2015
0.1.2 | Feb 28, 2017 |
---|---|
0.1.1 | Feb 28, 2017 |
0.1.0 | Feb 28, 2017 |
#19 in #emscripten
8KB
140 lines
cargo-testjs
Cargo extension to run tests by nodejs
Install
$ cargo install cargo-testjs
Run
$ cargo testjs
Config
You can write configs in Cargo.toml.
[package.metadata.testjs]
node = "nodejs"
target = "asmjs-unknown-emscripten"
prelude = "tests/test.js"
node
An absolute path to the nodejs. The default value is node
target
The JS target to be built. The default value is asmjs-unknown-emscripten
prelude (Optional)
A JS file to load before the test file.
Dependencies
~4MB
~90K SLoC