Skip to content

Commit

Permalink
Add validation for user's main test definition (javascript) file
Browse files Browse the repository at this point in the history
  • Loading branch information
ianfixes committed Apr 9, 2015
1 parent 4874aac commit 40a807a
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions gem/lib/illuminator.rb
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,11 @@ def self.validateOptions(options)
puts "Specified simulator iOS version '#{version}' does not appear to be installed - options are #{versions}".red
noproblems = false
end

unless File.exists? options.javascript.testPath
puts "Could not find specified javascript test definitions file at '#{options.javascript.testPath}'".red
noproblems = false
end
end

return noproblems
Expand Down

0 comments on commit 40a807a

Please sign in to comment.