Class: Taglob::Rake::TestTagsTask

Inherits:
TagsTask
  • Object
show all
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

#pattern, #tags

Instance Method Summary collapse

Methods inherited from TagsTask

#test_files

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

#defineObject



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