tolbertam/mocha-appveyor-reporter

Hides original log

xPaw opened this issue · 2 comments

xPaw commented

Whenever this reporter is used, it hides all the original test report in the logs for some reason. e.g. If you run it locally, it will only say that APPVEYOR_API_URL is not set, and nothing else.

Sorry for the super late delay in response.

Unless I'm misunderstanding the issue, I think it's because this reporter itself doesn't write anything to stdout. Using it instead of the default (spec) reporter for example would cause nothing to be logged. What I do is use mocha-multi and set the multi environment variable like so:

$env:multi="spec=- mocha-appveyor-reporter=-"
./node_modules/.bin/mocha test/unit -R mocha-multi

Alternatively, we could have the reporter print output exactly like the spec reporter. Or maybe support an option that when enabled that logs output similar to spec.

Closing, but please reopen if my comment is not adequate.