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
Fish spec #1904
Fish spec #1904
Conversation
@@ -2,7 +2,7 @@ FROM centos:latest | |||
|
|||
# Build dependency | |||
RUN yum update -y &&\ | |||
yum install -y autoconf automake clang gcc-c++ make ncurses-devel &&\ | |||
yum install -y autoconf automake bc clang gcc-c++ make ncurses-devel &&\ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
math
requires bc
package. Check: #1905
@bpinto and @bucaran: This pull-request is now more than a year old and the https://github.com/bpinto/oh-my-fish/tree/master/plugins/fish-spec link no longer works. Is this still something you'd like to see merged? If yes would you mind opening an enhancement issue that describes the problem and your solution? |
Not me. I am using Fishtape to write my tests now, and not working in |
I'd love to see a framework for fish unit tests in the same vein as Python's unittest2. There are some intriguing ideas in this change but also some problems (like the "it_supports_" naming scheme and redefining |
@krader1961 Have you had a look at Fishtape? I certainly took inspiration from unittest2. Tests look like this: test "math still works"
5 -eq (math 2 + 3)
end
test "grep still finds"
dog = (printf "%s\n" $animals | grep dog)
end
test "file exists"
-f $my_file
end |
@bucaran and I created this plugin called fish-spec to test oh-my-fish internals and plugins.
This is fish-spec running tests on verbose mode:
The aim of this pull request is to discuss the introduction of fish-spec as a dependency to fish-shell tests so that we can start writing tests in an easier way to understand than we currently do (test1.in, test1.out).
P.S.: The only interesting commit to be seen is the last one.