-
Notifications
You must be signed in to change notification settings - Fork 20
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
Migrating from V2 to V3 #56
Comments
Awesome, lots of new interesting stuff! I'm wondering about I use a lot |
You can always use dirname (status filename) or cook something up with the set --local dirname (string split / --right --max=1 -- (status filename))[1]
All you need to do is: - function setup
foobar
-end
-function teardown
- piyopoyo
-end
@test ...
@test ...
@test ...
+ piyopoyo |
Think you might of typo'ed. Or maybe you're from the wonderful future (please take me with you!), but fish 3.2 doesn't exist yet. Do you mean 3.1.2 is required for (status dirname)? |
I am not from the future, but I did mean 3.2. You can use |
Just upgraded to V3? You'll need to make some changes. In this issue, I'll explain what they are and how to migrate your tests.
(status dirname)
instead of$current_dirname
(needs Fish >=3.2
).(status filename)
instead of$current_filename
.test
builtin!
operator is no longer supported.!
operator.@mesg
is now@echo
. Just s/@mesg/@echo/.setup
andteardown
are no longer necessary (see Fishtape 3 #53).echo
orstring collect
:The text was updated successfully, but these errors were encountered: