Cargo extension to run test in Javascript
Rust
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
src
.gitignore
Cargo.toml
LICENSE
README.md

README.md

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.