lib/kitchen/verifier/pester.rb in kitchen-pester-0.1.2 vs lib/kitchen/verifier/pester.rb in kitchen-pester-0.2.1
- old
+ new
@@ -105,12 +105,12 @@
# @return [String] a command string
def run_command
return if local_suite_files.empty?
wrap_shell_code(Util.outdent!(<<-CMD))
- cd #{File.join(config[:root_path],'suites/pester' )}
- invoke-pester
+ cd "#{File.join(config[:root_path],'suites/pester/' )}"
+ invoke-pester -enableexit
CMD
end
#private
@@ -121,10 +121,10 @@
# @return [Array<String>] array of suite files
# @api private
def local_suite_files
base = File.join(config[:test_base_path], config[:suite_name])
- glob = File.join(base, "pester/**/*")
+ glob = File.join(base, "*/**/*")
Dir.glob(glob).reject do |f|
File.directory?(f)
end
end
\ No newline at end of file