Mike Gerwitz
a368e809a3
* 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. |
||
---|---|---|
bin | ||
src | ||
test | ||
.gitignore | ||
COPYING | ||
Makefile.am | ||
README.md | ||
configure.ac |
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.