cargo-testjs

Crates.iocargo-testjs
lib.rscargo-testjs
version0.1.2
sourcesrc
created_at2017-02-28 13:54:13.461754
updated_at2017-02-28 14:09:51.378061
descriptionCargo extension to run tests by nodejs
homepage
repositoryhttps://github.com/hajifkd/cargo-testjs
max_upload_size
id8731
size24,355
Hajime Fukuda (hajifkd)

documentation

README

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.

Commit count: 12

cargo fmt