Coder Social home page Coder Social logo

dbtap's Introduction

Dbtap

Dbtap aims to eventually be a database-agnostic replacement for the amazing pgTAP

Why?

One of my projects started off using PostgreSQL as its sole RDBMS. I had employed pgTAP to run the tests for that project and was very happy. But, sadly, other databases needed to be supported and so my tests would no longer run against those new RDBMSs.

But fortunately, Sequel exists and is great for writing database-agnostic SQL. I am now porting over any functions I liked in pgTAP over into Dbtap.

I'll probably never need the majority of functions that pgTAP provides, meaning I won't be porting them over myself, but I'll update this library as my needs arise.

Installation

Add this line to your application's Gemfile:

gem 'dbtap'

And then execute:

$ bundle

Or install it yourself as:

$ gem install dbtap

Usage

  1. Define a set of tests in a ruby file (see the examples directory)
  2. Run that file using Dbtap's command line tool, dbtap
    • e.g. dbtap run_file my_test_file.rb
  3. Marvel at the TAP-compatible output that issues forth

Contributing

  1. Fork it ( http://github.com/outcomesinsights/dbtap/fork )
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request

Thanks

  • Outcomes Insights, Inc.
    • Many thanks for allowing me to release a portion of my work as Open Source Software!
  • David E. Wheeler
  • Jeremy Evans

License

Released under the MIT license, Copyright (c) 2014 Outcomes Insights, Inc.

dbtap's People

Contributors

aguynamedryan avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Forkers

jeremyevans

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.