GithubHelp home page GithubHelp logo

bats-support's People

Contributors

jasonkarns avatar ztombol avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

bats-support's Issues

Harden code against mocks/stubs

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

bats-core naming

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-core being the runner
  • rspec-expectations being the assertions
  • rspec-mocks for stubs/doubles/mocks
  • rspec-support being the shared lib used by all rspec-* 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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.