squally-reporter 0.2.0 → 0.2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/dist/index.js +7 -0
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -189,6 +189,13 @@ class SquallyReporter {
189
189
  });
190
190
  }
191
191
  async onEnd(result) {
192
+ // A run with 0 test results is meaningless for Squally's flakiness
193
+ // calculation and would just be dashboard clutter - regardless of why
194
+ // there were none (npx playwright test --list, an empty testDir, a
195
+ // --grep filter that matched nothing). Bail out before building/
196
+ // sending anything.
197
+ if (this.results.length === 0)
198
+ return;
192
199
  const resolvedRevision = resolveTestedRevision();
193
200
  const payload = {
194
201
  branch: detectBranch(),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "squally-reporter",
3
- "version": "0.2.0",
3
+ "version": "0.2.1",
4
4
  "description": "Playwright reporter that sends test results to your Squally dashboard.",
5
5
  "author": "Squally <squally.dev@gmail.com>",
6
6
  "keywords": [