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

Support relative path as a reporter name #65

Open
just-boris opened this issue Aug 23, 2019 · 2 comments · May be fixed by #66
Open

Support relative path as a reporter name #65

just-boris opened this issue Aug 23, 2019 · 2 comments · May be fixed by #66

Comments

@just-boris
Copy link
Contributor

In the Mocha code there is the following bit of logic: https://github.com/mochajs/mocha/blob/master/lib/mocha.js#L234

it allows customers to write local reporters and provide them to mocha. This feature is even used in this package in the verify script.

However it is not working in mocha-multi

mocha -R mocha-multi --reporter-options spec=-,./my-custom.js=out.txt
@glenjamin
Copy link
Owner

Can you provide a full reproducible example please? It should be a matter of getting the paths right

@just-boris just-boris linked a pull request Aug 23, 2019 that will close this issue
@just-boris
Copy link
Contributor Author

Yes, here we go: #66

The tests there will fail with the error ERROR: Unable to find 'fixtures/dummy-reporter.js' reporter. The expected result that reporter can be found.

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 a pull request may close this issue.

2 participants