Giter VIP home page Giter VIP logo

bunit's People

Contributors

davesnx avatar jasonheecs avatar lfkeitel avatar rafritts 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  avatar  avatar

bunit's Issues

shopt -s nullglob

[bash --version = GNU bash, version 5.0.3(1)-release (x86_64-pc-linux-gnu)]
Hi, I'm not sure if this project is still being maintained but I've noticed an issue when testing a script containing:

shopt -s nullglob

Specifically, it breaks bunit.shl - something to do with passing the parameter-array (args[@]) from the assert* functions to __assert and usually fixed with judicious use of quotes.
Happy to concede that this is likely to be a low-frequency problem :-)
I started using the nullglob option after reading this guide to improving Bash scripts

Merging my fork?

Hi @atz3ro,

Great library you made here! I have found it really useful. I have forked this project and done some rather extensive refactoring of the code to make it more maintainable (IMHO) and fix some bugs with the Line numbers reporting and error messages. Please refer to my fork. It is a rather extensive refactoring of the codebase, but would you be interested in a pull request?

TAP or Junit compatible output

I have played with your nice bunit a bit.
it is very useful and simple to use.

One thing I would think to be a good addition is to have a TAP or junit like XML output so that this file can be parsed during a CI pipeline, and the name/number/state of the test suite be reported.

TAP
https://en.wikipedia.org/wiki/Test_Anything_Protocol

This is what I found to describe the expected junit.xml file format
https://github.com/windyroad/JUnit-Schema/blob/master/JUnit.xsd
https://stackoverflow.com/questions/4922867/what-is-the-junit-xml-format-specification-that-hudson-supports

What do you think ?

How to install correctly

How and where in our project do we install this lib as a dev dependency and following the best practices?

For example, in javascript, we use the "npm" as dependencies manager: $ npm install --save-dev this-super-lib and "this-super-lib" goes directly in a specify directory "node_modules" and will be not build in the prod env. Is there something like this for shell dependencies?

There is no documentation in your README about installation best practices... :)

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.