Class: SauceTest::Rake::BaseTask
- Inherits:
-
Object
- Object
- SauceTest::Rake::BaseTask
- Defined in:
- lib/sauce-test/rake/tasks.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#browsers ⇒ Object
Returns the value of attribute browsers.
-
#config ⇒ Object
Returns the value of attribute config.
-
#files ⇒ Object
Returns the value of attribute files.
-
#report ⇒ Object
Returns the value of attribute report.
-
#workers ⇒ Object
Returns the value of attribute workers.
Instance Method Summary collapse
- #define_task ⇒ Object
-
#initialize(name) {|_self| ... } ⇒ BaseTask
constructor
A new instance of BaseTask.
Constructor Details
#initialize(name) {|_self| ... } ⇒ BaseTask
Returns a new instance of BaseTask.
10 11 12 13 14 15 16 17 18 19 20 21 |
# File 'lib/sauce-test/rake/tasks.rb', line 10 def initialize(name) @name = name @browsers = [{'os' => "Linux", 'name' => "firefox", 'version' => 3}, {'os' => "Windows 2003", 'name' => "iexplore", 'version' => 7}] @workers = 1 @config = 'config/sauce.yml' @report = 'reports/sauce_test' yield self if block_given? define_task end |
Instance Attribute Details
#browsers ⇒ Object
Returns the value of attribute browsers.
8 9 10 |
# File 'lib/sauce-test/rake/tasks.rb', line 8 def browsers @browsers end |
#config ⇒ Object
Returns the value of attribute config.
8 9 10 |
# File 'lib/sauce-test/rake/tasks.rb', line 8 def config @config end |
#files ⇒ Object
Returns the value of attribute files.
8 9 10 |
# File 'lib/sauce-test/rake/tasks.rb', line 8 def files @files end |
#report ⇒ Object
Returns the value of attribute report.
8 9 10 |
# File 'lib/sauce-test/rake/tasks.rb', line 8 def report @report end |
#workers ⇒ Object
Returns the value of attribute workers.
8 9 10 |
# File 'lib/sauce-test/rake/tasks.rb', line 8 def workers @workers end |
Instance Method Details
#define_task ⇒ Object
23 24 25 26 27 |
# File 'lib/sauce-test/rake/tasks.rb', line 23 def define_task task @name do SauceTest::Collection.run(@files, @browsers, @workers, @config, @report, @type) end end |