tag:github.com,2008:https://github.com/shellspec/shellspec/releases Release notes from shellspec 2021-01-11T05:55:57Z tag:github.com,2008:Repository/169286974/0.28.1 2021-01-11T06:00:30Z 0.28.1 <h3>Changed</h3> <ul> <li>Improved documentation. Thanks to Yohei Kawahara (<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="782833505" data-permission-text="Title is private" data-url="https://github.com/shellspec/shellspec/issues/173" data-hovercard-type="pull_request" data-hovercard-url="/shellspec/shellspec/pull/173/hovercard" href="https://github.com/shellspec/shellspec/pull/173">#173</a>).</li> </ul> <h3>Fixed</h3> <ul> <li>bash: Fixed an unexpected error message in self-executable specfile.</li> <li>Fixed a bug that test command cannot redefine when using "when run source"</li> <li>Fixed a bug when specified relative tmp directory path.</li> <li>Fixed option parsing</li> </ul> github-actions[bot] tag:github.com,2008:Repository/169286974/latest 2021-01-11T05:59:50Z latest <p>This tag points to the latest release.</p> <ul> <li><a href="https://github.com/shellspec/shellspec/releases/latest/download/shellspec-dist.tar.gz">shellspec-dist.tar.gz</a> - Latest distribution archive</li> </ul> ko1nksm tag:github.com,2008:Repository/169286974/0.28.0 2021-01-05T14:21:14Z 0.28.0 <h3>Added</h3> <ul> <li>Added <code>BeforeEach</code> / <code>AfterEach</code> as synonym for <code>Before</code> / <code>After</code>.</li> <li>Added <code>FORCE_COLOR</code> environment variable.</li> <li>Added <code>--tmpdir</code> option.</li> <li>Added <code>--execdir</code> option to specify the directory for specfile execution.</li> <li>Added <code>-c</code> (<code>--chdir</code>) and <code>-C</code> (<code>--directory</code>) options to change directory at startup.</li> <li>Added path syntax (<code>*/</code> and <code>**/</code>) and <code>-L</code> (<code>--dereference</code>) option to match recursive directories.</li> <li>Added <code>--helperdir</code> to specify the location of <code>spec_helper</code> etc.</li> <li>Added the environment variable <code>SHELLSPEC_HELPERDIR</code> to indicate the location of <code>spec_helper</code> etc.</li> <li>Added <code>--reportdir</code> and <code>--covdir</code> options.</li> <li>Added <code>-O</code> (<code>--option</code>) option.</li> <li>Added <code>-I</code> (<code>--load-path</code>) option.</li> <li>Added <code>&lt;module&gt;_precheck</code> callback and some helper functions to <code>spec_helper</code> for pre-checking.</li> <li>Added <code>&lt;module&gt;_loaded</code> callback to be called after <code>spec_helper</code> loading.</li> </ul> <h3>Changed</h3> <ul> <li>Replaced with a new option parser <a href="https://github.com/ko1nksm/getoptions">getoptions</a> which supports the standard option syntax.</li> <li>Replaced <code>--keep-tempdir</code> with <code>--keep-tmpdir</code>.</li> <li>Specifying a file in the shellspec's argument is now ignored if it does not match <code>--pattern</code>.</li> <li>Filled in system-out and system-err in junit xml.</li> <li>Allowed run the tests from any subdirectory.</li> <li>The <code>-D</code> option has been deprecated (Replace with the <code>--default-path</code> option).</li> <li>The environment variable <code>SHELLSPEC_SPECDIR</code> has been deprecated since there is not always a single directory for specfiles.</li> <li>Rename <code>.shellspec-profiler.log</code> to <code>profiler.log</code> for profiler log.</li> <li>Accept <code>banner.md</code> as a banner file</li> <li><code>Include</code> and <code>import</code> (<code>shellspec_import</code>) can now pass arguments.</li> <li>The delimiter of the environment variable <code>SHELLSPEC_REQUIRES</code> has been changed from <code>:</code> to space.</li> <li>Improved documentation. Thanks to ldicarlo (<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="738505963" data-permission-text="Title is private" data-url="https://github.com/shellspec/shellspec/issues/117" data-hovercard-type="pull_request" data-hovercard-url="/shellspec/shellspec/pull/117/hovercard" href="https://github.com/shellspec/shellspec/pull/117">#117</a>, <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="740222218" data-permission-text="Title is private" data-url="https://github.com/shellspec/shellspec/issues/119" data-hovercard-type="pull_request" data-hovercard-url="/shellspec/shellspec/pull/119/hovercard" href="https://github.com/shellspec/shellspec/pull/119">#119</a>), Antoni Marcinek (<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="740908672" data-permission-text="Title is private" data-url="https://github.com/shellspec/shellspec/issues/120" data-hovercard-type="pull_request" data-hovercard-url="/shellspec/shellspec/pull/120/hovercard" href="https://github.com/shellspec/shellspec/pull/120">#120</a>, <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="753007443" data-permission-text="Title is private" data-url="https://github.com/shellspec/shellspec/issues/139" data-hovercard-type="pull_request" data-hovercard-url="/shellspec/shellspec/pull/139/hovercard" href="https://github.com/shellspec/shellspec/pull/139">#139</a>), Stuart R. Jefferys (#155), Leon Stafford (<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="777722838" data-permission-text="Title is private" data-url="https://github.com/shellspec/shellspec/issues/159" data-hovercard-type="pull_request" data-hovercard-url="/shellspec/shellspec/pull/159/hovercard" href="https://github.com/shellspec/shellspec/pull/159">#159</a>).</li> </ul> <h3>Removed</h3> <ul> <li>Removed <code>--kcov-common-options</code> option.</li> </ul> <h3>Fixed</h3> <ul> <li>bash 4.1 - 4.3: Fixed a bug that <code>run script</code> could not get the exit status.</li> <li>zsh &lt; 4.2.0: Fixed a bug when extendedglob is enabled.</li> <li>Fixed possibility of I/O error in satisfy matcher (GitHub Actions only?).</li> <li>Fixed a bug in which zsh on macOS occasionally exits with exit code 147 (SIGCONT).</li> <li>Fixed several bugs related to the Windows path for busybox-w32.</li> <li>Fixed a bug when using metacharacters for tags.</li> </ul> github-actions[bot] tag:github.com,2008:Repository/169286974/0.27.2 2020-10-28T15:01:08Z 0.27.2 <h3>Fixed</h3> <ul> <li>Fixed a bug that didn't cause an error if there are fixed examples</li> </ul> github-actions[bot] tag:github.com,2008:Repository/169286974/0.27.1 2020-09-30T14:51:47Z 0.27.1 <h3>Removed</h3> <ul> <li>Drop support for posh 0.8.5 due to signal handling broken.</li> </ul> <h3>Fixed</h3> <ul> <li>Fixed gray color.</li> <li>Fixed broken <code>--warning-as-failure</code>.</li> <li>Fixed a bug that can not CTRL-C with posh.</li> </ul> github-actions[bot] tag:github.com,2008:Repository/169286974/0.27.0 2020-09-24T23:24:34Z 0.27.0 <h3>Added</h3> <ul> <li><strong>Added <code>be exported</code> and <code>be readonly</code> matchers.</strong></li> <li>Added <code>%printf</code> and <code>%sleep</code> directives.</li> </ul> <h3>Changed</h3> <ul> <li><strong>Improved TAP formatter.</strong> <ul> <li>Supports <code>TODO</code> and <code>SKIP</code> directives.</li> <li>Use <code>Bail out!</code> on error.</li> <li>Added error details.</li> </ul> </li> <li><code>BeforeAll</code> / <code>AfterAll</code>: Avoid crashes due to hook errors.</li> <li><code>Before</code> / <code>After</code>: Improved hook error handling.</li> <li><code>BeforeCall</code> / <code>AfterCall</code>, <code>BeforeRun</code> / <code>AfterRun</code>: Minor changes.</li> </ul> <h3>Removed</h3> <ul> <li>Drop support for dash 0.5.3 due to unstable bug.</li> <li>Drop support for busybox &lt; 1.20.0 due to unstable bug.</li> </ul> <h3>Fixed</h3> <ul> <li>Fixed a bug that "Parameter is not set" error in word modifier.</li> <li>Fixed a bug that satisfy matcher succeed even syntax error.</li> <li>Fixed a bug that can not CTRL-C with parallel execution on zsh.</li> <li>shellspec-syntax-check.sh: Some minor bug fixes.</li> </ul> github-actions[bot] tag:github.com,2008:Repository/169286974/0.26.1 2020-07-13T16:25:18Z 0.26.1 <h3>Added</h3> <ul> <li><strong>Added <code>--docker</code> option.</strong> (EXPERIMENTAL)</li> </ul> github-actions[bot] tag:github.com,2008:Repository/169286974/0.26.0 2020-07-13T16:24:51Z 0.26.0 <h3>Added</h3> <ul> <li><strong>Added <code>Mock</code> helper (command-based mock).</strong></li> <li><strong>Added <code>%preserve</code> directive.</strong></li> <li><strong>Added <code>--sandbox</code>, <code>--sandbox-path</code> option.</strong></li> <li>Added <code>--path</code> option.</li> </ul> <h3>Fixed</h3> <ul> <li>Workaround when the Windows version of <code>sort.exe</code> is executed.</li> </ul> github-actions[bot] tag:github.com,2008:Repository/169286974/0.25.0 2020-06-21T00:45:01Z 0.25.0 <h3>Added</h3> <ul> <li><strong>Coverage support for zsh and ksh.</strong> (<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="614031696" data-permission-text="Title is private" data-url="https://github.com/shellspec/shellspec/issues/62" data-hovercard-type="issue" data-hovercard-url="/shellspec/shellspec/issues/62/hovercard" href="https://github.com/shellspec/shellspec/issues/62">#62</a>)</li> <li>Respect <code>NO_COLOR</code> environment variable.</li> <li>Support <a href="https://frippery.org/busybox/" rel="nofollow">busybox-w32</a> ash for windows.</li> <li><strong>Added <code>Assert</code> expectation to assert side effects of system environment.</strong></li> <li>Added <code>Dump</code> helper - dump stdout, stderr and status for debugging.</li> <li>Added <code>line</code> and <code>word</code> subject. (<code>of stdout (output)</code> can be omitted now)</li> <li>Added <code>--log-file</code> option to specify log file for <code>%logger</code> and trace.</li> <li><strong>Implement <code>--xtrace</code> (<code>--xtrace-only</code>) feature.</strong></li> </ul> <h3>Changed</h3> <ul> <li>Upgrade to alpine 3.12 for docker image and officially release <code>shellspec/kcov</code> docker image.</li> <li>Separate a file descriptor for reporting and stdout to able to use <code>echo</code> in specfile.</li> <li>Minor specification change of <code>result</code> modifier and <code>satisfy</code> matcher.</li> <li><code>-r</code> option is now a short option for <code>--repair</code>, not <code>--require</code>.</li> <li>Use [debian/eol(https://hub.docker.com/r/debian/eol/) docker images for old debian tests.</li> </ul> <h3>Fixed</h3> <ul> <li>Before/After hooks should not consume stdin data (<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="641979951" data-permission-text="Title is private" data-url="https://github.com/shellspec/shellspec/issues/82" data-hovercard-type="issue" data-hovercard-url="/shellspec/shellspec/issues/82/hovercard" href="https://github.com/shellspec/shellspec/issues/82">#82</a>)</li> </ul> github-actions[bot] tag:github.com,2008:Repository/169286974/0.24.3 2020-06-06T15:39:09Z 0.24.3 <h3>Fixed</h3> <ul> <li>Fixes BeforeAll / AfterAll to share states</li> </ul> github-actions[bot]