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.
- package/dist/index.js +7 -0
- 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(),
|