Sha256: 65408c459626e50832ced25ddc72be509688b679b91ac6e23d7f657e75e06cb1
Contents?: true
Size: 670 Bytes
Versions: 3
Compression:
Stored size: 670 Bytes
Contents
# frozen_string_literal: true # Released under the MIT License. # Copyright, 2016-2024, by Samuel Williams. require 'website' require 'benchmark/http' describe "website" do include_context AServer let(:timeout) {10} let(:spider) {Benchmark::HTTP::Spider.new(depth: 128)} let(:statistics) {Benchmark::HTTP::Statistics.new} it "should be responsive" do spider.fetch(statistics, client, endpoint.url) do |method, uri, response| if response.failure? Console.error(endpoint) {"#{method} #{uri} -> #{response.status}"} end end.wait statistics.print expect(statistics.samples).to be(:any?) expect(statistics.failed).to be(:zero?) end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
utopia-2.25.0 | setup/site/test/website.rb |
utopia-2.24.4 | setup/site/test/website.rb |
utopia-2.24.3 | setup/site/test/website.rb |