Skip to content

kyu28/test.tmpl.sh

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

test.tmpl.sh

Template of test script in POSIX Shell

usage

  1. write test environment init and cleanup code in init and cleanup function
  2. write test cases function in test cases part
  3. register test cases to run_cases function
  4. run the script

structure

utils
  |
  +-assert
  +-echoc       # echo with color

test flow
  |
  +-init        # run before test cases
  +-run_cases
  +-cleanup     # run after test cases

test cases
  |
  +-demo_case

entrypoints
  |
  +-test flow function calls

About

Template of test script in POSIX Shell

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages