Crates.io | cargo-testjs |
lib.rs | cargo-testjs |
version | 0.1.2 |
source | src |
created_at | 2017-02-28 13:54:13.461754 |
updated_at | 2017-02-28 14:09:51.378061 |
description | Cargo extension to run tests by nodejs |
homepage | |
repository | https://github.com/hajifkd/cargo-testjs |
max_upload_size | |
id | 8731 |
size | 24,355 |
Cargo extension to run tests by nodejs
$ cargo install cargo-testjs
$ cargo testjs
You can write configs in Cargo.toml.
[package.metadata.testjs]
node = "nodejs"
target = "asmjs-unknown-emscripten"
prelude = "tests/test.js"
An absolute path to the nodejs. The default value is node
The JS target to be built. The default value is asmjs-unknown-emscripten
A JS file to load before the test file.