Sha256: baa443a0e32a07c4a814f36b8c5425999f9d34093a9d48934bec6f571ba9096d
Contents?: true
Size: 696 Bytes
Versions: 9
Compression:
Stored size: 696 Bytes
Contents
# frozen_string_literal: true require 'covered/rspec' require 'trenni' begin require 'ruby-prof' RSpec.shared_context "profile" do before(:all) do RubyProf.start end after(:all) do result = RubyProf.stop # Print a flat profile to text printer = RubyProf::FlatPrinter.new(result) printer.print(STDOUT) end end rescue LoadError RSpec.shared_context "profile" do before(:all) do puts "Profiling not supported on this platform." end end end RSpec.configure do |config| # Enable flags like --only-failures and --next-failure config.example_status_persistence_file_path = ".rspec_status" config.expect_with :rspec do |c| c.syntax = :expect end end
Version data entries
9 entries across 9 versions & 1 rubygems