Skip to content

thorsteinssonh/bash_test_tools

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

bash_test_tools

source bash_test_tools

WORK="/tmp/work"

function setup
{
  mkdir -p "$WORK"
  cd "$WORK"
  touch some_file.txt
}

function teardown
{
  cd
  rm -rf "$WORK"
}

function test_find_local_directory
{
  # Run
  run "find ./"
  # Assert
  assert_success
  assert_output_contains "some_file.txt"
}

testrunner

Bash Test Tools is intended to be a simple to use framework for testing executables inside the shell environment. The framework allows extraction and assert operations on parameters such as standard output, standard error, exit code, execution time, file system and network services. Please read the full documentation located here bash_test_tools docs.

About

Bash testing tools

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published