module Minitag

Namespace for classes or modules providing tagging functionality to Minitest::Test

Constants

VERSION

Public Class Methods

add_filter(tag) click to toggle source

Add filtering tag to context specified by the `–tag` or `-t` option.

# File lib/minitag.rb, line 31
def add_filter(tag)
  context.add_filter(tag)
end
context() click to toggle source

Execution context of the test suite.

# File lib/minitag.rb, line 26
def context
  @context ||= Context.new
end
extension_registry() click to toggle source

Registry of classes that requires extension by Minitag::TagExtension.

# File lib/minitag.rb, line 16
def extension_registry
  @extension_registry ||= ExtensionRegistry.new
end
pending_tags() click to toggle source

Tags from the last `tag` method awaiting to be associated with a test.

# File lib/minitag.rb, line 36
def pending_tags
  @pending_tags || []
end
pending_tags=(tags) click to toggle source

Tags set from the `tag` method.

# File lib/minitag.rb, line 41
def pending_tags=(tags)
  @pending_tags = Array(tags)
end
register_for_extension(klass) click to toggle source

Register a class for extension.

# File lib/minitag.rb, line 21
def register_for_extension(klass)
  extension_registry.register(klass)
end