0.0.0 • Published 11 years ago

bash-spec-runner v0.0.0

Weekly downloads
2
License
MIT
Repository
github
Last release
11 years ago

bash-spec-runner

A bash spec runner

Usage

#!/bin/bash bash-spec-runner
function before_all {
    echo "Executes once before the first test"
}

function after_all {
    echo "Executes once after all the tests have been executed"
}

function before_each {
    echo "Executes before each tests"
}

function after_each {
    echo "Executes after each tests"
}

function it_should_do_something {
    echo "All specs must begin with 'it_'"
    
    assert [[ 1 -eq 0 ]]
    assert "[[ 1 -eq 0 && 2 -eq 0 ]]"
}