markbates/cover_me

Include views

cimm opened this issue · 0 comments

cimm commented

Is there a way to include my view specs as well? I tried adding the views to the configuration file_pattern (I'm using HAML) in my RSpec spec_helper but this doesn't seem to change anything in the report.

c.file_pattern = [
  /(#{CoverMe.config.project.root}\/app\/.+\.rb)/i,
  /(#{CoverMe.config.project.root}\/lib\/.+\.rb)/i,
  /(#{CoverMe.config.project.root}\/app\/.+\.haml)/i
]

Maybe this isn't possible (yet)?

Thanks!