{"name":"@cucumber/pretty-formatter","version":"1.0.0-alpha.2","license":"MIT","_id":"@cucumber/pretty-formatter@1.0.0-alpha.2","maintainers":[{"name":"aslakhellesoy","email":"aslak.hellesoy@gmail.com"},{"name":"cukebot","email":"cukebot@cucumber.io"}],"contributors":[{"name":"Ilya Kozhevnikov","email":"git@kozhevnikov.com"},{"name":"Julien Biezemans","email":"jb@jbpros.com"}],"homepage":"https://github.com/jbpros/cucumber-pretty-formatter#readme","bugs":{"url":"https://github.com/jbpros/cucumber-pretty-formatter/issues"},"dist":{"shasum":"929d29b45f2fa9b7d36e4371e8dd0869e9f32f52","tarball":"http://registry-npm.ywwl.com/@cucumber/pretty-formatter/download/@cucumber/pretty-formatter-1.0.0-alpha.2.tgz","fileCount":19,"integrity":"sha512-+tFbS2idJ8yL+saEYGBaJLkhU9glxmS6FMD22S/bfZsi/c3LeLMeo1ZkNeyzuxV7Yq9jGFjiwgZ+iRaO/bN8hw==","signatures":[{"sig":"MEYCIQCZeJEmUiAxqiApCeIJWvvB5QSLBMqqlcPTVeg7+dQ1DgIhANLs4HnDltrBLgsUaVNtqEEsRQFtX+l2PS0eLRf9qL5h","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":39311,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiL3C5ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmojcQ/+JxdKS47ZiNOgLtF5YzT1xwc63B+834ni2Ai1g99Yg4MGZabg\r\n9FJqi4+1yWCE0jWmBYI6MLG1f+J2ltpmwY4yVfGLsfgrH7t9EN05PaCUKLBh\r\nh+Ls6YW46ozVNfXSJ5EqRQvvuKkvMHVnZQMZm+XSZ96sZKqcW6ZIbdZ5dnaV\r\n4ACrvhyaxtdUl6nAfeXbkAJCt/xXDZQc6z/xItf025cwp8vsVRK3Gk8Xn9WB\r\nRNQ6Idx91M3UOGyKNdxmB+ZeGd1Ef4Oa8ePzJ+ODJ6NTyO+Qrq4/inc5fDkv\r\nWMwpwFCf8OgIEo4zCqxMHY1OI12Q0+9AP+KtWuejhD4X1hLZ3y6vrvDmNqgf\r\nDGHo2VGJIi5fGYf9ApahqsTsB8qvCshdX8MuzGmNV55pg7Q+VXK72iUArwLq\r\norZpDEhwcP5eIDjc35sUA4b5hSg3s+MHM9Tsg7CvUi5yZoNj3MY6DKiLIK7T\r\n84BsDo6ki02IPZgr/Acm6/S+AjRwF9cAU+ajrNIPxp0WOSPf4Sx6MmAgIEmF\r\nE8GVYpwnH8WLFJejNYStZ6/1iBs8FH00Jf04X6SgPKzm/GOQHcT47INKLdzW\r\ndz9MllaGHjZOXISYjLHwfwFhYOwhFwrK91NDprRIk4kFU3LH74HnY6jnwrL0\r\n5vSpK1037XB9xaLCVBOaOqSSsVXuEBKQHCY=\r\n=caKN\r\n-----END PGP SIGNATURE-----\r\n","size":10430,"noattachment":false,"key":"/@cucumber/pretty-formatter/-/@cucumber/pretty-formatter-1.0.0-alpha.2.tgz"},"main":"lib/src/index.js","types":"lib/src/index.d.ts","gitHead":"21e4fc15097fee36d45f836740a66f74a51ab218","scripts":{"lint":"eslint \"src/**/*.ts\" \"test/**/*.ts\"","test":"npm run build && npm run test:mocha","build":"tsc -p tsconfig.node.json","lint:fix":"eslint --fix \"src/**/*.ts\" \"test/**/*.ts\"","test:mocha":"mocha","build:clean":"rm -rf lib","build:watch":"tsc -p tsconfig.node.json --watch","test:nobuild":"npm run test:mocha","build:release":"npm run build && npm run test:nobuild && npm run build:clean:tests","test:mocha:wip":"mocha -g wip","build:clean:tests":"find lib/src -type f -name '*.spec.*' -exec rm {} +","update-dependencies":"npx npm-check-updates --upgrade --dep prod,dev,optional,bundle","test:mocha:wip:watch":"mocha -w -g wip"},"_npmUser":{"name":"cukebot","email":"cukebot@cucumber.io"},"repository":{"url":"git+https://github.com/jbpros/cucumber-pretty-formatter.git","type":"git"},"_npmVersion":"8.4.0","description":"Official Cucumber.js Pretty Formatter","directories":{"lib":"lib"},"_nodeVersion":"14.17.3","dependencies":{"figures":"^3.2.0","ts-dedent":"^2.0.0","cli-table3":"^0.6.0","ansi-styles":"^5.0.0"},"_hasShrinkwrap":false,"devDependencies":{"mocha":"^8.2.1","eslint":"^7.17.0","should":"^13.2.3","prettier":"^2.2.1","typescript":"^4.1.3","@types/node":"^14.14.20","@types/mocha":"^8.2.0","@cucumber/cucumber":"^7.3.0","@cucumber/messages":"^16.0.1","eslint-plugin-import":"^2.22.1","eslint-config-prettier":"^7.1.0","eslint-plugin-prettier":"^3.3.1","@typescript-eslint/parser":"^4.12.0","@typescript-eslint/eslint-plugin":"^4.12.0"},"peerDependencies":{"@cucumber/cucumber":">=7.0.0","@cucumber/messages":"*"},"_npmOperationalInternal":{"tmp":"tmp/pretty-formatter_1.0.0-alpha.2_1647276217720_0.2849031300948053","host":"s3://npm-registry-packages"},"readme":"<h1 align=\"center\">\n  <img alt=\"\" width=\"75\" src=\"https://github.com/cucumber.png\"/>\n  <br>\n  pretty-formatter\n</h1>\n<p align=\"center\">\n  <b>Rich formatting of Cucumber progress and results for the terminal</b>\n</p>\n\n<p align=\"center\">\n  <a href=\"https://www.npmjs.com/package/@cucumber/pretty-formatter\" style=\"text-decoration: none\"><img src=\"https://img.shields.io/npm/v/@cucumber/pretty-formatter?style=flat&color=dark-green\" alt=\"Latest version on npm\"></a>\n  <a href=\"https://github.com/cucumber/pretty-formatter/actions\" style=\"text-decoration: none\"><img src=\"https://github.com/cucumber/pretty-formatter/actions/workflows/test-javascript.yaml/badge.svg\" alt=\"Build status\"></a>\n</p>\n\n![Example output of the pretty formatting, showing the different colors used](../screenshots/all-statuses.cucumber.pretty.png)\n\n## Usage\n\nThis package is used internally in `@cucumber/cucumber` to provide the `summary`, `progress` and `pretty` formatters; you don't need to install or manage it yourself.\nFor usage, see https://github.com/cucumber/cucumber-js/blob/main/docs/formatters.md.\n\nYou can use these low-level classes to provide formatting for a different implementation of Cucumber.\n\n### SummaryPrinter\n\nPrints a summary of test results including non-passing scenarios, statistics, and snippets.\n\n```typescript\nimport { SummaryPrinter } from '@cucumber/pretty-formatter'\n\nconst printer = new SummaryPrinter()\n\n// each time a message is emitted\nprinter.update(envelope)\n```\n\nCan also be used to summarise a test run that already happened, with a pre-populated `Query` object:\n\n```typescript\nimport { Query } from '@cucumber/query'\nimport { SummaryPrinter } from '@cucumber/pretty-formatter'\n\nconst query = new Query()\n\n// each time a message is emitted\nquery.update(envelope)\n\n// later\nSummaryPrinter.summarise(query)\n```\n\n### ProgressPrinter\n\nPrints test progress as single-character status indicators.\n\n```typescript\nimport { ProgressPrinter } from '@cucumber/pretty-formatter'\n\nconst printer = new ProgressPrinter()\n\n// each time a message is emitted\nprinter.update(envelope)\n```\n\n### PrettyPrinter\n\nPrints test progress in a prettified Gherkin-style format.\n\n```typescript\nimport { PrettyPrinter } from '@cucumber/pretty-formatter'\n\nconst printer = new PrettyPrinter()\n\n// each time a message is emitted\nprinter.update(envelope)\n```\n\n### Themes\n\nHere's the schema for a theme:\n\n```ts\ninterface Theme {\n    attachment?: Style\n    dataTable?: {\n        all?: Style\n        border?: Style\n        content?: Style\n    }\n    docString?: {\n        all?: Style\n        content?: Style\n        delimiter?: Style\n        mediaType?: Style\n    }\n    feature?: {\n        all?: Style\n        keyword?: Style\n        name?: Style\n    }\n    location?: Style\n    rule?: {\n        all?: Style\n        keyword?: Style\n        name?: Style\n    }\n    scenario?: {\n        all?: Style\n        keyword?: Style\n        name?: Style\n    }\n    status?: {\n        all?: Partial<Record<TestStepResultStatus, Style>>\n        icon?: Partial<Record<TestStepResultStatus, string>>\n        progress?: Partial<Record<TestStepResultStatus, string>>\n    }\n    step?: {\n        argument?: Style\n        keyword?: Style\n        text?: Style\n    }\n    tag?: Style\n    symbol?: {\n        bullet?: string\n    }\n}\n\nenum TestStepResultStatus {\n    UNKNOWN = \"UNKNOWN\",\n    PASSED = \"PASSED\",\n    SKIPPED = \"SKIPPED\",\n    PENDING = \"PENDING\",\n    UNDEFINED = \"UNDEFINED\",\n    AMBIGUOUS = \"AMBIGUOUS\",\n    FAILED = \"FAILED\"\n}\n```\n\n`Style` is any [Node.js supported modifier](https://nodejs.org/api/util.html#modifiers) or an array of them.\n\nSee the [default theme](./src/theme.ts) for a good example. It's exported as `CUCUMBER_THEME`, so you can clone and extend it if you'd like.","publish_time":1647276217886,"_cnpm_publish_time":1647276217886,"dist-tags":{"latest":"4.1.0"}}