{"name":"@wdio/spec-reporter","version":"9.4.2","keywords":["webdriver","wdio","wdio-reporter"],"author":"Christian Bromann <mail@bromann.dev>","license":"MIT","_id":"@wdio/spec-reporter@9.4.2","maintainers":[{"name":"christian-bromann","email":"mail@bromann.dev"},{"name":"wdio-user","email":"bot@webdriver.io"},{"name":"wswebcreation-nl","email":"wim@wswebcreation.nl"}],"homepage":"https://github.com/webdriverio/webdriverio/tree/main/packages/wdio-spec-reporter","bugs":{"url":"https://github.com/webdriverio/webdriverio/issues"},"dist":{"shasum":"9d3cfee3e3c0eb6c507d337a3d668f30e3f24aec","tarball":"http://registry-npm.ywwl.com/@wdio/spec-reporter/download/@wdio/spec-reporter-9.4.2.tgz","fileCount":10,"integrity":"sha512-AKd7xajCFHEyuxVk2nZey9OSy29JOllb4qleQuTQpM8NIf6RxqLPqV3bNfzzpPjryO55qrykTUU//+7s4OcK2Q==","signatures":[{"sig":"MEYCIQCamA+p3/jzEaRcvsbJ0bPGGizLaLFOeDl8rX69NPgYzwIhAP6HXEuxm8pGiDV6KefCNbZBDlSBhoKwPNlL89LaKbEf","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":36746,"size":10555,"noattachment":false,"key":"/@wdio/spec-reporter/-/@wdio/spec-reporter-9.4.2.tgz"},"type":"module","types":"./build/index.d.ts","engines":{"node":">=18.20.0"},"exports":{".":{"types":"./build/index.d.ts","import":"./build/index.js"}},"gitHead":"e42d3e8d6958fd9a734fe1d9a9768357b6045893","_npmUser":{"name":"wdio-user","email":"bot@webdriver.io"},"repository":{"url":"git+https://github.com/webdriverio/webdriverio.git","type":"git","directory":"packages/wdio-spec-reporter"},"_npmVersion":"lerna/8.1.9/node@v20.11.1+x64 (linux)","description":"A WebdriverIO plugin to report in spec style","directories":{},"_nodeVersion":"20.11.1","dependencies":{"chalk":"^5.1.2","pretty-ms":"^9.0.0","easy-table":"^1.2.0","@wdio/types":"9.4.2","@wdio/reporter":"9.4.2"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"typeScriptVersion":"3.8.3","_npmOperationalInternal":{"tmp":"tmp/spec-reporter_9.4.2_1734022311598_0.8067054117313766","host":"s3://npm-registry-packages-npm-production"},"readme":"WDIO Spec Reporter\n==================\n\n> A WebdriverIO plugin to report in spec style.\n\n![Spec Reporter](/img/spec.png \"Spec Reporter\")\n\n## Installation\n\nThe easiest way is to keep `@wdio/spec-reporter` as a devDependency in your `package.json`, via:\n\n```sh\nnpm install @wdio/spec-reporter --save-dev\n```\n\nInstructions on how to install `WebdriverIO` can be found [here](https://webdriver.io/docs/gettingstarted).\n\n## Configuration\n\nThe following code shows the default wdio test runner configuration. Just add `'spec'` as a reporter\nto the array.\n\n```js\n// wdio.conf.js\nmodule.exports = {\n  // ...\n  reporters: ['dot', 'spec'],\n  // ...\n};\n```\n\n## Spec Reporter Options\n### symbols\n\n<Option type=\"object\" default={`{passed: '✓', skipped: '-', failed: '✖'}`}>\n\nProvide custom symbols for `passed`, `failed` and or `skipped` tests\n\n</Option>\n\n#### Example\n```js\n[\n  \"spec\",\n  {\n    symbols: {\n      passed: '[PASS]',\n      failed: '[FAIL]',\n    },\n  },\n]\n```\n\n### sauceLabsSharableLinks\n\n<Option type=\"boolean\" default=\"true\">\n\nBy default the test results in Sauce Labs can only be viewed by a team member from the same team, not by a team member\nfrom a different team. This options will enable [sharable links](https://docs.saucelabs.com/test-results/sharing-test-results/#building-sharable-links)\nby default, which means that all tests that are executed in Sauce Labs can be viewed by everybody.\nJust add `sauceLabsSharableLinks: false`, as shown below, in the reporter options to disable this feature.\n\n</Option>\n\n#### Example\n```js\n[\n  \"spec\",\n  {\n    sauceLabsSharableLinks: false,\n  },\n]\n```\n\n### onlyFailures\n\n<Option type=\"boolean\" default=\"false\">\n\nPrint only failed specs results.\n\n</Option>\n\n#### Example\n```js\n[\n  \"spec\",\n  {\n    onlyFailures: true,\n  },\n]\n```\n\n### addConsoleLogs\n\n<Option type=\"boolean\" default=\"false\">\n\nSet to `true` to show console logs from steps in final report\n\n</Option>\n```js\n[\n  \"spec\",\n  {\n    addConsoleLogs: true,\n  },\n]\n```\n\n### realtimeReporting\n\n<Option type=\"boolean\" default=\"false\">\n\nSet to `true` to display test status realtime than just at the end of the run\n\n</Option>\n```js\n[\n  \"spec\",\n  {\n    realtimeReporting: true,\n  },\n]\n```\n\n### showPreface\n\n<Option type=\"boolean\" default=\"true\">\n\nSet to `false` to disable `[ MutliRemoteBrowser ... ]` preface in the reports.\n\n</Option>\n```js\n[\n  \"spec\",\n  {\n    showPreface: false,\n  },\n]\n```\n\nWith it set to `false` you will see output as:\n```\nRunning: loremipsum (v50) on Windows 10\nSession ID: foobar\n\n» foo/bar/loo.e2e.js\nFoo test\n   green ✓ foo\n   green ✓ bar\n\n» bar/foo/loo.e2e.js\nBar test\n   green ✓ some test\n   red ✖ a failed test\n   red ✖ a failed test with no stack\n```\n\nand with `true` (default) each line will be prefixed with the preface:\n```\n[loremipsum 50 Windows 10 #0-0] Running: loremipsum (v50) on Windows 10\n[loremipsum 50 Windows 10 #0-0] Session ID: foobar\n[loremipsum 50 Windows 10 #0-0]\n[loremipsum 50 Windows 10 #0-0] » foo/bar/loo.e2e.js\n[loremipsum 50 Windows 10 #0-0] Foo test\n[loremipsum 50 Windows 10 #0-0]    green ✓ foo\n[loremipsum 50 Windows 10 #0-0]    green ✓ bar\n[loremipsum 50 Windows 10 #0-0]\n[loremipsum 50 Windows 10 #0-0] » bar/foo/loo.e2e.js\n[loremipsum 50 Windows 10 #0-0] Bar test\n[loremipsum 50 Windows 10 #0-0]    green ✓ some test\n[loremipsum 50 Windows 10 #0-0]    red ✖ a failed test\n[loremipsum 50 Windows 10 #0-0]    red ✖ a failed test with no stack\n[loremipsum 50 Windows 10 #0-0]\n```\n\n### color\n\n<Option type=\"boolean\" default=\"true\">\n\nSet to `true` to display colored output in terminal\n\n</Option>\n```js\n[\n  \"spec\",\n  {\n    color: true,\n  },\n]\n```\n\n## Environment Options\n\nThere are certain options you can set through environment variables:\n\n### `FORCE_COLOR`\n\nIf set to true, e.g. via `FORCE_COLOR=0 npx wdio run wdio.conf.js`, all terminal coloring will be disabled.\n\n\n","publish_time":1734022311779,"_cnpm_publish_time":1734022311779,"dist-tags":{"beta":"7.0.0-beta.4","latest":"10.2.0","latest-5":"5.23.0","next":"10.2.0-alpha.100.sha-b38abd894","v7":"7.40.0","v8":"8.43.0","v9":"9.33.1"}}