{"id":15598718,"url":"https://github.com/fluffynuts/mocha-yar","last_synced_at":"2025-09-13T20:31:04.619Z","repository":{"id":8470896,"uuid":"58478324","full_name":"fluffynuts/mocha-yar","owner":"fluffynuts","description":null,"archived":false,"fork":false,"pushed_at":"2023-04-17T05:28:08.000Z","size":935,"stargazers_count":2,"open_issues_count":3,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-05-02T00:05:04.853Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-2-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/fluffynuts.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"License.txt","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":"2016-05-10T16:51:10.000Z","updated_at":"2024-06-19T16:02:28.349Z","dependencies_parsed_at":"2024-06-19T16:12:22.600Z","dependency_job_id":null,"html_url":"https://github.com/fluffynuts/mocha-yar","commit_stats":{"total_commits":52,"total_committers":3,"mean_commits":"17.333333333333332","dds":0.5,"last_synced_commit":"17f0ec3877272166b83d1a3281746a54d39b98b6"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fluffynuts%2Fmocha-yar","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fluffynuts%2Fmocha-yar/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fluffynuts%2Fmocha-yar/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fluffynuts%2Fmocha-yar/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/fluffynuts","download_url":"https://codeload.github.com/fluffynuts/mocha-yar/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":232905764,"owners_count":18594799,"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-03T01:41:06.625Z","updated_at":"2025-01-07T17:03:50.912Z","avatar_url":"https://github.com/fluffynuts.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# mocha-yar\n![NPM downloads](https://img.shields.io/npm/dw/mocha-yar)\n\n### Yet Another Mocha Reporter\n\nA Mocha test reporter designed to be more useful for continuous testing, including:\n\n1. Running counts of passed / failed / total tests\n2. Wrapping of console.log so that:\n    1. You can actually see logs\n    2. They don't interfere with live counts (much)\n    3. You can tell where the logs come from (!!)\n3. Mad colorz, yo!\n4. Enable timing of tests:\n    1. Via config: ```time: \"test,total\"```\n       - `test` will output timing after every test, so you'll lose the continual feel\n       - `total` will output total test time at the end of the run\n    2. Via environment variables: `TIME_TEST` and `TIME_TOTAL`\n        - you can use the special values \"true\", \"false\", \"1\" and \"0\" or any truthy value\n    3. Environment variables override config, if the config exists\n\n### What you get\n\n- Yet another Mocha reporter\n- Happy tests run past with minimal output\n- Sad tests are reported at the end of the run (or immediately, if `impatient` is set)\n- Output from tests is labelled with the test which creates the output\n  - Never wonder again where that stray `console.log` is!\n  - Output can be suppressed per-test via `suppressOutputFrom`\n- `console.error` output is highlighted with white-on-red\n\nSee the [test gulpfile in this repo for configuration examples](test/gulpfile.js)\n\n### Example output:\n\n#### Happy path\n\n![Happy output](happy.gif)\n\n#### Mixed path\n![Mixed output](mixed.gif)\n\n### What you don't get\n\nAny kind of guarantee that this is the code you're looking for\n\n### What you can do\n\n1. Keep all pieces if it breaks\n2. Modify and redistribute it, with kudos, of course\n\n### Why? There are so many other reporters!\n\nYou're right. None that I found gave me (karma / jasmine)-like feedback whilst running.\nNo runner that I've seen helps you to hunt down rogue console.log() calls. Other than\nthat, this is totally pointless. Feel free to tell your friends how pointless it is!\nThey will surely be impressed.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffluffynuts%2Fmocha-yar","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffluffynuts%2Fmocha-yar","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffluffynuts%2Fmocha-yar/lists"}