Permalink
Browse files

reports and rerun logic is tested

Signed-off-by: michael zhang <zhangcheng@rbcon.com>
  • Loading branch information...
1 parent b0643a1 commit 4574cd3635c004e84782830c2700dd1ac537f074 michael zhang committed Nov 27, 2012
Showing with 4 additions and 2 deletions.
  1. +4 −2 lib/rspec_parallel.rb
View
6 lib/rspec_parallel.rb
@@ -3,6 +3,8 @@
require 'progressbar'
require 'color_helper'
require 'thread'
+require 'rexml/document'
+include REXML
include ColorHelpers
class Rspec_parallel
@@ -150,7 +152,7 @@ def run_tests()
end
end
- generate_reports(end_time - start_time, rerun && separate_rerun_report)
+ generate_reports(end_time - start_time, rerun && !separate_rerun_report)
end
def get_case_list
@@ -325,7 +327,7 @@ def get_failed_cases
@doc.elements.each("result/suites/suite/cases/case") do |c|
if c.get_elements("errorDetails")[0]
rerun_cmd = c.get_elements("rerunCommand")[0].text
- line = rerun_cmd.split('#')[0].gsub('rspec ./', @options[:case_folder]).strip
+ line = rerun_cmd.split('#')[0].gsub('rspec ', '').strip
@queue << line
end
end

0 comments on commit 4574cd3

Please sign in to comment.