Skip to content

A library for running sandboxed tests in parallel in any language.

License

Notifications You must be signed in to change notification settings

basalt-rs/erudite

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

erudite

A library for running sandboxed tests in parallel in any language.

Usage

let results = erudite::Runner::new()
    .compile_command(["rustc", "solution.rs"]);
    .run_command(["./solution"])
    .test("hello", "olleh")
    .test("hello world", "dlrow olleh")
    .timeout(Duration::from_millis(200))
    .create_file("solution.rs", r#"
        use std::io::{self, BufRead, BufReader};
        fn main() {
            println!("{}", BufRead::lines(BufReader::new(io::stdin()))
                    .next()
                    .unwrap()
                    .unwrap()
                    .chars()
                    .rev()
                    .collect::<String>());
        }
    "#)
    .run()
    .await?;

About

A library for running sandboxed tests in parallel in any language.

Resources

License

Stars

Watchers

Forks

Releases

No releases published