BDD framework for shell [archive]
 
 
 
Go to file
Mike Gerwitz a368e809a3
Support binary comparisons by `expect'
* src/spec.sh
  (__spec_result): Remove variable.
  (__spec_outfile): Add variable.
  (expect): Write stdout to temporary file rather than storing in variable,
    which strips trailing whitespace and does not handle null bytes.
  (shspec::__handle-to): Use `$__spec_outpath'.
  Update copyright years.

* test/test-spec: Add tests for trailing whitespace and binary comparison.
2017-04-19 01:57:42 -04:00
bin Corrected copyright in file headers 2014-06-17 01:35:24 -04:00
src Support binary comparisons by `expect' 2017-04-19 01:57:42 -04:00
test Support binary comparisons by `expect' 2017-04-19 01:57:42 -04:00
.gitignore Alright, let's get serious about this! 2014-05-13 01:25:02 -04:00
COPYING Alright, let's get serious about this! 2014-05-13 01:25:02 -04:00
Makefile.am Alright, let's get serious about this! 2014-05-13 01:25:02 -04:00
README.md Added license to README 2014-06-13 21:31:49 -04:00
configure.ac configure.ac: fail if missing xxd 2017-04-19 01:57:29 -04:00

README.md

shspec

#!/bin/bash
describe shspec
  it is a BDD framework for shell
    expect current-shell-support
      to output "bash"

    expect pronounciation
      to succeed
      and to output "shell spec"
  end

  it is currently under development
    expect is-stable
      to succeed
      and to output "Because of self-testing"

    expect is-comprehensive
      to fail
      and to output "You should check back later."
  end
end

License

shspec is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.