Skip to content

How to disable default (tap) reporter? #1821

@jakerella

Description

@jakerella

Hello! I would like to implement my own reporter for a project. This would not be an npm package, just a local script. The --reporter documentation suggest this is possible: "To load a reporter from a local Node.js script, use --require instead." Yet I can't figure out how to do that. I can require a local script just fine. I can change various QUnit.config options or add hooks with QUnit.done() and such, but how do I add the local reporter?

I've tried adding my script (per the Reporter API) to QUnit.config.reporters, and just writing a function directly into the reporters object, but that didn't work (and seemed wrong anyway).

As a side note, I see no way to disable all reporting (for example, doing something like QUnit.config.reporters.tap = false. When I do this, results are still displayed in the terminal (I'm running this in Node.js).

(Note that I split off the new feature / config request to #1823 and this issue should only be using for the disabling of the tap reporter, which is still a problem.)

Metadata

Metadata

Assignees

Type

No type
No fields configured for issues without a type.

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions