- Notifications
You must be signed in to change notification settings - Fork 572
Closed
Labels
Description
If you start SimpleCov in a directory like "/foo/bar (foobar)" you get "0 / 0 LOC (0.0%) covered".
The reason seems to be the "root_filter" defined in defaults.rb. The RegExp pattern will be parsed wrong if the directory has included parenthesis.
> filename = "/foo/bar (foobar)/somefile.rb" => "/foo/bar (foobar)/somefile.rb" > test = "/foo/bar" => "/foo/bar" > !(filename =~ /^#{test}/) => false > test = "/foo/bar (foobar)" => "/foo/bar (foobar)" > !(filename =~ /^#{test}/) => true