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

Removing test file overrides, specifying file names for failed hooks #19

Merged
merged 4 commits into from
Feb 12, 2016

Conversation

jnwng
Copy link
Contributor

@jnwng jnwng commented Feb 11, 2016

When tests failed within hooks (like beforeEach or afterEach), triple-latte would report "undefined" as the source, making it really difficult to track down errors. This will use the file from the test, and the file from the suite if we're inside a hook.

File information is already on the test object as of mochajs/mocha#950

Same with the test suites: mochajs/mocha@55f01bc

@eleith PTAL

@eleith
Copy link
Contributor

eleith commented Feb 11, 2016

+1

jnwng added a commit that referenced this pull request Feb 12, 2016
Removing test file overrides, specifying file names for failed hooks
@jnwng jnwng merged commit d15856c into master Feb 12, 2016
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.

2 participants