{"id":16334525,"url":"https://github.com/traxys/tap_runner","last_synced_at":"2025-03-22T23:32:12.617Z","repository":{"id":152275170,"uuid":"625665467","full_name":"traxys/tap_runner","owner":"traxys","description":"A simple interative UI for displaying tap tests","archived":false,"fork":false,"pushed_at":"2023-04-10T17:14:42.000Z","size":286,"stargazers_count":5,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-18T01:42:20.083Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/traxys.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":"2023-04-09T20:07:52.000Z","updated_at":"2023-04-22T15:15:30.000Z","dependencies_parsed_at":null,"dependency_job_id":"075fdb19-4868-440c-89fc-56cfb270f3e5","html_url":"https://github.com/traxys/tap_runner","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/traxys%2Ftap_runner","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/traxys%2Ftap_runner/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/traxys%2Ftap_runner/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/traxys%2Ftap_runner/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/traxys","download_url":"https://codeload.github.com/traxys/tap_runner/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245036112,"owners_count":20550662,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":[],"created_at":"2024-10-10T23:38:39.086Z","updated_at":"2025-03-22T23:32:12.341Z","avatar_url":"https://github.com/traxys.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# TAP Runner UI\n\n|      Normal view       |      With preview       |      With subtests       |\n| :--------------------: | :---------------------: | :----------------------: |\n| ![](images/simple.png) | ![](images/preview.png) | ![](images/subtests.png) |\n\nThis is a software to preview [TAP](https://testanything.org/) results to be able to quickly iterate on your tests/software.\n\nTo use this you need to have Tests that are launchable by a simple command and that output valid TAP on stdout.\nYou can then simply run `tapr \u003cyour test command\u003e...`.\nIn order to reload the window you can press the `r` key, it will relaunch the command and display the results.\n\nYou can pass a build command separated by `,` with the `-b|--build-command` option that will be launched before running the tests.\nYou may pass the `-l|--location-filter` to extract location information from YAML diagnostics. This takes a `jq` like filter (to be exact it is a [jaq](https://github.com/01mf02/jaq) filter).\nLocation information must be of the form `\u003cfile\u003e:\u003cline\u003e`.\n\nIf location information is available, and [`bat`](https://github.com/sharkdp/bat) is installed you may pass the `-p|--preview` to display a preview of the file containing the failure.\n\n## Keybinds\n\n- `r`: Relaunch the tests\n- `q`: Quit\n- `\u003cup\u003e`: Select the previous failing test\n- `\u003cdown\u003e`: Select the next failing test\n- `\u003cesc\u003e`: Unselect failing tests\n\n## Examples\n\nThe example images were obtained with the following TAP files:\n\n`test.tap`:\n\n```\nTAP version 14\n1..5\nok 1 - this is an ok test\nok 2 - this is a skipped test # SKIP\nnot ok 3 - this is a failed test\nnot ok 4 - this is a failed test with diagnostics\n  ---\n  failure:\n     message: Some kind of assertion failed\n  ...\nnot ok 5 - this is a failed test with a location\n  ---\n  failure:\n     - location: src/main.rs:125\n  ...\n```\n\n`subtest.tap`:\n\n```\nTAP version 14\n1..2\n# Subtest: foo\n    1..3\n    ok 1 - this is an ok test\n    ok 2 - this is a skipped test # SKIP\n    not ok 3 - this is a failed test\nnot ok 1 - foo\n# Subtest: bar\n    1..2\n    not ok 4 - this is a failed test with diagnostics\n      ---\n      failure:\n         message: Some kind of assertion failed\n      ...\n    not ok 5 - this is a failed test with a location\n      ---\n      failure:\n         - location: src/main.rs:60\n      ...\nnot ok 2 - bar\n```\n\n- Launching `tapr cat file.tap`\n- Launching `tapr -pl '.failure[] | .location' cat file.tap`\n- Launching `tapr -pl '.failure[] | .location' cat subtest.tap`\n\n## Limitations\n\nRight now TAP runner only displays the results after the command has finished.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftraxys%2Ftap_runner","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftraxys%2Ftap_runner","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftraxys%2Ftap_runner/lists"}