Class: Guard::Pytest

Inherits:
Plugin
  • Object
show all
Defined in:
lib/guard/pytest.rb

Instance Method Summary collapse

Constructor Details

#initialize(options = {}) ⇒ Pytest

Returns a new instance of Pytest.



6
7
8
# File 'lib/guard/pytest.rb', line 6

def initialize(options = {})
  super
end

Instance Method Details

#reloadObject



16
17
# File 'lib/guard/pytest.rb', line 16

def reload
end

#run_allObject



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

#startObject



10
11
# File 'lib/guard/pytest.rb', line 10

def start
end

#stopObject



13
14
# File 'lib/guard/pytest.rb', line 13

def stop
end