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

increase test coverage of mocha.js #2704

Merged
merged 3 commits into from
Jul 1, 2017

Conversation

seppevs
Copy link
Contributor

@seppevs seppevs commented Feb 7, 2017

Adds a few tests & increases the test coverage of mocha.js

@coveralls
Copy link

Coverage Status

Coverage increased (+0.6%) to 88.77% when pulling 3ef6143 on seppevs:increase_test_coverage_of_mocha_js into f42cbf4 on mochajs:master.

@coveralls
Copy link

Coverage Status

Coverage increased (+0.6%) to 88.77% when pulling 78854cf on seppevs:increase_test_coverage_of_mocha_js into f42cbf4 on mochajs:master.

@Munter Munter self-requested a review May 15, 2017 12:39
Copy link
Contributor

@ScottFreeCode ScottFreeCode left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks good in general! Thanks!

There are a couple "true" vs "false" issues (comments by the specific lines) that need to be fixed.

(Any other comments, while worth looking into on our part if nothing else, shouldn't block this from going in. Including the following comment...)

We should double-check consistency of method chainability, seeing that many but not all of these are being tested for chainability.

mocha.options.ignoreLeaks.should.equal(true);
});

it('should set the ignoreLeaks option to true when param equals false', function () {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"true" here should read "false".

var mocha = new Mocha(blankOpts);
mocha.ignoreLeaks(false).should.equal(mocha);
});
});
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we want to also test the behavior of .ignoreLeaks() (no parameter) while we're at it?

mocha.options.useInlineDiffs.should.equal(true);
});

it('should set the useInlineDiffs option to true when param equals false', function () {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"true" vs. "false" again

@seppevs seppevs force-pushed the increase_test_coverage_of_mocha_js branch from 78854cf to 1b1377c Compare June 15, 2017 13:12
@seppevs
Copy link
Contributor Author

seppevs commented Jun 15, 2017

Changes done.

@coveralls
Copy link

Coverage Status

Coverage increased (+0.6%) to 89.017% when pulling 1b1377c on seppevs:increase_test_coverage_of_mocha_js into 7647e18 on mochajs:master.

@Munter Munter merged commit 1df7c94 into mochajs:master Jul 1, 2017
sgilroy pushed a commit to TwineHealth/mocha that referenced this pull request Feb 27, 2019
…f_mocha_js

increase test coverage of mocha.js
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants