-
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
Missing $DIRNAME in fishtape 2.0.0 #39
Comments
@edouard-lopez I disagree on code readability, but I'm curious to know how Your
What about also?
Too much? :) |
Readability is not that bad indeed. In several scripts I wrote, I rename files and use I tend to prefer |
@edouard-lopez Like this?
Any ideas for more variables? |
LGTM. No other requirement for me at the moment. |
- Add new $current_dirname (and rename $filename to $current_file) #39 - Add ability to get the abutesol path from a given file, but without following symlinks (similar behavior as fish >=2.3 `realpath` and can eventually use that instead) - Improve `@test` so it can be used to check if two array are equal or not (the downside is that test descriptions are now required) - Reset $status to 0 after running `setup` function hook
related:
2.0.0
, #38Thanks for the new release, I haven't made the switch yet, but look forward to it.
In the release note for
2.0.0
you mention removing$DIRNAME
variable. That annoying, cause I'm using it a on every test files forpure
to import function under test, like:Sure it's possible to use
$filename
however such a name is prone to conflict and makes code a less readable:BATS as a series of special variables prefixed by
$BATS_TEST_
(e.g.$BATS_TEST_DIRNAME
).I reckon namespacing is a must have, and would love to see
dirname
come back ❤️Some namespace ideas:
The text was updated successfully, but these errors were encountered: