Skip to content

fuyutarow/tests-make

Repository files navigation

tests-make

image

Usage

tests-make some_tests.toml

Installation

brew install fuyutarow/tap/tests-make

Support

  • Homebrew (mac)
  • Linuxbrew (Linux, WSL)

Features

basic test

[tests.hello-success]
script = '''
echo hello, world!
'''
tobe = '''
hello, world!
'''

The script field contains the shell script to be executed. The tobe field describes the standard output to be expected.

env vars

[env]
INPUT = '''
hello, world!
'''

[tests.hello-tests-make]
script = '''
echo hello, ${INPUT}
'''
tobe = '''
hello, tests-make
'''

see example

include tests-make.toml

includes = ["examples/others/tests.toml"]

see example

For a more practical example of tests-make, see this project. (partiql-rs) In this project, we are testing the standard output of the CLI command pq.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages