Skip to content

Latest commit

 

History

4 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 

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

Stars

2 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages