Giter Club home page Giter Club logo

haiti's Introduction

Build Status

Haiti

Aruba provides Cucumber helpers for command line programs, but it's way more sophisticated than I can understand, so I wind up reinventing that wheel in miniature for a lot of projects. This is just an extraction of that. It aims to be simple and easy to understand/extend.

It's barely featured, currently the only features are what I extracted from SeeingIsBelieving's test suite. I'll add more to it as I need them, or you're welcome to. Its testing is entirely in cucumber at the moment, and there are no negative tests to assert that things don't work, so if anyone winds up working on it, I wouldn't mind that.

To run tests

cd test
bundle
bundle exec cucumber

Todo

For my own sanity

  • Stick all this shit on a @haiti ivar rather than littering it all over self... I don't even know what self is in this case.

These would actually be useful right now

  • Some way to say that I run it and it succeeds (i.e. not so much effort to print stdout on failures)
  • All existing defs can take single or double quotes
  • Failures on stdout also display stderr
  • Step def for does not include

These should just generally be done

  • Add tests showing that curlies get interpreted where expected
  • Add tests proving that bin gets stuck in the path
  • Add tests for negative assertions (currently if all step defs were empty, this would pass the suite)

Things that would be nice, but probably won't ever happen, b/c honestly, how often am I really going to touch this lib?

  • all step defs work with single or double quotes
  • multiple bin directories
  • don't fucking pollute the World (currently this is how I get eval_curlies in there)
  • assertions about the existence and contents of files
  • a "given I'm in a clean directory" which wipes out the proving grounds

License

       DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
                   Version 2, December 2004

Copyright (C) 2013 Josh Cheek <[email protected]>

Everyone is permitted to copy and distribute verbatim or modified
copies of this license document, and changing it is allowed as long
as the name is changed.

           DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
  TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION

 0. You just DO WHAT THE FUCK YOU WANT TO.

haiti's People

Contributors

joshcheek avatar

Stargazers

E. Sambo avatar

Watchers

 avatar James Cloos avatar  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.