Skip to content

ffortier/bash-spec-runner

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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 ]]"
}

About

A bash spec runner

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages