{"id":25888107,"url":"https://github.com/ayoreis/wptr","last_synced_at":"2026-06-08T06:31:49.885Z","repository":{"id":243269701,"uuid":"809920835","full_name":"ayoreis/wptr","owner":"ayoreis","description":"A quick script that logs the status vs expectation of a WPT run.","archived":false,"fork":false,"pushed_at":"2024-06-12T16:27:48.000Z","size":8,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-02T18:39:11.733Z","etag":null,"topics":["script","web-platform-tests"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ayoreis.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-06-03T17:52:25.000Z","updated_at":"2024-06-12T19:16:22.000Z","dependencies_parsed_at":"2024-06-07T18:30:40.672Z","dependency_job_id":"2e88f95e-7cc2-431f-b053-57bdd86be253","html_url":"https://github.com/ayoreis/wptr","commit_stats":null,"previous_names":["ayoreis/wptr"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/ayoreis/wptr","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ayoreis%2Fwptr","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ayoreis%2Fwptr/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ayoreis%2Fwptr/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ayoreis%2Fwptr/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ayoreis","download_url":"https://codeload.github.com/ayoreis/wptr/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ayoreis%2Fwptr/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34051768,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-08T02:00:07.615Z","response_time":111,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["script","web-platform-tests"],"created_at":"2025-03-02T18:30:17.903Z","updated_at":"2026-06-08T06:31:49.849Z","avatar_url":"https://github.com/ayoreis.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Web Platform Tests reporter (wptr)\n\nA quick script that logs the status vs expectation of a WPT run.\n\nI wrote this to help out when [I was working](https://github.com/oddbird/css-anchor-positioning/pull/195) on Obbbird's CSS Anchor Positioning polyfill. I have only tested it on the `/css/css-anchor-position` directory, if it does not work on other directories test feel free to open an issue/pull request.\n\n## Usage\n\nMake sure you have [WPT](https://web-platform-tests.org/running-tests/from-local-system.html#system-setup) and [Deno](https://docs.deno.com/runtime/manual#install-deno) installed and setup.\n\n[Run](https://web-platform-tests.org/running-tests/from-local-system.html#via-the-command-line) WPT on the old browser (or polyfill with `--inject-script`) to setup [expectations](https://web-platform-tests.org/tools/wptrunner/docs/expectation.html), and then on the new one using the generated expectations:\n\n```sh\n# Inside your WPT installation\n\n./wpt run --log-wptreport=report-old.json [browsername] [tests]\nmkdir meta\n./wpt update-expectations report-old.json\n./wpt run --log-wptreport=report-new.json --metadata=meta [browsername] [tests]\n```\n\nNow `report-new.json` should include `status` and `expected` fields on some of the test results.\n\nThen [install](https://docs.deno.com/runtime/manual/tools/script_installer) wptr\nand run it on `report-new.json`:\n\n```sh\n# Install\ndeno install --global --allow-read https://raw.githubusercontent.com/ayoreis/wptr/main/mod.ts\nwptr --report=path/to/report-new.json\n\n# Or run from source\ngit clone https://github.com/ayoreis/wptr\ncd wptr\ndeno run --allow-read mod.ts --report=path/to/report-new.json\n```\n\n## Options\n\n### `--report`\n\nPath to the [WPT report](https://web-platform-tests.org/running-tests/command-line-arguments.html#output-logging).\n\n### `--output`\n\nComma (no space) separated list of what to output.\n\n- **Options:** `unchanged`, `passed` (includes the `OK` status, didn't find a reason to separate them), `failed`, `failed_message`\n- **Default:** `failed,failed_message`\n\n## Todo\n\n- [ ] `ERROR` state\n- [ ] `TIMEOUT` state\n- [ ] Output for both tests and subtests\n- [ ] Compare two reports\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fayoreis%2Fwptr","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fayoreis%2Fwptr","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fayoreis%2Fwptr/lists"}