Categories: None [Edit]
lookout-rake
Lookout-Rake
Lookout-Rake provides Rake┬╣ tasks for testing using Lookout.
┬╣ See http://rake.rubyforge.org/
§ Installation
Install Lookout-Rake with
% gem install lookout-rake
§ Usage
Include the following code in your ‹Rakefile›:
require 'lookout-rake-3.0'
Lookout::Rake::Tasks::Test.new
If the ‹:default› task hasn’t been defined it’ll be set to depend on the
‹:test› task. The ‹:check› task will also depend on the ‹:test› task.
There’s also a ‹:test:coverage› task that gets defined that uses the
coverage library that comes with Ruby 1.9 to check the test coverage when
the tests are run.
You can hook up your test task to use your Inventory┬╣:
load File.expand_path('../lib/library-X.0/version.rb', __FILE__)
Lookout::Rake::Tasks::Test.new :inventory => Library::Version
Also, if you use the tasks that come with Inventory-Rake┬▓, the test task
will hook into the inventory you tell them to use automatically, that is,
the following will do:
load File.expand_path('../lib/library-X.0/version.rb', __FILE__)
Inventory::Rake::Tasks.define Library::Version
Lookout::Rake::Tasks::Test.new
For further usage information, see the {API documentation}┬│.
┬╣ Inventory: http://disu.se/software/inventory/
┬▓ Inventory-Rake: http://disu.se/software/inventory-rake/
┬│ API: http://disu.se/software/lookout-rake/api/Lookout/Rake/Tasks/Test/
§ Integration
To use Lookout together with Vim¹, place ‹contrib/rakelookout.vim› in
‹~/.vim/compiler› and add
compiler rakelookout
to ‹~/.vim/after/ftplugin/ruby.vim›. Executing ‹:make› from inside Vim
will now run your tests and an errors and failures can be visited with
‹:cnext›. Execute ‹:help quickfix› for additional information.
Another useful addition to your ‹~/.vim/after/ftplugin/ruby.vim› file may
be
nnoremap M
Total
Ranking: 61,713 of 183,107
Downloads: 15,140
Daily
Ranking: 28,793 of 183,092
Downloads: 5
Downloads Trends
Ranking Trends
Num of Versions Trends
Popular Versions (Major)
Popular Versions (Major.Minor)
Depended by
Rank | Downloads | Name |
---|---|---|
22,630 | 58,827 | inventory |
33,429 | 34,289 | lookout |
34,575 | 32,744 | inventory-rake |
34,879 | 32,346 | inventory-rake-tasks-yard |
40,638 | 26,534 | value |
51,549 | 19,282 | yard-heuristics |
54,369 | 17,931 | yard-value |
67,556 | 13,309 | ame |
77,690 | 10,829 | u |
99,593 | 7,289 | lookout-rack |
133,240 | 4,157 | value-yard |
Depends on
Rank | Downloads | Name |
---|---|---|
10 | 953,844,246 | rake |
224 | 158,681,269 | yard |
22,630 | 58,827 | inventory |
33,429 | 34,289 | lookout |
34,575 | 32,744 | inventory-rake |
34,879 | 32,346 | inventory-rake-tasks-yard |
51,549 | 19,282 | yard-heuristics |
Owners
# | Gravatar | Handle |
---|---|---|
1 | now |