Project

dbtap

0.0
No commit activity in last 3 years
No release in over 3 years
A database-agnostic reimplementation of my favorite methods from pgTAP
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 1.6
~> 10.3

Runtime

>= 0.0.3, ~> 0.0
~> 0.19
 Project Readme

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.