Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

lab throws with ReferenceError: __$$labCov is not defined when run with coverage enabled and no code to cover #143

Closed
nlf opened this issue Aug 7, 2014 · 0 comments · Fixed by #144
Assignees
Labels
bug
Milestone

Comments

@nlf
Copy link
Member

@nlf nlf commented Aug 7, 2014

To reproduce:

mkdir lab-test
cd lab-test
npm i lab
mkdir test

Create the file test/index.js with the following contents:

var Lab = require('lab');

var lab = exports.lab = Lab.script();
var expect = Lab.expect;
var describe = lab.experiment;
var it = lab.test;


describe('math', function () {

    it('adds one and one', function (done) {

        expect(1+1).to.equal(2);
        done();
    });
});

Run the tests with coverage enabled: ./node_modules/.bin/lab -t 100

Obviously, this is a contrived example, but I noticed it when I was creating a template for an empty test suite and thought I should bring it up since crashes are rarely ever the desired result of anything.

@nlf nlf added the bug label Aug 7, 2014
@geek geek added this to the 4.0.1 milestone Aug 8, 2014
@geek geek self-assigned this Aug 8, 2014
@arb arb closed this in #144 Aug 8, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants
You can’t perform that action at this time.