0.0
No commit activity in last 3 years
No release in over 3 years
kosher_bacon is an adaptor that converts test written for MiniTest::Unit into specs that can be run by MacBacon.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
 Dependencies

Development

~> 1.3
>= 0
 Project Readme

Kosher Bacon

Kosher Bacon allows tests written for MiniTest::Unit and Test::Unit to run on RubyMotion, in both the simulator and on device. Behind the scenes, test cases are converted to specs that will be run by MacBacon, RubyMotion's built-in test framework.

Status

Version 0.0.2

Installation

For apps using Bundler:

gem 'kosher_bacon'

And then execute:

bundle

For apps without Bundler, install the gem by hand:

gem install kosher_bacon

And then update your Rakefile like so:

require 'kosher_bacon'

Usage

Write your tests in a test/unit style. For example:

class TestBaconStrip < MiniTest::Unit::TestCase

  def setup
    @bacon_strip = BaconStrip.new
  end

  def test_bacon_strip_is_tasty_after_cooking
    @bacon_strip.cook!
    assert_predicate @bacon_strip, :tasty?
  end

end

Compatibility

Assertions implemented:

  • assert, refute
  • assert_empty, refute_empty
  • assert_equal, assert_not_equal, refute_equal
  • assert_in_delta, refute_in_delta
  • assert_in_epsilon, refute_in_epsilon
  • assert_includes, refute_includes
  • assert_instance_of, refute_instance_of
  • assert_kind_of, refute_kind_of
  • assert_match, assert_no_match, refute_match
  • assert_nil, assert_not_nil, refute_nil
  • assert_operator, refute_operator
  • assert_predicate, refute_predicate
  • assert_raises, assert_raise, assert_nothing_raised, refute_raises
  • assert_respond_to, refute_respond_to
  • assert_same, assert_not_same, refute_same
  • assert_send, assert_not_send, refute_send
  • assert_throws, assert_nothing_thrown, refute_throws
  • assert_block

Contributing

  1. Fork it
  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