You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Related to #3160, my CI setup would greatly benefit from having TAP output include parseable test duration (e.g., as requested by TestAnything/Specification#16 ). This is not part of the built-in TapReporter (and appropriately so!), but there's also no way that I can see to apply customization here.
Would you be willing to add a configuration option for this, e.g. --custom-reporter=/path/to/my-custom-reporter.{js,cjs,mjs} and customReporter: class MyCustomReporter { … }? It would require committing to and documenting the API surface area, but AFAICT the { extensions: string[], projectDir: string, reportStream: Writable, stdStream: Writable, watching: boolean } reporter constructor argument shape is simple and seems to be stable, and projectDir at least is already established as such at https://github.com/avajs/ava/blob/main/docs/06-configuration.md#avaconfigjs .
The text was updated successfully, but these errors were encountered:
I don't think our current event format is fit for purpose, stable or extensible. But that's what such reporters would be hooking into. See also #2608 and #3004. The latter would probably be the most flexible approach.
That project looks abandoned… and at first glance, what AVA needs is an interchange format we'd emit to stdout so you can pipe to other tools. We wouldn't necessarily want to load third-party code into the main process.
Related to #3160, my CI setup would greatly benefit from having TAP output include parseable test duration (e.g., as requested by TestAnything/Specification#16 ). This is not part of the built-in TapReporter (and appropriately so!), but there's also no way that I can see to apply customization here.
Would you be willing to add a configuration option for this, e.g.
--custom-reporter=/path/to/my-custom-reporter.{js,cjs,mjs}
andcustomReporter: class MyCustomReporter { … }
? It would require committing to and documenting the API surface area, but AFAICT the{ extensions: string[], projectDir: string, reportStream: Writable, stdStream: Writable, watching: boolean }
reporter constructor argument shape is simple and seems to be stable, andprojectDir
at least is already established as such at https://github.com/avajs/ava/blob/main/docs/06-configuration.md#avaconfigjs .The text was updated successfully, but these errors were encountered: