https://github.com/kyu28/test.tmpl.sh
Template of test script in POSIX Shell
https://github.com/kyu28/test.tmpl.sh
Last synced: about 1 month ago
JSON representation
Template of test script in POSIX Shell
- Host: GitHub
- URL: https://github.com/kyu28/test.tmpl.sh
- Owner: kyu28
- License: mit
- Created: 2024-10-31T07:16:32.000Z (7 months ago)
- Default Branch: main
- Last Pushed: 2024-12-20T09:09:34.000Z (5 months ago)
- Last Synced: 2025-03-24T13:21:17.027Z (about 2 months ago)
- Language: Shell
- Size: 3.91 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 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 colortest flow
|
+-init # run before test cases
+-run_cases
+-cleanup # run after test casestest cases
|
+-demo_caseentrypoints
|
+-test flow function calls
```