bats_pipe command0 | command1
Paired with run, the bats_pipe help function allows testing command pipelines.
For this function, the pipeline separator is \\| and not |.
Usage
-<N> | Return the exit code from the |
Links
Examples
- Executing a command with
runandbats_pipe 1 2 3@test "executing pipeline with commands a and b with run and bats_pipe" { run bats_pipe a \| b }
BashSupport Pro is a shell script IDE with support for bats-core’s bats_pipe – try it now!