module PigSpec

A testing framework for pig

A testing framework for pig

PigSpec version constant

Constants

VERSION

Public Instance Methods

pig( pig_path = File.join(ENV['PIG_HOME'], 'pig.jar'), pigunit_path = File.join(ENV['PIG_HOME'], 'pigunit.jar'), options = ['-Dfile.encoding=UTF-8'], &block ) click to toggle source
# File lib/pigspec.rb, line 115
def pig(
  pig_path = File.join(ENV['PIG_HOME'], 'pig.jar'),
  pigunit_path = File.join(ENV['PIG_HOME'], 'pigunit.jar'),
  options = ['-Dfile.encoding=UTF-8'], &block
)
  test = Test.new
  test.setup(pig_path, pigunit_path, options)
  test.evaluate(&block)
  result = test.run
  test.shutdown
  result
end