Method: Easytest::CLI#run

Defined in:
lib/easytest/cli.rb

#runObject



10
11
12
13
14
15
16
17
18
19
20
21
22
23
# File 'lib/easytest/cli.rb', line 10

def run
  exit_code = parse_argv
  return exit_code if exit_code

  if watch?
    watch_files
    return SUCCESS
  end

  Easytest.start
  setup
  successful = Easytest.run
  successful ? SUCCESS : FAILURE
end