test262-harness 0.1.0

A test bed for the ecma 262 test suite
Documentation

Test262 Harness

A rust-lang test harness for the ECMAScript test suite.

Usage

# Cargo.toml
[dev.dependencies]
test262-harness = "*"
// lib.rs
#[test]
fn test_js() {
    let test262_path = "test262";
    let harness = Harness::new(test262_path).expect("failed to initialize harness");
    for test in harness {
        println!("running test {} from {}", test.desc.id, test.path);
        if test.desc.negative.is_some() {
            // maybe a parser failure
            // or a runtime failure
        }
    }
}