Class: QUnited::Driver::PhantomJs
- Defined in:
- lib/qunited/driver/phantomjs/phantomjs.rb
Constant Summary collapse
- RUNNER_JS =
File.('../support/runner.js', __FILE__)
Constants inherited from Base
Base::COFFEESCRIPT_EXTENSIONS, Base::SUPPORT_DIR, Base::TEST_RESULT_END_TOKEN, Base::TEST_RESULT_REGEX, Base::TEST_RESULT_START_TOKEN
Instance Attribute Summary
Attributes inherited from Base
#fixture_files, #formatter, #results, #source_files, #test_files
Class Method Summary collapse
-
.available? ⇒ Boolean
Determines whether this driver available to use.
Instance Method Summary collapse
Methods inherited from Base
#initialize, #run, #support_file_contents, #support_file_path, which
Constructor Details
This class inherits a constructor from QUnited::Driver::Base
Class Method Details
.available? ⇒ Boolean
Determines whether this driver available to use. Checks whether phantomjs is on the PATH.
14 15 16 |
# File 'lib/qunited/driver/phantomjs/phantomjs.rb', line 14 def self.available? !!which('phantomjs') end |
Instance Method Details
#command ⇒ Object
22 23 24 |
# File 'lib/qunited/driver/phantomjs/phantomjs.rb', line 22 def command %|phantomjs "#{RUNNER_JS}" "#{@tests_file.path}"| end |
#name ⇒ Object
18 19 20 |
# File 'lib/qunited/driver/phantomjs/phantomjs.rb', line 18 def name 'PhantomJS' end |