-
Notifications
You must be signed in to change notification settings - Fork 96
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Change test suit to ShellSpec #133
Comments
There is in fact an issue requesting that BPKG be rewritten in POSIX cimpliant terms. (see #90). I am very much in favor of that issue and have already done some work in the past to try to reach that goal. I hadn't heard of ShellSpec. Usually I get a bit irked when yet another project is created to fix the same problem (i.e. unit-testing in BASH), but after reading the well-though out "Why I created ShellSpec" I am tempted to be in favor of switching over. Specifically as we do not have too many Bats tests yet, this would be the right time to do so. @jwerle Can you pitch in as to wether you are for or against switching from Bats to ShellSpec? |
@Potherca wow! shellspec is quite feature-full! It does look promising and indeed this is a good time to pick a framework and go. I am all for it 👍🏼 |
@lohn I'd say your motion has been seconded and carried! |
This makes me very happy! I really appreciate shellspec. |
I have looked at ShellSpec with a lot of interest, I can say that it is an impressive work, which really takes your breath away.
I also think it is an excellent step to proceed with the use of ShellSpec |
I'll leave this issue open for now, until we have documented that ShellSpec is our weapon of choice for unit-testing. (We need to create a |
Hello, everyone. @lohn Thank you for suggesting ShellSpec. My goal is to sublimate (POSIX-compliant) shell script into a real programming language. For this purpose, a package management system like npm for developers is essential. As long as bpkg aims to be POSIX-compliant, I will be able to help with this project. As a demonstration, I am going to implement some tests in the project with ShellSpec. This is all I could find, but if there are others, please let me know. |
Done |
"ShellSpec is a full-featured BDD unit testing framework for dash, bash, ksh, zsh and all POSIX shells that provides first-class features such as code coverage, mocking, parameterized test, parallel execution and more."
Excerpt from https://shellspec.info/
In my experience, ShellSpec is more complete and easy to use than BATS.
And ShellSpec supports POSIX shells and not only bash.
I don't know if the project goals includes support for POSIX shells, but anyway I think is a good idea to keep this option open.
The text was updated successfully, but these errors were encountered: