grosser / parallel_tests

Ruby: 2 CPUs = 2x Testing Speed for RSpec, Test::Unit and Cucumber
3.38k stars 494 forks source link

rspec output interpolates with --format progress #411

Open cciollaro opened 9 years ago

cciollaro commented 9 years ago

Not sure if this is an actual "issue" but it'd be nice if the processes waited until all specs have been run to output their summaries. The README hints at a solution with --format ParallelTests::RSpec::SummaryLogger --out tmp/spec_summary.log but upon trying it my stdout still gets the summaries in between the progress dots.

grosser commented 9 years ago

this will produce clean output in the tmp/spec_summary.log ... if you want clean output in stdout use only --format ParallelTests::RSpec::SummaryLogger and no --format progress ... might not work on most recent rspec ... they changed formatters a bunch ... but worth a try

cciollaro commented 9 years ago

--format ParallelTests::RSpec::SummaryLogger works well but there's no indication of progress being made :(

do you think it's possible to create a formatter that works similar to progress (outputs dots and F's as they happen) and then once all processes have finished gives one cohesive report?

if yes how would you recommend going about that? my initial thought is to use a file in tmp to coordinate between the processes.

grosser commented 9 years ago

hmmm you want progress to stdout and summary to stdout ... maybe --out stdout or something like this works ... otherwise could work with manualy formatter setup in ruby

On Wed, Jun 24, 2015 at 2:28 PM, Christopher notifications@github.com wrote:

--format ParallelTests::RSpec::SummaryLogger works well but then there's no indication of progress being made :(

do you think it's possible to create a formatter that works similar to progress (outputs dots and F's as they happen) and then once all processes have finished gives one cohesive report?

if yes how would you recommend going about that? my initial thought is to use a file in tmp to coordinate between the processes.

— Reply to this email directly or view it on GitHub https://github.com/grosser/parallel_tests/issues/411#issuecomment-115017736 .