Giter VIP home page Giter VIP logo

asdf-bats's Introduction

asdf-bats

ASDF plugin for the BATS, a unittest library for the Bash/Zsh;

Install

asdf plugin-add bats https://github.com/timgluz/asdf-bats.git

asdf list all bats
asdf install bats v1.2.1
bats --version

Contributing

  • Open Github issue, describe the issue and propose a solution; It helps others to see your progress and will avoid duplicated effort;

  • Clone repo

  • Apply Changes

  • Test - make test

Test are written using Bats - you can use this plugin, use Docker or use npm install -g bats

running all the test: bats tests/ running a single file: ./list-all.sh

# if you want to run it on docker
make run

export PLUGIN_URL="https://github.com/timgluz/asdf-bats.git"

# testing specific Github ref - good for reporting a bug
export PLUGIN_GITREF="5dce6968ce77db4ed220d815a99ccd501f82c383"
asdf plugin test bats $PLUGIN_URL --asdf-plugin-gitref $PLUGIN_GITREF bats --version

# testing a spec version, branch

export PLUGIN_VERSION="master"
asdf plugin test bats $PLUGIN_URL --asdf-tool-version $PLUGIN_VERSION bats --version

Testing on Ubuntu

Dockerfile.ubuntu_zsh builds a docker image where theasdfis already preinstalled and source-code of plugin copied to the asdf's plugin folder;

Example usage:

make build-ubuntu
make run-ubuntu

# check current version of asdf
asdf version

# check currently installed plugins
asdf list

# check available versions
asdf list all bats

# install Bats
asdf install bats v1.2.1

bats --version
exit
make clean-ubuntu

asdf-bats's People

Contributors

timgluz avatar

Watchers

 avatar

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.