stats-validator-reporter-stats-report
UI reporter for @statoscope/stats-validator.
Injects validator's result into stats and generates a Statoscope report.
Usage
-
Install
npm i -D @statoscope/stats-validator-plugin-webpack
-
Add into statoscope.config.js
module.exports = {
validate: {
reporters: [["@statoscope/stats-report", { "open": true }]]
}
}
In this case, Statoscope validator will generate a UI-report and open it.
Options
type Options = {
saveReportTo?: string;
saveStatsTo?: string;
open?: boolean;
disableReportCompression?: boolean
};
Examples
statoscope.config.js:
{
"validate": {
"reporters": [["@statoscope/stats-report", { "open": true }]]
}
}
Generate UI report and open it.
statoscope.config.js:
{
"validate": {
"reporters": [["@statoscope/stats-report", { "saveStatsTo": "/path/to/report.html" }]]
}
}
Generate UI report info /path/to/report.html
file.
statoscope.config.js:
{
"validate": {
"reporters": [["@statoscope/stats-report", { "saveStatsTo": "/path/to/new/stats.json" }]]
}
}
Just inject validation result into stats and save into /path/to/new/stats.json
file.