Skip to content

Releases: aureliojargas/clitest

0.5.0

22 Jun 21:21
Compare
Choose a tag to compare
  • In case of multiple #=> found in the same command line, consider only the last one. (da9d01d)

  • Fix: stdin was not reset before running each test command, failing tests containing commands that read from stdin. (#43 by @vmmello)

  • Fix: temporary directories were being created without being necessary (#45 by @vmmello)

  • Fix: temporary directories were not being removed after clitest execution (#46 by @vmmello)

  • Fix: tests redefining the IFS env var would affect clitest multifile report (#48 by @niloct)

  • Fix: a new grep version broke clitest own tests by printing a warning when \t or \n were used in the pattern (#54 by @mbakke)

  • CI: Migrate from Travis CI to GitHub Actions (#49)

  • Dev: Activate --debug option. It is an undocumented option (it does not appear in --help) useful mainly for clitest devs.

  • Dev: Add configuration for dev container, to allow clitest development using GitHub Codespaces (4119811)

0.4.0

01 Jul 22:59
Compare
Choose a tag to compare
  • Now supports reading the test file from stdin. Inform - as the filename or use the appropriate device reference (i.e., /dev/stdin). (#35)
  • Non-regular files (i.e., symlinks) are now supported as test files. The only requirement is that the file must be readable. (#35)
  • Option --version now shows the correct version, for officially released versions.
  • Exit with error in case of failure when executing the --post-flight command. Before, failures in that step were ignored. (#41)
  • Adopt shellcheck as a code linter and enforce it on the CI. (#37)
  • Adopt shfmt as the code formatter and enforce it on the CI. (#40)
  • Code linting and testing is now executed inside a Docker container. (#34, #38)
  • New aureliojargas/clitest Docker image using lightweight Alpine Linux. (#22, #26, #29, #34, #38)

0.3.0

02 Nov 10:00
Compare
Choose a tag to compare

Release date: 2016-03-16

  • Change default inline marker from #→ to #=> (#15)
  • Improve temporary dir creation (#14)
  • Fix: egrep error code is >1 (#16)
  • Test suite moved from dev/test to test (#10)
  • Script now indented by 4 spaces instead of tabs. Very important change ;) (ee0c6f2)
  • CI: Add checkbashisms for additional POSIX-compliance checks (#11)
  • CI: Now also runs the full test-suite on the dash shell (#18)

0.2.0

09 Mar 21:45
Compare
Choose a tag to compare

Release date: 2016-03-06

  • New inline match mode --exit to test the command's exit code. (#8)
  • Now clitest is also tested in zsh.
  • Improved own test suite to be more portable. (#6)
  • Added Travis CI running the full test suite in bash, ksh, zsh and sh. (#7)

0.1.0

09 Mar 21:09
Compare
Choose a tag to compare

Release date: 2013-08-23

Initial public release.

A POSIX compliant script tested in Bash, dash and ksh, which extracts and tests commands from console-history-style text files and documentation (such as Markdown files).

Command line options:

  • --first
  • --list
  • --list-run
  • --test
  • --skip
  • --pre-flight
  • --post-flight
  • --quiet
  • --version
  • --progress
  • --color
  • --diff-options
  • --inline-prefix
  • --prefix
  • --prompt

Inline match modes:

  • --egrep
  • --eval
  • --file
  • --lines
  • --perl
  • --regex
  • --text