Module: Testjour
- Defined in:
- lib/testjour.rb,
lib/testjour/cli.rb,
lib/testjour/mysql.rb,
lib/testjour/rsync.rb,
lib/testjour/bonjour.rb,
lib/testjour/colorer.rb,
lib/testjour/pid_file.rb,
lib/testjour/run_command.rb,
lib/testjour/commands/run.rb,
lib/testjour/queue_server.rb,
lib/testjour/slave_server.rb,
lib/testjour/commands/help.rb,
lib/testjour/commands/list.rb,
lib/testjour/commands/warm.rb,
lib/testjour/commands/version.rb,
lib/testjour/commands/local_run.rb,
lib/testjour/commands/slave_run.rb,
lib/testjour/commands/mysql_drop.rb,
lib/testjour/commands/slave_stop.rb,
lib/testjour/commands/slave_warm.rb,
lib/testjour/commands/slave_start.rb,
lib/testjour/commands/base_command.rb,
lib/testjour/commands/mysql_create.rb,
lib/testjour/cucumber_extensions/drb_formatter.rb,
lib/testjour/cucumber_extensions/queueing_executor.rb
Defined Under Namespace
Modules: Bonjour, CLI, RunCommand Classes: Colorer, DRbFormatter, MysqlDatabaseSetup, PidFile, QueueServer, QueueingExecutor, Rsync, RsyncFailed, SlaveServer
Constant Summary collapse
- VERSION =
'0.2.1'
- SERVICE =
"_testjour._tcp"
Class Attribute Summary collapse
-
.executor ⇒ Object
Returns the value of attribute executor.
-
.step_mother ⇒ Object
Returns the value of attribute step_mother.
Class Method Summary collapse
Class Attribute Details
.executor ⇒ Object
Returns the value of attribute executor.
38 39 40 |
# File 'lib/testjour.rb', line 38 def executor @executor end |
.step_mother ⇒ Object
Returns the value of attribute step_mother.
37 38 39 |
# File 'lib/testjour.rb', line 37 def step_mother @step_mother end |
Class Method Details
.load_cucumber ⇒ Object
41 42 43 44 45 46 47 48 49 50 51 52 53 54 |
# File 'lib/testjour.rb', line 41 def self.load_cucumber $LOAD_PATH.unshift(File.("./vendor/plugins/cucumber/lib")) require "cucumber" require "cucumber/formatters/ansicolor" require "cucumber/treetop_parser/feature_en" Cucumber.load_language("en") # Expose this because we need it class << Cucumber::CLI attr_reader :executor attr_reader :step_mother end end |
.logger ⇒ Object
56 57 58 59 60 |
# File 'lib/testjour.rb', line 56 def self.logger return @logger if @logger setup_logger @logger end |
.setup_logger ⇒ Object
62 63 64 65 66 |
# File 'lib/testjour.rb', line 62 def self.setup_logger @logger = Logger.new("testjour.log") @logger.formatter = proc { |severity, time, progname, msg| "#{time.strftime("%b %d %H:%M:%S")} [#{$PID}]: #{msg}\n" } @logger.level = Logger::DEBUG end |