shellspec

A full-featured BDD unit testing framework for bash, ksh, zsh, dash and all POSIX shells

MIT License

Stars
1.1K
Committers
18

Bot releases are hidden (Show)

shellspec - latest

Published by ko1nksm over 4 years ago

This tag points to the latest release.

shellspec -

Published by ko1nksm about 5 years ago

Fixed

  • Fixed wrong temporary directory name.
  • Fixed for bug that some shell can not call external command same name as builtin.
shellspec -

Published by ko1nksm about 5 years ago

Fixed

  • Fixed for solaris.
shellspec -

Published by ko1nksm about 5 years ago

Added

  • Add parameterized example. (Parameters helper)
  • Add Set helper for set shell option
  • Add BeforeCall / AfterCall helper.
  • Add BeforeRun / AfterRun helper.
  • Use hexdump if od does not exist.

Changed

  • Redesign run evaluation. [major breaking change]
    • Change the behavior to close to the run of bats.
    • New run evaluation allows the execution of functions and commands.
    • Use run command to execute only the commands. (old run -> use run command)
    • Merge invoke evaluation to run evaluation. (old invoke -> use run)
    • Merge execute evaluation to run evaluation. (old execute -> use run source)
  • Export %const values to the translation process

Removed

  • Drop support for posh 0.10.2 and similar versions as the handling of the shell flag is broken.

Fixed

  • Fixed bug for related with tag.
  • Fixed bug where coverage might not work on macOS.
shellspec -

Published by ko1nksm about 5 years ago

Added

  • Support install via make, bpkg, basher
shellspec -

Published by ko1nksm about 5 years ago

Added

  • Add installer (It has not been officially released, but you can used it already).
  • Testing for single script file (Add execute evaluation, Intercept and __SOURCED__ variable).
  • Add --keep-tempdir option.
  • Add Data < <FILE> syntax.

Removed

  • Drop support for busybox 1.1.3 and similar versions as it can not redefine builtin commands.
  • Drop support for ash 0.3.8 and similar versions as it can not use retrun in sourced script.
  • Remove call/invoke <STRING> syntax.
shellspec -

Published by ko1nksm over 5 years ago

Added

  • Profiler feature (--profile)
  • Time attribute for JUnit XML.
shellspec -

Published by ko1nksm over 5 years ago

Added

  • Coverage reporting.
  • Add --fail-low-coverage option.
shellspec -

Published by ko1nksm over 5 years ago

Added

Changed

  • Change --skip-message none to --skip-message verbose.

Removed

  • Remove --warnings option.
shellspec -

Published by ko1nksm over 5 years ago

Added

  • Add be empty directory (alias: be empty dir) matcher.

Changed

  • Rename be empty matcher to be empty file matcher. [breaking change]

Fixed

  • Fixed bug that be empty (renamed to be empty file) matcher matches not exists file, etc.
shellspec -

Published by ko1nksm over 5 years ago

Added

  • Add --random option.

Changed

  • Improve --example, --tag option.
shellspec -

Published by ko1nksm over 5 years ago

Fixed

  • Fixed bug when --dry-run mode.
  • Fixed documentation formatter.
shellspec -

Published by ko1nksm over 5 years ago

Added

  • Add --list examples:id option.
  • Add *_spec.sh:@ID syntax the specify id with the filename.
  • Add --pattern, --example, --tag, --default-path filter option.

Changed

  • Change Logger Helper to %logger directive.
  • Merge --list-specfiles, --list-examples options to --list option.
  • Redesign reporter to improve performance, maintainability.
shellspec -

Published by ko1nksm over 5 years ago

Added

  • Add --list-specfiles, --list-examples option.
  • Add --env-from option.
  • Add tests that for array if supported shells.

Changed

  • Change --count option output includes the number of specfiles.
  • Change to the banner show only on shellspec-runner.
shellspec -

Published by ko1nksm over 5 years ago

Fixed

  • Fixed broken parallel executor.
shellspec -

Published by ko1nksm over 5 years ago

Fixed

  • Fixed bug that does not work with zsh 5.4.2.
shellspec -

Published by ko1nksm over 5 years ago

Fixed

  • Fixed ignored specified line number when parallel execution.
  • Fixed documentation formatter when supplied multiple specfiles.
shellspec -

Published by ko1nksm over 5 years ago

Added

  • Run the example by line number. (*_spec.sh:#)
  • Run focused groups / examples. (fDescribe, fContext, fExample, fSpecify, fIt)
  • Add --count option for count the number of examples without running.
shellspec -

Published by ko1nksm over 5 years ago

Added

  • Support parallel execution. (--jobs option)

Changed

  • Separete syntax checker into tools.
  • Improve syntax checker.
  • Improve error handling.
  • Improve ctrl-c handling.

Removed

  • Remove Def helper. (use %putsn, %puts directive instead)
shellspec -

Published by ko1nksm over 5 years ago

Added

  • Add --syntax-check option for syntax check of the specfile.

Changed

  • Change timing of loading external script by 'Include'. [breaking change]

Fixed

  • Fix for translation speed slowdown.

Removed

  • Remove shorthand of the variable subject.