{"id":13747586,"url":"https://github.com/tpope/fivemat","last_synced_at":"2025-05-16T04:06:36.954Z","repository":{"id":56846569,"uuid":"3999549","full_name":"tpope/fivemat","owner":"tpope","description":"MiniTest/RSpec/Cucumber formatter that gives each test file its own line of dots","archived":false,"fork":false,"pushed_at":"2018-07-23T19:33:07.000Z","size":34,"stargazers_count":244,"open_issues_count":4,"forks_count":21,"subscribers_count":5,"default_branch":"master","last_synced_at":"2024-05-07T02:21:44.505Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"http://rubygems.org/gems/fivemat","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/tpope.png","metadata":{"files":{"readme":"README.markdown","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}},"created_at":"2012-04-11T23:37:44.000Z","updated_at":"2024-03-26T12:16:17.000Z","dependencies_parsed_at":"2022-09-09T01:00:48.528Z","dependency_job_id":null,"html_url":"https://github.com/tpope/fivemat","commit_stats":null,"previous_names":[],"tags_count":12,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tpope%2Ffivemat","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tpope%2Ffivemat/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tpope%2Ffivemat/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tpope%2Ffivemat/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tpope","download_url":"https://codeload.github.com/tpope/fivemat/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254464895,"owners_count":22075570,"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-08-03T06:01:34.380Z","updated_at":"2025-05-16T04:06:31.946Z","avatar_url":"https://github.com/tpope.png","language":"Ruby","funding_links":[],"categories":["Ruby"],"sub_categories":[],"readme":"# Fivemat\n\nWhy settle for a test output *format* when you can have a test output\n*fivemat*?\n\nI'm tired of the two *de facto* standards for test output:\n\n1. Bunch of dots — Wait till the end to see what failed, and\n   guess the dot count to estimate progress.\n2. Extreme verbosity — See failures as they happen if you pay very,\n   very close attention.\n\nIn other words, you can choose between \"too little\" or \"too much.\"\n\nI've looked at third party alternatives, but none of them did much for\nme.  What I want is the middle ground: dots grouped by file.  Thus,\nI give you Fivemat:\n\n    DoohickeyTest ....\n    KajiggerTest .........................F...........\n      1) Failure:\n      test_isnt_actually_nil(KajiggerTest) [test/kajigger_test.rb:17]:\n      Expected nil to not be nil.\n    WhatchamacallitTest ................................................\n    WidgetTest ...E......\n      2) Error:\n      ZeroDivisionError: divided by 0\n          test/widget_test.rb:20:in `/'\n          test/widget_test.rb:20:in `test_dividing_by_1'\n\nMiniTest, RSpec, and Cucumber are supported. Here, have some sample\nCucumber output:\n\n    features/sign_in.feature ......F--........\n      no button with value or id or text 'Go' found (Capybara::ElementNotFound)\n      ./features/step_definitions/web_steps.rb:53:in `/^I press \"([^\"]*)\"$/'\n      ./features/sign_in.feature:10:in `When I press \"Log In\"'\n    features/sign_out.feature .......\n    features/sign_up.feature ...............................................\n\nEnable profiling by setting the `FIVEMAT_PROFILE` variable in the environment:\n\n    \u003e FIVEMAT_PROFILE=1 rspec --format Fivemat\n    Doohickey .... (0.27s)\n    Kajigger ..................................... (1.87s)\n\n## Usage\n\nStart by adding `gem 'fivemat'` to your `Gemfile`.\n\n### MiniTest\n\nOn MiniTest 5, it's loaded automatically as a plugin, and there's nothing else\nto do.  Otherwise, change `require 'minitest/autorun'` to\n`require 'fivemat/minitest/autorun'`.  Or with Rails, add\n`require 'fivemat/minitest'` to `test/test_helper.rb`.  If it doesn't work, you\nmay need a newer version of MiniTest. (Add `gem 'minitest'` to your Gemfile if\nit's not there already.)\n\n### RSpec\n\nAdd `--format Fivemat` to `.rspec`.\n\n### Cucumber\n\nAdd `--format Fivemat` to `cucumber.yml`.\n\n## Contributing\n\nDon't forget to include test coverage for any changes you introduce.\n(Ha! I kid! Everybody knows it's impossible to test a test library.)\n\n## License\n\nCopyright © Tim Pope. MIT License.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftpope%2Ffivemat","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftpope%2Ffivemat","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftpope%2Ffivemat/lists"}