Skip to content

Commit

Permalink
Update steps
Browse files Browse the repository at this point in the history
  • Loading branch information
lslezak committed Nov 16, 2017
1 parent b35a6cf commit 0fa6684
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 20 deletions.
4 changes: 4 additions & 0 deletions features/step_definitions/process_steps.rb
Expand Up @@ -21,6 +21,10 @@ def port_open?(host, port)
false
end

# wait until the specified port is open or until the timeout is reached
# @param host [Integer] the host to connect to
# @param port [Integer] the port number
# @raise Timeout::Error when the port is not opened in time
def wait_for_port(host, port)
Timeout.timeout(DEFAULT_TIMEOUT) do
loop do
Expand Down
4 changes: 2 additions & 2 deletions features/support/env.rb
Expand Up @@ -11,7 +11,7 @@
require "aruba/cucumber"

# kill the testing process if it is still running after finishing a scenario,
# use @keep_running tag to avoid killing the process
# use the @keep_running tag to avoid killing the process
After("not @keep_running") do
if @app_pid
begin
Expand All @@ -30,7 +30,7 @@
end
end

# allow a short delay between the steps to watch the UI changes and reactions
# optionally allow a short delay between the steps to watch the UI changes
AfterStep do
delay = ENV["STEP_DELAY"].to_f
sleep(delay) if delay > 0
Expand Down
21 changes: 3 additions & 18 deletions test/test_helper.rb
Expand Up @@ -27,21 +27,6 @@ def stub_module(name)
stub_module("Language")
stub_module("Proxy")

if ENV["COVERAGE"]
require "simplecov"
SimpleCov.start do
add_filter "/test/"
end

# track all ruby files under src
SimpleCov.track_files("#{srcdir}/**/*.rb")

# use coveralls for on-line code coverage reporting at Travis CI
if ENV["TRAVIS"]
require "coveralls"
SimpleCov.formatters = [
SimpleCov::Formatter::HTMLFormatter,
Coveralls::SimpleCov::Formatter
]
end
end
# the simplecov configuration is shared with the integration tests in
# the ".simplecov" file at the root, it is automatically loaded at "require"
require "simplecov" if ENV["COVERAGE"]

0 comments on commit 0fa6684

Please sign in to comment.