Skip to content

simplecov not covering lib directory in Rails engine -- NOT a missing require #221

@lastobelus

Description

@lastobelus

In my rails engine simplecov does not (or rather will not) provide coverage for the lib directory.

I tried adding the root directory of the engine to the loadpath in spec_helper, and doing require "lib/myengine", which did not work.

HOWEVER If I simply rename lib to bob and change the corresponding require in the spec to require 'bob/myclass', the coverage DOES get created.

The issue seems to be purely with the name lib. 🐤

Adding a group with the lib path does not help the matter.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions