2019-05-02 18:17:27 -04:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
2013-10-23 19:06:05 -04:00
|
|
|
module Autospec
|
2013-11-01 18:57:50 -04:00
|
|
|
|
2013-10-23 19:06:05 -04:00
|
|
|
class BaseRunner
|
2013-11-01 18:57:50 -04:00
|
|
|
|
|
|
|
# used when starting the runner - preloading happens here
|
|
|
|
def start(opts = {})
|
2013-10-23 19:06:05 -04:00
|
|
|
end
|
|
|
|
|
2013-11-01 18:57:50 -04:00
|
|
|
# indicates whether tests are running
|
|
|
|
def running?
|
|
|
|
true
|
|
|
|
end
|
|
|
|
|
|
|
|
# launch a batch of specs/tests
|
|
|
|
def run(specs)
|
2013-10-23 19:06:05 -04:00
|
|
|
end
|
|
|
|
|
2013-11-01 18:57:50 -04:00
|
|
|
# used when we need to reload the whole application
|
2013-10-23 19:06:05 -04:00
|
|
|
def reload
|
|
|
|
end
|
|
|
|
|
2013-11-01 18:57:50 -04:00
|
|
|
# used to abort the current run
|
|
|
|
def abort
|
2013-10-23 19:06:05 -04:00
|
|
|
end
|
|
|
|
|
2013-11-01 18:57:50 -04:00
|
|
|
def failed_specs
|
|
|
|
[]
|
2013-10-23 19:06:05 -04:00
|
|
|
end
|
|
|
|
|
2013-11-01 18:57:50 -04:00
|
|
|
# used to stop the runner
|
2013-10-23 19:06:05 -04:00
|
|
|
def stop
|
|
|
|
end
|
2013-11-01 18:57:50 -04:00
|
|
|
|
2013-10-23 19:06:05 -04:00
|
|
|
end
|
2013-11-01 18:57:50 -04:00
|
|
|
|
2013-10-23 19:06:05 -04:00
|
|
|
end
|