{"id":14991376,"url":"https://github.com/vittorius/rspec_flat_error_formatter","last_synced_at":"2025-04-12T03:31:48.289Z","repository":{"id":56892868,"uuid":"119427951","full_name":"vittorius/rspec_flat_error_formatter","owner":"vittorius","description":"RSpec formater that produces errors output easily consumable by automated tools","archived":false,"fork":false,"pushed_at":"2019-10-29T11:16:38.000Z","size":40,"stargazers_count":7,"open_issues_count":6,"forks_count":2,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-04-25T07:44:17.683Z","etag":null,"topics":["rspec","rspec-formatter","ruby","testing-tools"],"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/vittorius.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-01-29T19:08:57.000Z","updated_at":"2019-10-29T11:16:40.000Z","dependencies_parsed_at":"2022-08-20T16:10:35.501Z","dependency_job_id":null,"html_url":"https://github.com/vittorius/rspec_flat_error_formatter","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vittorius%2Frspec_flat_error_formatter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vittorius%2Frspec_flat_error_formatter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vittorius%2Frspec_flat_error_formatter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vittorius%2Frspec_flat_error_formatter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/vittorius","download_url":"https://codeload.github.com/vittorius/rspec_flat_error_formatter/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248512762,"owners_count":21116674,"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":["rspec","rspec-formatter","ruby","testing-tools"],"created_at":"2024-09-24T14:27:36.362Z","updated_at":"2025-04-12T03:31:48.064Z","avatar_url":"https://github.com/vittorius.png","language":"Ruby","readme":"# WARNING\n\nUnfortunately, this gem is discontinued and won't get any support from me anymore :unamused:. Thanks for the attention.\n\n# RspecFlatErrorFormatter\n\n[![Build Status](https://travis-ci.org/vittorius/rspec_flat_error_formatter.svg?branch=master)](https://travis-ci.org/vittorius/rspec_flat_error_formatter)\n\nRSpec formater that produces errors output easily consumable by automated tools\n\n## Rationale\n\nInitially, this tool came out as an attempt to use the [Visual Studio Code tasks](https://code.visualstudio.com/docs/editor/tasks) for running the RSpec and scanning its output to locate and test the failing specs very quickly. VS Code offers the mechanism of [problem matchers](https://code.visualstudio.com/docs/editor/tasks#_defining-a-problem-matcher) that are, in fact, regular expressions to filter the output of a task line by line and feed the extracted info to the Problems view.\n\n## Requirements\n\nThe following **MRI** Ruby versions are officially supported:\n\n* 2.1\n* 2.2\n* 2.3\n* 2.4\n* 2.5\n\nAlthough it's not recommended to use 2.1 or 2.2 as their support period has ended. The are no plans to support JRuby or Rubinius for now. But if the community has a strong request for it, it will likely be added.\n\n## Installation\n\nAdd this line to your application's Gemfile:\n\n```ruby\ngem 'rspec_flat_error_formatter'\n```\n\nAnd then execute:\n\n    $ bundle\n\nOr install it yourself as:\n\n    $ gem install rspec_flat_error_formatter\n\n## Usage\n\n### Basic\n\nPass as a value of the `--format` (or `-f`) option to the RSpec:\n\n    $ bundle exec rspec --format RSpecFlatErrorFormatter\n\n\nOr add as to the default set of options via `.rspec` file:\n\n```\n--format RSpecFlatErrorFormatter\n```\n\nNow run the tests as usual:\n\n    $ bundle exec rspec\n\nAfter you've configured the formatter to be used by RSpec, you can consume its output by the tools you have to automate your test results navigation.\n\n### VS Code tasks\n\nHere's an example of configuring `rspec` and `guard-rspec` using VS Code tasks to consume the output of RspecFlatErrorFormatter.\n\nCreate a `.vscode` dir under your project or workspace dir. Then, create a `tasks.json` file under it with the following contents:\n\n```json5\n{\n  \"version\": \"2.0.0\",\n  \"tasks\": [\n    // rspec\n    {\n      \"label\": \"rspec\",\n      \"type\": \"shell\",\n      \"command\": \"rspec\",\n      \"group\": \"test\",\n      \"presentation\": {\n        \"echo\": true,\n        \"reveal\": \"always\"\n      },\n      \"problemMatcher\": {\n        \"fileLocation\": [\"relative\", \"${workspaceFolder}\"],\n        \"pattern\": {\n          \"regexp\": \"^(\\\\./.*?\\\\.rb):(\\\\d+?):\\\\s(error|info):\\\\s(.*)$\",\n          \"file\": 1,\n          \"line\": 2,\n          \"severity\": 3,\n          \"message\": 4\n        }\n      }\n    },\n    // guard-rspec\n    {\n      \"label\": \"guard\",\n      \"type\": \"shell\",\n      \"command\": \"bundle exec guard\",\n      \"presentation\": {\n        \"echo\": true,\n        \"reveal\": \"always\",\n        \"panel\": \"dedicated\"\n      },\n      \"isBackground\": true,\n      \"problemMatcher\": {\n        \"fileLocation\": [\"relative\", \"${workspaceFolder}\"],\n        \"pattern\": {\n          \"regexp\": \"^(\\\\./.*?\\\\.rb):(\\\\d+?):\\\\s(error|info):\\\\s(.*)$\",\n          \"file\": 1,\n          \"line\": 2,\n          \"severity\": 3,\n          \"message\": 4\n        },\n        \"background\": {\n          \"activeOnStart\": true,\n          \"beginsPattern\": \"^\\\\d{2}:\\\\d{2}:\\\\d{2} - INFO - Running\",\n          \"endsPattern\": \"^Randomized with\"\n        }\n      }\n    }\n  ]\n}\n\n```\n\n## Development\n\nAfter checking out the repo, run `bundle exec rake spec` to run the tests.\n\nTo release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).\n\n## Contributing\n\nBug reports and pull requests are welcome on GitHub at https://github.com/vittorius/rspec_flat_error_formatter.\n\n## License\n\nThe gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).\n\n## Kudos\n\n* [@sj26](https://github.com/sj26) for his beautiful [rspec_junit_formatter](https://github.com/sj26/rspec_junit_formatter) - tests organization and some other stuff in repo are under the huge influence of RSpec JUnit Formatter repo\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvittorius%2Frspec_flat_error_formatter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvittorius%2Frspec_flat_error_formatter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvittorius%2Frspec_flat_error_formatter/lists"}