[][src]Trait stipulate::conf::Config

pub trait Config {
    fn name(&self) -> &str;
fn test_type(&self) -> TestType;
fn case_timeout(&self) -> &Option<Duration>;
fn command(&self) -> &str;
fn args(&self) -> &[&str];
fn setup(&self) -> &[&str]; }

The trait implemented by all supported configurations.

Required methods

fn name(&self) -> &str

A name for this set of tests

fn test_type(&self) -> TestType

The kind of test to run (see TestType for options)

fn case_timeout(&self) -> &Option<Duration>

The amount of time to let code run before timing out

fn command(&self) -> &str

The name of the command to run.

fn args(&self) -> &[&str]

The arguments to be passed to the command.

fn setup(&self) -> &[&str]

A list of commands to be run in the student's code directory before running the code.

Loading content...

Implementors

impl Config for JavaConfig[src]

impl Config for PythonConfig[src]

Loading content...