Class: Guard::Pytest
- Inherits:
-
Plugin
- Object
- Plugin
- Guard::Pytest
- Defined in:
- lib/guard/pytest.rb
Instance Method Summary collapse
-
#initialize(options = {}) ⇒ Pytest
constructor
A new instance of Pytest.
- #reload ⇒ Object
- #run_all ⇒ Object
- #run_on_modifications(paths) ⇒ Object
- #start ⇒ Object
- #stop ⇒ Object
Constructor Details
#initialize(options = {}) ⇒ Pytest
Returns a new instance of Pytest.
6 7 8 |
# File 'lib/guard/pytest.rb', line 6 def initialize( = {}) super end |
Instance Method Details
#reload ⇒ Object
16 17 |
# File 'lib/guard/pytest.rb', line 16 def reload end |
#run_all ⇒ Object
19 20 21 22 |
# File 'lib/guard/pytest.rb', line 19 def run_all $stdout.puts `py.test #{options[:pytest_option]}` true end |
#run_on_modifications(paths) ⇒ Object
24 25 26 27 |
# File 'lib/guard/pytest.rb', line 24 def run_on_modifications(paths) $stdout.puts `py.test #{options[:pytest_option]} #{paths.join ' '}` true end |
#start ⇒ Object
10 11 |
# File 'lib/guard/pytest.rb', line 10 def start end |
#stop ⇒ Object
13 14 |
# File 'lib/guard/pytest.rb', line 13 def stop end |