{"id":15062100,"url":"https://github.com/btd/mocha-better-spec-reporter","last_synced_at":"2025-04-10T09:54:47.807Z","repository":{"id":14315224,"uuid":"17024240","full_name":"btd/mocha-better-spec-reporter","owner":"btd","description":"Just a fork of mocha spec reporter, but with small goodies","archived":false,"fork":false,"pushed_at":"2017-06-11T22:35:32.000Z","size":34,"stargazers_count":34,"open_issues_count":0,"forks_count":12,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-24T08:48:24.407Z","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":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/btd.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}},"created_at":"2014-02-20T15:07:11.000Z","updated_at":"2023-08-19T18:44:08.000Z","dependencies_parsed_at":"2022-08-19T21:22:32.715Z","dependency_job_id":null,"html_url":"https://github.com/btd/mocha-better-spec-reporter","commit_stats":null,"previous_names":[],"tags_count":14,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/btd%2Fmocha-better-spec-reporter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/btd%2Fmocha-better-spec-reporter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/btd%2Fmocha-better-spec-reporter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/btd%2Fmocha-better-spec-reporter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/btd","download_url":"https://codeload.github.com/btd/mocha-better-spec-reporter/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248198842,"owners_count":21063626,"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-09-24T23:30:19.931Z","updated_at":"2025-04-10T09:54:47.781Z","avatar_url":"https://github.com/btd.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"mocha-better-spec-reporter\n==========================\n\nOriginally it was fork for mocha own spec reporter, but it is very inconvenient to use.\n\nWhy i made fork:\n  * It is possible to hide/show any part of report\n  * It is possible to see where error happen - not only stack line but also relevant file content\n  * It supports source maps\n  * It does not show useless stack lines\n\n## Env variables usage\n\nIt is possible to hide additional stack traces via env variable `MOCHA_REPORTER_STACK_EXCLUDE` as glob string.\n\n`**/yadda/lib/**` - will hide all of the yadda stack traces\n\nIt is possible to hide some parts of output via env variable `MOCHA_REPORTER_OPTS`.\n\n`hide-titles` - will hide execution tests/suites titles\n\n`hide-stats` - will hide stat\n\n`clear-screen` - will clear the screen on start\n\n`show-back-order` - will show fails in back order\n\n## Command line usage\n\nAlso it is possible to set this parameters with mocha command line option `--reporter-options`, e.g:\n```\nmocha -R ../../../ --reporter-options hide-stats=true,hide-titles=true test.js\n```\n\nYou need to set options in such format A=B,C=D.... Options are:\n\n`hide-titles` accepted values `true`|`false` - show/hide executed test/suites titles (default `false`)\n\n`hide-stats` accepted values `true`|`false` - show/hide executed tests statistic (default `false`)\n\n`clear-screen` accepted values `true`|`false` - clear the screen before executing tests (default `false`)\n\n`show-back-order` accepted values `true`|`false` - test fails shown in back order, so first fail will be at the bottom (default `true`)\n\n`stack-exclude` any glob string, used to match stack trace files for exclude\n\n`show-file-content` it can be `js` or `js+sm` or `sm`, meaning what to show if  available (sm - source-mapped files, js - actual files) by default it is `sm`\n\nHow to use\n=======\n\n```\nnpm install --save-dev mocha-better-spec-reporter\n```\n\n```\nmocha --reporter mocha-better-spec-reporter ... # and other options there\nmocha -R mocha-better-spec-reporter --reporter-options hide-stats=true,hide-titles=true ...\n```\n\nScreenshot\n==========\n![screenshot](https://cloud.githubusercontent.com/assets/334851/4676893/a6951042-55e0-11e4-812d-04fe09241d6a.png)\n\nWindows Users Note\n==================\n\nThis reporter uses `chalk` for colors, which works very bad in windows environment (usually it just disable colors). If you are sure your terminal supports ansi colors (git for windows, cygwin, cmder, mingw/mingw64 etc)  you can force `chalk` to output colors with adding `--color` option to your argv. Also you can set env variable `FORCE_COLOR` to any value. \n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbtd%2Fmocha-better-spec-reporter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbtd%2Fmocha-better-spec-reporter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbtd%2Fmocha-better-spec-reporter/lists"}