Git Product home page Git Product logo

critic.sh's Introduction

G'day ๐Ÿค  I'm Srinath and I live down under ๐Ÿ‡ฆ๐Ÿ‡บ. I am a digital mason who dabbles in whatever interests me. I don't get too caught up with programming languages, frameworks or libraries and believe in using the best tool for the job.

Work

JavaScript, TypeScript, Node.js, Go, Terraform, AWS, Nginx + Lua, Python, Bash

Play

Elm, Rust

Toys

git-cloc - Embeddable lines of code report for your git repository [Go]

ghviz - Visualize GitHub orgs and repos [JavaScript, React]

Deckosaur - Markdown powered presentation deck [Elm]

critic.sh's People

Contributors

checksum avatar sdolenc 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

critic.sh's Issues

Add tests

Testing frameworks also need tests!

_assert _ouput_contains does not work if optional message is specified

_output_contains is grep'ing for all following args ("$*") which breaks if you specify an optional message

Example:
Given a method that just:
echo "Gimme some foo"

Happy path:
_assert _output_contains "foo"

Unhappy path:
_assert _output_contains "foo" "there is foo"

Changing the _output_contains function to:
grep -Fqi "$1" <<< "$_output"
appears to fix the issue.

skip/only support for suites/tests

Would be great to have a way to support skipping/running only certain test suites/tests. This will be tricky since _describe and _test are run immediately. I can think of two options:

  1. CRITIC_SUITE_ONLY, CRITIC_SUITE_SKIP for test suites
  2. _only, _skip function to wrap tests

CI tests verifying bash version support

First of all: great work! I especially love the coverage feature.

I put together some circleci tests that runs the test script with different bash versions

I believe the readme said bash 4.1 and above should work, but I can only get debian versions "buster" (bash 5) and "stretch" (bash 4.4) to pass successfully.

Would you prefer I describe the errors I'm seeing as separate issues or each one within this issue?

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.