ztombol / bats-support Goto Github PK
View Code? Open in Web Editor NEWSupporting library for Bats test helpers
License: Creative Commons Zero v1.0 Universal
Supporting library for Bats test helpers
License: Creative Commons Zero v1.0 Universal
script/install-bats.sh
references https://github.com/sstephenson/bats instead of https://github.com/bats-core/bats-core
This should be updated or removed
The code uses e.g cat
which may be mocked/stubbed by the user and point to something else.
I'd suggest to get the real locations on startup (e.g. command -v cat
or which cat
) and save them for later use.
Alternative:
During startup (global scope): _BATSLIB_PATH="$PATH"
Call site: PATH="$_BATSLIB_PATH" \cat -
This resets the path and avoids macro/alias expansion
not sure if there is anything valuable in here, but worth checking out:
A point of confusion that I had at first, and potentially for others, is the bats-core name. Even as someone who has been following this stdlib extraction for a while, the bats-core name suggests it is the "core" component of bats. ie, the runner.
rspec is similarly broken down into component gems:
rspec-support plays the same role in the rspec ecosystem as this bats-core does, but IMO, is better named.
Without any context or history, I don't believe someone could successfully guess the roles or distinction between bats and bats-core.
I propose that bats-core be renamed as bats-support or bats-internal or bats-lib (ordered per my preference). Obviously project renames are dangerous and should be done rarely and with caution. It is for this reason I am raising this issue now, so that it can be done ASAP (if at all), before we hit 1.0.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.