Sha256: 16e7c8df0d7c6cdbb984881cfe568ccafd224ff4448c51b6e1e463de1aada06b

Contents?: true

Size: 480 Bytes

Versions: 18

Compression:

Stored size: 480 Bytes

Contents

# frozen_string_literal: true

module KnapsackPro
  module Formatters
    class TimeTrackerFetcher
      def self.call
        ::RSpec
          .configuration
          .formatters
          .find { |f| f.class.to_s == "KnapsackPro::Formatters::TimeTracker" }
      end

      def self.unexecuted_test_files(scheduled_paths)
        time_tracker = call
        return [] unless time_tracker
        time_tracker.unexecuted_test_files(scheduled_paths)
      end
    end
  end
end

Version data entries

18 entries across 18 versions & 1 rubygems

Version Path
knapsack_pro-7.14.0 lib/knapsack_pro/formatters/time_tracker_fetcher.rb
knapsack_pro-7.13.1 lib/knapsack_pro/formatters/time_tracker_fetcher.rb
knapsack_pro-7.13.0 lib/knapsack_pro/formatters/time_tracker_fetcher.rb
knapsack_pro-7.12.1 lib/knapsack_pro/formatters/time_tracker_fetcher.rb
knapsack_pro-7.12.0 lib/knapsack_pro/formatters/time_tracker_fetcher.rb
knapsack_pro-7.11.0 lib/knapsack_pro/formatters/time_tracker_fetcher.rb
knapsack_pro-7.10.0 lib/knapsack_pro/formatters/time_tracker_fetcher.rb
knapsack_pro-7.9.0 lib/knapsack_pro/formatters/time_tracker_fetcher.rb
knapsack_pro-7.8.2 lib/knapsack_pro/formatters/time_tracker_fetcher.rb
knapsack_pro-7.8.1 lib/knapsack_pro/formatters/time_tracker_fetcher.rb
knapsack_pro-7.8.0 lib/knapsack_pro/formatters/time_tracker_fetcher.rb
knapsack_pro-7.7.0 lib/knapsack_pro/formatters/time_tracker_fetcher.rb
knapsack_pro-7.6.2 lib/knapsack_pro/formatters/time_tracker_fetcher.rb
knapsack_pro-7.6.1 lib/knapsack_pro/formatters/time_tracker_fetcher.rb
knapsack_pro-7.6.0 lib/knapsack_pro/formatters/time_tracker_fetcher.rb
knapsack_pro-7.1.0 lib/knapsack_pro/formatters/time_tracker_fetcher.rb
knapsack_pro-7.0.1 lib/knapsack_pro/formatters/time_tracker_fetcher.rb
knapsack_pro-7.0.0 lib/knapsack_pro/formatters/time_tracker_fetcher.rb