github
Advanced Search
  • Home
  • Pricing and Signup
  • Explore GitHub
  • Blog
  • Login

spicycode / micronaut

  • Admin
  • Watch Unwatch
  • Fork
  • Your Fork
  • Pull Request
  • Download Source
    • 66
    • 3
  • Source
  • Commits
  • Network (3)
  • Issues (7)
  • Graphs
  • Branch: master

click here to add a description

click here to add a homepage

  • Branches (4)
    • format_caller_using
    • gh-pages
    • master ✓
    • rspec2
  • Tags (9)
    • v0.3.0
    • v0.2.10
    • v0.2.9
    • v0.2.8
    • v0.2.7
    • v0.2.5
    • v0.2.4
    • v0.2.3
    • v0.2.2
Sending Request…
Enable Donations

Pledgie Donations

Once activated, we'll place the following badge in your repository's detail box:
Pledgie_example
This service is courtesy of Pledgie.

The latest and greatest wheel to be invented yet — Read more

  cancel

  cancel
  • Private
  • Read-Only
  • HTTP Read-Only

This URL has Read+Write access

More rakefile cleanup, adding sdoc 
spicycode (author)
Fri Oct 09 10:23:27 -0700 2009
commit  b8f56e7ca7c156c9caa05671b222ff8d2f37c8e3
tree    3d1581a3c3d2300b5a3b24e56ad225d57a0dd08e
parent  9d5cc362cfbb32307841d21398bc8e4bc4253c62
micronaut /
name age
history
message
file .autotest Fri Jan 09 22:21:29 -0800 2009 avoid warnings here too [Rob Sanheim]
file .gitignore Sun Feb 15 17:17:34 -0800 2009 Ignore tag files [spicycode]
file LICENSE Wed Nov 26 17:58:04 -0800 2008 Updating readme and license [spicycode]
file README.markdown Sat Jan 03 13:06:58 -0800 2009 Release 0.1.8.3 - Minor 1.9 autotest compati... [spicycode]
file RSPEC-LICENSE Tue Dec 02 13:10:56 -0800 2008 Adding in RSpec license for matchers used, cleanup [spicycode]
file Rakefile Fri Oct 09 10:23:27 -0700 2009 More rakefile cleanup, adding sdoc [spicycode]
file VERSION.yml Sat Aug 08 16:37:20 -0700 2009 Version bump to 0.3.0 [rsanheim]
directory bin/ Sat Dec 20 14:07:52 -0800 2008 Release 0.1.5 - Added display of the failing... [spicycode]
directory doc/ Mon Feb 09 04:43:58 -0800 2009 Converting to jeweler for gem management [spicycode]
directory examples/ Fri May 29 08:01:37 -0700 2009 Merge branch 'negative_filters' [spicycode]
directory lib/ Sat Aug 08 14:35:33 -0700 2009 Include Mocha in a backwards compatible way to ... [rsanheim]
file micronaut.gemspec Mon Aug 10 00:19:18 -0700 2009 Regenerated gemspec for version 0.3.0 [rsanheim]
README.markdown

Micronaut

  • Codes - http://github.com/spicycode/micronaut
  • Examples - http://runcoderun.com/spicycode/micronaut
  • Rails - http://github.com/spicycode/micronaut-rails

DESCRIPTION:

Micronaut is a light-weight BDD test framework.

FEATURES:

  • API compatible with RSpec (of course)

  • Slim and light, designed to be readable, compact, and fast. Just over ~1600 LOC in /lib at last count.

  • Each example has its own metadata, and you can add filters or modules to run/disable/enhance examples based on that metadata at run time

  • A Real-world example of the power the metadata gives you:

  • "Focused examples". Never drop out of Autotest again - just focus on the example(s) and ignore the rest:

    Micronaut.configure do |c| # in your example_helper
      c.filter_run :focused => true
    end 
    
    describe Foo do
        it "this example will run", :focused => true do
        end
    
        # equivalent to:
        focused "so will this one (this is an alias for :focused => true)" do
        end
    
        it "this example will not run, until the focused ones are removed" do
        end
    end
    
  • Add your own metadata options and customize Micronaut to your hearts content (pending specs are implemented as ':pending => true' metadata, for example)

  • Designed to be formatter compatible with RSpec (though this needs some real-world testing)

  • Rake task for simple setup

require 'rubygems' require 'micronaut/rake_task'

desc "Run all micronaut examples" Micronaut::RakeTask.new :examples do |t|

 t.pattern = "examples/**/*_example.rb"

end

desc "Run all micronaut examples using rcov" Micronaut::RakeTask.new :coverage do |t|

 t.pattern = "examples/**/*_example.rb"
 t.rcov = true
 t.rcov_opts = "--exclude \"examples/*,gems/*,db/*,/Library/Ruby/*,config/*\" --text-summary  --sort coverage --no-validator-links" 

end

REQUIREMENTS:

  • Ruby 1.8.6+

CREDITS:

  • Mini/Unit for the great ideas and runner
  • RSpec for the great ideas, matchers, expectations and formatter ideas
  • Matchers are licensed under the MIT license, per RSpec (see RSPEC-LICENSE)
Blog | Support | Training | Contact | API | Status | Twitter | Help | Security
© 2010 GitHub Inc. All rights reserved. | Terms of Service | Privacy Policy
Powered by the Dedicated Servers and
Cloud Computing of Rackspace Hosting®
Dedicated Server