{"id":18103982,"url":"https://github.com/svoop/minitest-flash","last_synced_at":"2025-07-28T07:09:23.450Z","repository":{"id":188765707,"uuid":"679354366","full_name":"svoop/minitest-flash","owner":"svoop","description":"Simple Minitest reporter to indicate the result of test runs in as fancy a way you like.","archived":false,"fork":false,"pushed_at":"2025-07-20T14:24:45.000Z","size":119,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-07-20T15:21:47.200Z","etag":null,"topics":["minitest","reporter","ruby"],"latest_commit_sha":null,"homepage":"","language":"Ruby","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/svoop.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":".github/FUNDING.yml","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,"zenodo":null},"funding":{"github":"svoop","custom":"https://donorbox.org/bitcetera"}},"created_at":"2023-08-16T16:42:34.000Z","updated_at":"2025-07-20T14:23:36.000Z","dependencies_parsed_at":null,"dependency_job_id":"384c0d09-32cc-492d-8d52-ccae49807a57","html_url":"https://github.com/svoop/minitest-flash","commit_stats":null,"previous_names":["svoop/minitest-flash"],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/svoop/minitest-flash","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/svoop%2Fminitest-flash","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/svoop%2Fminitest-flash/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/svoop%2Fminitest-flash/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/svoop%2Fminitest-flash/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/svoop","download_url":"https://codeload.github.com/svoop/minitest-flash/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/svoop%2Fminitest-flash/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":267459569,"owners_count":24090698,"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","status":"online","status_checked_at":"2025-07-28T02:00:09.689Z","response_time":68,"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":["minitest","reporter","ruby"],"created_at":"2024-10-31T22:13:41.076Z","updated_at":"2025-07-28T07:09:23.436Z","avatar_url":"https://github.com/svoop.png","language":"Ruby","funding_links":["https://github.com/sponsors/svoop","https://donorbox.org/bitcetera"],"categories":[],"sub_categories":[],"readme":"[![Version](https://img.shields.io/gem/v/minitest-flash.svg?style=flat)](https://rubygems.org/gems/minitest-flash)\n[![Tests](https://img.shields.io/github/actions/workflow/status/svoop/minitest-flash/test.yml?style=flat\u0026label=tests)](https://github.com/svoop/minitest-flash/actions?workflow=Test)\n[![Code Climate](https://img.shields.io/codeclimate/maintainability/svoop/minitest-flash.svg?style=flat)](https://codeclimate.com/github/svoop/minitest-flash/)\n[![GitHub Sponsors](https://img.shields.io/github/sponsors/svoop.svg)](https://github.com/sponsors/svoop)\n\n# Minitest::Flash\n\nSimple Minitest reporter to indicate the result of test runs in as fancy a way you like. Here's how I like it: Flash the macOS menu bar in green or red and play a short and mutable sound effect.\n\n* [Homepage](https://github.com/svoop/minitest-flash)\n* Author: [Sven Schwyn - Bitcetera](https://bitcetera.com)\n\nThank you for supporting free and open-source software by sponsoring on [GitHub](https://github.com/sponsors/svoop) or on [Donorbox](https://donorbox.com/bitcetera). Any gesture is appreciated, from a single Euro for a ☕️ cup of coffee to 🍹 early retirement.\n\n## Install\n\nAdd the following to the \u003ctt\u003eGemfile\u003c/tt\u003e or \u003ctt\u003egems.rb\u003c/tt\u003e of your [Bundler](https://bundler.io) powered Ruby project:\n\n```ruby\ngem 'minitest-flash'\n```\n\nAnd then install the bundle:\n\n```\nbundle install\n```\n\nFinally, require this gem in your `test_helper.rb` or `spec_helper.rb`:\n\n```ruby\nrequire 'minitest/flash'\n```\n\n## Usage\n\nAfter every test run, the reporter simply invokes the `minitest-flash` executable:\n\n* `minitest-flash green` if the run passed\n* `minitest-flash red` if the run failed or has errors\n\nIt's your job to create the `minitest-flash` executable to your liking and to place it somewhere in the `PATH`.\n\nOther people might work on the same code and prefer not use `minitest-flash`. This is no problem as it won't do a thing unless a `minitest-flash` executable exists.\n\n## Example\n\nI'm on macOS and like things to be as obvious and unobtrusive as possible: Flash the menu bar either in green or red and optionally play a sound effect.\n\n![Screenshot](https://github.com/svoop/minitest-flash/raw/main/doc/screenshot.gif)\n\nHere's what my `/usr/local/bin/minitest-flash` executable looks like:\n\n```zsh\n#!/bin/zsh\n\ndeclare -A colors\ncolors[red]=bb0000\ncolors[green]=00bb00\n\nif [ -z \"$MINITEST_FLASH_NO_SOUND\" ]; then\n  mpg123 $0.d/$1.mp3 2\u003e/dev/null \u0026\nfi\n\nfor i in {1..2}; do\n  $0.d/ChangeMenuBarColor SolidColor \"$colors[$1]\" \u003e/dev/null\n  $0.d/ChangeMenuBarColor SolidColor \"000000\" \u003e/dev/null\ndone\n```\n\nAs you see, the sound effects can easily be muted with:\n\n```zsh\nexport MINITEST_FLASH_NO_SOUND=1\n```\n\nFor the above to work, you have to install `mpg123` easiest through [Homebrew](https://brew.sh/):\n\n```zsh\nbrew install mpg123\n```\n\nA few support files are also necessary, let's create the directory for them:\n\n```zsh\nsudo mkdir /usr/local/bin/minitest-flash.d\n```\n\nIn there you have to put three files:\n\n* the latest binary release of [ChangeMenuBarColor](https://github.com/igorkulman/ChangeMenuBarColor)\n* a [sound file `green.mp3`](https://github.com/svoop/minitest-flash/raw/main/doc/green.mp3) for successful runs\n* a [sound file `red.mp3`](https://github.com/svoop/minitest-flash/raw/main/doc/red.mp3) for failed or errored runs\n\n## Development\n\nTo install the development dependencies and then run the test suite:\n\n```\nbundle install\nbundle exec rake    # run tests once\nbundle exec guard   # run tests whenever files are modified\n```\n\nYou're welcome to [submit issues](https://github.com/svoop/minitest-flash/issues) and contribute code by [forking the project and submitting pull requests](https://docs.github.com/en/get-started/quickstart/fork-a-repo).\n\n## License\n\nThe gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsvoop%2Fminitest-flash","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsvoop%2Fminitest-flash","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsvoop%2Fminitest-flash/lists"}