Class: Taglob::Rake::TagsTask
- Inherits:
-
Object
- Object
- Taglob::Rake::TagsTask
- Defined in:
- lib/taglob/rake/test_tags_task.rb
Overview
TagsTask will allow you to specify your own TestTagTasks in your Rakefile:
Example : Using Unit Test Framework
require 'taglob/rake'
Taglob::Rake::SpecTagsTask.new :spec_regression do |t|
t.pattern = 'spec/**/*_spec.rb'
t. = "regression|smoke"
end
Example : Using RSpec Test Framework
require 'taglob/rake'
Taglob::Rake::TestTagsTask.new :test_regression do |t|
t.pattern = 'test/**/test_*.rb'
t. = "regression|smoke"
end
Direct Known Subclasses
Instance Attribute Summary collapse
-
#pattern ⇒ Object
Returns the value of attribute pattern.
-
#tags ⇒ Object
Returns the value of attribute tags.
Instance Method Summary collapse
-
#initialize(name) {|_self| ... } ⇒ TagsTask
constructor
A new instance of TagsTask.
- #test_files ⇒ Object
Constructor Details
#initialize(name) {|_self| ... } ⇒ TagsTask
Returns a new instance of TagsTask.
27 28 29 30 31 |
# File 'lib/taglob/rake/test_tags_task.rb', line 27 def initialize(name) @name = name yield self if block_given? define end |
Instance Attribute Details
#pattern ⇒ Object
Returns the value of attribute pattern.
24 25 26 |
# File 'lib/taglob/rake/test_tags_task.rb', line 24 def pattern @pattern end |
#tags ⇒ Object
Returns the value of attribute tags.
25 26 27 |
# File 'lib/taglob/rake/test_tags_task.rb', line 25 def @tags end |