Class: StatusTestRunner
- Inherits:
-
Object
- Object
- StatusTestRunner
- Defined in:
- lib/sfb_scripts/test_running/status_test_runner.rb
Instance Attribute Summary collapse
-
#ignore_selenium ⇒ Object
readonly
Returns the value of attribute ignore_selenium.
-
#repo ⇒ Object
readonly
Returns the value of attribute repo.
-
#shell ⇒ Object
readonly
Returns the value of attribute shell.
-
#status_tests ⇒ Object
readonly
Returns the value of attribute status_tests.
-
#test_runner ⇒ Object
readonly
Returns the value of attribute test_runner.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(env, ignore_selenium) ⇒ StatusTestRunner
constructor
A new instance of StatusTestRunner.
- #status ⇒ Object
Constructor Details
#initialize(env, ignore_selenium) ⇒ StatusTestRunner
8 9 10 11 12 13 14 |
# File 'lib/sfb_scripts/test_running/status_test_runner.rb', line 8 def initialize(env, ignore_selenium) @repo = env[:repo] @shell = env[:shell] @test_runner = env[:test_runner] @ignore_selenium = ignore_selenium @status_tests = get_status_tests end |
Instance Attribute Details
#ignore_selenium ⇒ Object (readonly)
Returns the value of attribute ignore_selenium.
7 8 9 |
# File 'lib/sfb_scripts/test_running/status_test_runner.rb', line 7 def ignore_selenium @ignore_selenium end |
#repo ⇒ Object (readonly)
Returns the value of attribute repo.
7 8 9 |
# File 'lib/sfb_scripts/test_running/status_test_runner.rb', line 7 def repo @repo end |
#shell ⇒ Object (readonly)
Returns the value of attribute shell.
7 8 9 |
# File 'lib/sfb_scripts/test_running/status_test_runner.rb', line 7 def shell @shell end |
#status_tests ⇒ Object (readonly)
Returns the value of attribute status_tests.
7 8 9 |
# File 'lib/sfb_scripts/test_running/status_test_runner.rb', line 7 def status_tests @status_tests end |
#test_runner ⇒ Object (readonly)
Returns the value of attribute test_runner.
7 8 9 |
# File 'lib/sfb_scripts/test_running/status_test_runner.rb', line 7 def test_runner @test_runner end |
Class Method Details
.status(env, ignore_selenium = false) ⇒ Object
3 4 5 |
# File 'lib/sfb_scripts/test_running/status_test_runner.rb', line 3 def self.status(env, ignore_selenium=false) new(env, ignore_selenium).status end |
Instance Method Details
#status ⇒ Object
16 17 18 19 20 21 22 23 24 25 26 27 |
# File 'lib/sfb_scripts/test_running/status_test_runner.rb', line 16 def status if status_tests.include_selenium? handle_selenium end if status_tests.empty? shell.notify 'No tests to run' exit end test_runner.run_files(status_tests) end |