Created
August 2, 2011 16:43
-
-
Save clemensp/1120614 to your computer and use it in GitHub Desktop.
Locally re-run all the test files that failed during the last hydra run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# locally run files that failed during hydra | |
Rake::TestTask.new("run_failed_files_locally") do |t| | |
hydra_heuristics_file = "/tmp/hydra_heuristics.yml" | |
report = YAML.load_file(hydra_heuristics_file) if File.exists? hydra_heuristics_file | |
failed_files = [] | |
if report | |
failed_files = report.select{|file,stats| stats["all_tests_passed_last_run"] == false}.map(&:first) | |
failed_files = failed_files.select{|file| File.exists?(file)} | |
end | |
t.test_files = failed_files | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment