Sha256: 7f9238456ffdefb4cb67d04cc1198aee9e4a39cf58f5fdd042aa004be9b5a39a

Contents?: true

Size: 907 Bytes

Versions: 4

Compression:

Stored size: 907 Bytes

Contents

#!/usr/bin/env ruby

require "bundler/setup"

ENV['COVERBAND_ENABLE_DEV_MODE'] = 'true'
ENV['COVERBAND_ENABLE_TEST_MODE'] = 'true'
ENV['PROCESS_TYPE'] = 'debug'
ENV['COVERBAND_REPORT_PERIOD'] = '30'
ENV['COVERBAND_API_KEY'] ||= 'set this'
ENV['COVERBAND_STATS_KEY'] ||='set this'

require "pry-byebug";
require "dogapi";
require "net/http/persistent";
# require "httplog";
require 'benchmark'

require_relative "../lib/coverband-service-client"

# HttpLog.configure do |config|
#   config.url_SAFElist_pattern = /coverband/
# end

data = {
  'app/helpers/posts_helper.rb' => [1, nil]
}

collector = Coverband::Collectors::Coverage.instance
store = Coverband.configuration.store

# What is the recommended timeout against the target, from the lib
# puts store.recommended_timeout

Benchmark.bmbm do |x|
  x.report("connection") do
    30.times do
      store.save_report(data)
    end
  end
end

puts "done"

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
coverband-service-client-0.0.14 bin/stats
coverband-service-client-0.0.13 bin/stats
coverband-service-client-0.0.12 bin/stats
coverband-service-client-0.0.12.rc.4 bin/stats