Module: Guard::PHPSpec::Runner
- Defined in:
- lib/guard/phpspec/runner.rb
Overview
The Guard::PHPSpec runner handles running the tests, displaying their output and notifying the user about the results.
Constant Summary
- PHPUNIT_FAILURES_EXITCODE =
The exit code phpspec returns when the tests contain failures
1
- PHPUNIT_ERRORS_EXITCODE =
The exit code phpspec returns when the tests contain errors
2
Class Method Summary (collapse)
-
+ (Boolean) run(paths, options = {})
Runs the PHPSpec tests and displays notifications about the results.
Class Method Details
+ (Boolean) run(paths, options = {})
Runs the PHPSpec tests and displays notifications about the results.
23 24 25 26 27 28 29 30 31 32 33 34 |
# File 'lib/guard/phpspec/runner.rb', line 23 def run(paths, = {}) paths = Array(paths) return false if paths.empty? unless phpspec_exists? UI.error('phpspec not installed or not in env PATH', :reset => true) return false end run_tests(paths, ) end |