Giter VIP home page Giter VIP logo

docker-bats's Introduction

Bats Docker image

This repository provides a lightweight alpine-based Docker image for bats-core, bats-support, bats-assert and bats-file.

Supported tags and respective Dockerfile links

Usage

Command line

To run all Bats tests in the current directory, run the following command:

docker run -it --rm -v "$(pwd):/workdir" ghcr.io/ffurrer2/bats:latest .

GitHub Actions

To use bats within GitHub Actions, add the following job to your workflow file:

bats:
  runs-on: ubuntu-latest
  steps:
  - name: Checkout
    uses: actions/checkout@v3
  - name: bats
    uses: docker://ghcr.io/ffurrer2/bats:latest
    with:
      args: '.'

Examples

Run Bats tests of a single test file

docker run -it --rm -v "$(pwd):/workdir" ghcr.io/ffurrer2/bats my-test.bats

Use bats options

docker run -it --rm -v "$(pwd):/workdir" ghcr.io/ffurrer2/bats --recursive --tap .

Show help message

docker run -it --rm ghcr.io/ffurrer2/bats

Show version

docker run -it --rm ghcr.io/ffurrer2/bats --version

License

This project is licensed under the MIT License.

View license information for bats-core, bats-support, bats-assert and bats-file.

As with all Docker images, these likely also contain other software which may be under other licenses (such as Bash, etc. from the base distribution, along with any direct or indirect dependencies of the primary software being contained).

Some additional license information which was able to be auto-detected might be found in the repo-info repository's alpine/ directory.

As for any pre-built image usage, it is the image user's responsibility to ensure that any use of this image complies with any relevant licenses for all software contained within.

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.