lib/knapsack_pro/tracker.rb in knapsack_pro-5.7.0 vs lib/knapsack_pro/tracker.rb in knapsack_pro-6.0.0

- old
+ new

@@ -6,15 +6,14 @@ # when test file is pending, empty with no tests or has syntax error then assume time execution # to better allocate it in Queue Mode for future CI build runs DEFAULT_TEST_FILE_TIME = 0.0 # seconds - attr_reader :global_time_since_beginning, :global_time, :test_files_with_time, :prerun_tests_loaded + attr_reader :global_time, :test_files_with_time, :prerun_tests_loaded attr_writer :current_test_path def initialize - @global_time_since_beginning = 0 KnapsackPro::Config::TempFiles.ensure_temp_directory_exists! FileUtils.mkdir_p(tracker_dir_path) set_defaults end @@ -68,16 +67,10 @@ save_prerun_tests_report(@test_files_with_time) @prerun_tests_loaded = true end - def unexecuted_test_files - @test_files_with_time.map do |path, hash| - path unless hash[:measured_time] - end.compact - end - def to_a # When the test files are not loaded in the memory then load them from the disk. # Useful for the Regular Mode when the memory is not shared between tracker instances. # Tracker instance can be created by knapsack_pro process and a separate tracker is created by rake task (e.g., RSpec) load_prerun_tests unless prerun_tests_loaded @@ -139,10 +132,9 @@ @prerun_tests_loaded = true end def update_global_time(execution_time) @global_time += execution_time - @global_time_since_beginning += execution_time end def update_test_file_time(execution_time) @test_files_with_time[current_test_path] ||= { time_execution: 0,