Hi folks, I'm having a bit of trouble with our continuous integration setup. I have a CI rake task that runs our specs, our cucumber scenarios, metric_fu reports, and also checks thresholds against the metric_fu output and fails in the case of bad rcov, flay, flog or reek results.
The bulk of this is working very well, code is here if anyone wants it: http://gist.github.com/364034 However, the main problem here is that my specs get run twice. The tasks run in the following order: db:migrate spec metrics:all cucumber quality:check_thresholds The metrics:all task includes rcov. Since rcov runs the specs, I had hoped that it would be enough. However, it doesn't fail in the case of failing specs. It also seems to produce no output (at least with the metric_fu setup). So, I have to run the specs manually, then if they pass rcov will run them all again in order to get the coverage metric. Yes, my specs are dog slow and I need to do something about that, but anyway, can anyone think of a way that I can get the rcov score and prove that the specs pass without running the specs twice? cheers, Craig -- You received this message because you are subscribed to the Google Groups "Ruby or Rails Oceania" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/rails-oceania?hl=en.
