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

Add rule no-pending-tests #59

Merged
merged 3 commits into from Apr 14, 2016
Merged

Conversation

treythomas123
Copy link
Contributor

Implements #51

@coveralls
Copy link

Coverage Status

Coverage remained the same at 100.0% when pulling a315b00 on treythomas123:no-pending-tests into df50de1 on lo1tuma:master.

@coveralls
Copy link

Coverage Status

Coverage remained the same at 100.0% when pulling 4fc5084 on treythomas123:no-pending-tests into df50de1 on lo1tuma:master.

@@ -0,0 +1,41 @@
# Disallow Pending Tests (no-pending-tests)

Mocha allows specification of pending tests, which represent tests that aren't yet implemented, but are intended to be implemented eventually. These are designated like a normal mocha test or suite, but with only the first argument provided (no callback for the actual implementation). For example: `describe('unimplemented bdd suite');`
Copy link
Owner

Choose a reason for hiding this comment

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

AFAIK mocha currently doesn’t support pending suites. If the second argument of describe is missing an error will be thrown.
There is an upstream issue about this issue, but as I understand it, it hasn’t been decided if pending suites will be implemented or if the error message will be improved.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Oh I see -- just added a new commit to remove the handling for those. I guess I just assumed mocha supported pending suites.

@coveralls
Copy link

Coverage Status

Coverage remained the same at 100.0% when pulling 175bc9d on treythomas123:no-pending-tests into df50de1 on lo1tuma:master.

@lo1tuma
Copy link
Owner

lo1tuma commented Apr 14, 2016

Awesome, thank you 👍

@lo1tuma lo1tuma merged commit 738a9c4 into lo1tuma:master Apr 14, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants