Repository navigation
patrol_plus v5.0.2
·
72 commits
to master
since this release
- FIX(patrol_plus): web init no longer reports a spurious "Total: 0" by capping the
$dartRunMain(DDC-detection)waitForFunctiontimeout atmin(initTimeout, 60s). PreviouslyinitTimeout(e.g.PATROL_WEB_INIT_TIMEOUT=300s) was used for that wait; in profile/release/WASM builds$dartRunMainnever appears, so the wait ran until the per-test--web-timeout(e.g. 120s) fired and Playwright closed the page — the catch then swallowed the "Target page, context or browser has been closed" error and the subsequentwaitForFunction(__patrol__onInitialised)rethrew on the dead page, so PatrolLogReader saw zero Dart test events. With the cap, in profile mode the detection fails fast (≤60s) while the page is alive and__patrol__onInitialised(set by the auto-executing dart2js bundle) is found; in DDC mode 60s is comfortably enough for all modules to load from localhost. Fixes #6. (0d575b2d) - FIX(patrol_plus): make web
--web-sharddeterministic and immune to the flaky empty-shard "Total: 0" hang. globalSetup now persists the discovered test list to a worker-safe file (.patrol_tests.json) instead of relying solely on thePATROL_TESTSenv mutation, which does not cross Playwright's main->worker process boundary.test.spec.tsround-robin self-shards onPATROL_WEB_SHARD(disjoint subsets, exact union, balanced, never empty while shards <= test count), native Playwrightshardis removed to avoid double-sharding, and an over-provisioned shard registers a passing placeholder so the run exits 0 instead of idling to the global timeout.
Published to pub.dev: https://pub.dev/packages/patrol_plus/versions/5.0.2