discourse/lib/autospec/base_runner.rb

37 lines
517 B
Ruby
Raw Normal View History

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