Class: Taglob::Rake::TestTagsTask
- Defined in:
- lib/taglob/rake/test_tags_task.rb
Overview
TestTagsTask : To run rake tasks on unit test framework
Require 'taglob/rake/tasks' in your Rakefile to get test_tag.
Example :
* $ rake test_tag tags="for,the,win" #Contain all of these tags (AND condition)
* $ rake test_tag tags="foo|bar" #Contain any of these tags (OR condition)
Instance Attribute Summary
Attributes inherited from TagsTask
Instance Method Summary collapse
- #define ⇒ Object
-
#initialize(name = :test_tags) ⇒ TestTagsTask
constructor
A new instance of TestTagsTask.
Methods inherited from TagsTask
Constructor Details
#initialize(name = :test_tags) ⇒ TestTagsTask
Returns a new instance of TestTagsTask.
46 47 48 |
# File 'lib/taglob/rake/test_tags_task.rb', line 46 def initialize(name = :test_tags) super(name) end |
Instance Method Details
#define ⇒ Object
50 51 52 53 54 |
# File 'lib/taglob/rake/test_tags_task.rb', line 50 def define ::Rake::TestTask.new @name do |t| t.test_files = test_files end end |