Bash Automated Testing System
- The Core Planners: chef-core-planners@chef.io
Binary package
Binary packages can be set as runtime or build time dependencies. See Defining your dependencies for more information.
To add core/bats as a depdendency, you can add one of the following to your plan file.
pkg_build_deps=(core/bats)
pkg_deps=(core/bats)
To install this plan, you should run the following commands to first install, and then link the binaries this plan creates.
hab pkg install core/bats
» Installing core/bats
☁ Determining latest version of core/bats in the 'stable' channel
☛ Verifying core/bats/0.4.0/20200306015112
...
✓ Installed core/bats/0.4.0/20200306015112
★ Install of core/bats/0.4.0/20200306015112 complete with 1 new packages installed.
hab pkg binlink core/bats
» Binlinking bats from core/bats into /bin
★ Binlinked bats from core/bats/0.4.0/20200306015112 to /bin/bats
You can now use the binary as normal:
/bin/bats --help
or bats --help
Bats 0.4.0
Usage: bats [-c] [-p | -t] <test> [<test> ...]
<test> is the path to a Bats test file, or the path to a directory
containing Bats test files.
...