{"_id":"@bsowens/wdio-slack-service","_rev":"1-e8a29bc3415f877157414469bc7dc62d","name":"@bsowens/wdio-slack-service","dist-tags":{"latest":"2.0.8"},"versions":{"2.0.8":{"name":"@bsowens/wdio-slack-service","version":"2.0.8","description":"WebdriverIO service for Slack Integration","author":{"name":"Carmen Mitru","email":"carmen.mitru@gmail.com"},"homepage":"https://github.com/carmenmitru/wdio-slack-service","license":"MIT","main":"src/index.js","bin":{"wdio-slack-service":"src/index.js"},"engines":{"node":">=10.0.0"},"scripts":{"build":"run-s clean compile","clean":"rimraf ./build","compile":"babel src/ -d build/ --config-file ../../babel.config.js","test":"run-s test:*","test:eslint":"eslint src test","test:unit":"jest"},"repository":{"type":"git","url":"git://github.com/carmenmitru/wdio-slack-service.git"},"keywords":["webdriverio","wdio","slack","wdio-service"],"bugs":{"url":"https://github.com/carmenmitru/wdio-slack-service/issues"},"dependencies":{"@slack/webhook":"^6.0.0","@wdio/cli":"^7.5.7","rimraf":"^3.0.0"},"publishConfig":{"access":"public"},"contributors":[{"name":"Carmen Mitru","email":"carmen.mitru@gmail.com"},{"name":"Vinod Reddy","email":"vinodkumarv8197@gmail.com"}],"gitHead":"2c0b91d95726dde597a4b5980b0b225febd3ec9b","_id":"@bsowens/wdio-slack-service@2.0.8","_nodeVersion":"10.17.0","_npmVersion":"6.11.3","dist":{"integrity":"sha512-yQFx0lsK2SdfdBIndLApsmvXNxCIIwepIOxWOQPVZkk7y+o1apngHipG592iEre9wnLdCsrRbnv+5JSIm1H4hg==","shasum":"b81ea24a2d5c191d417c318cfbb63d4465bb14ae","tarball":"https://registry.npmjs.org/@bsowens/wdio-slack-service/-/wdio-slack-service-2.0.8.tgz","fileCount":10,"unpackedSize":172360,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhQ2tpCRA9TVsSAnZWagAArLMP/jpeDcxRsTgWdMjiOz8v\nLGPDt9BBbPXugCpht0BU52eYrR7QN5E09JP0KKhumCMw9bizo7wjO7ARvOsv\ndMa65YOe2Lp5ixGV3ilrQ3ET9IQCLOfGVzpcWtjbMZO237e/PumwR3CHxz8v\nAXFznk+5dFN2JdxdxUNUB/WU8Pjg89t73FqCCvvqd68KYqYSYUpSjafUtE1f\nP+7HE3sn7V3yuaN7FcioD1t0pfxLKYv2woW7eL3DRoBdCnM2VNATdolRCt2o\nrNs27UmEBolYmsH3l5D5q2xZjlSSd/wXsdjVDzbJdvvk+UpG0dVQJbgS3HSI\nu2xd6GyDAgH8wDP0ohV8Zq8pZDlfLFcYw4DJJSOx3ZrocUg12c+KPvN1jl3x\nc/4EN1ySqd/PyQPD2NXlD0WY15l8hBOlopwhS9q43f6Dtdnde7rwoZo1lu+6\nxGU4H13qeO774EmOzLMwluvADS172R7si3IXS6FwJCJuUF3tIyBKMZ8+x8D6\nL29BmeUcltfFgYp9/Y766hydmtTRAgRK7EMsixlqurrMlDLgUwIVmL2+GA67\nGdQ1Ib+9kxD0IO0w2EjokAEd8bCCrGdsF1QnjcAGhRM2jFmdaTkarQG6qAY5\n3pAJBEtQLLvnq95dEndKN+cn9/70AHH0OYoICNfuT3g91SEEoqfCiVyzyZGC\nHpcU\r\n=OSA0\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQD4/G6j0WNVvZtRpDNKbaFifpNRjVMdPGyiLOpSJV1aiwIgYv2Jl+z+kKVx9Hz/AcrGrGzTOm+TL4CR5Lh2qSjrzdc="}]},"_npmUser":{"name":"bsowens","email":"ben@bsowens.com"},"directories":{},"maintainers":[{"name":"bsowens","email":"ben@bsowens.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/wdio-slack-service_2.0.8_1631808361169_0.07328497571103942"},"_hasShrinkwrap":false}},"time":{"created":"2021-09-16T16:06:01.099Z","2.0.8":"2021-09-16T16:06:01.368Z","modified":"2022-04-04T20:51:01.452Z"},"maintainers":[{"name":"bsowens","email":"ben@bsowens.com"}],"description":"WebdriverIO service for Slack Integration","homepage":"https://github.com/carmenmitru/wdio-slack-service","keywords":["webdriverio","wdio","slack","wdio-service"],"repository":{"type":"git","url":"git://github.com/carmenmitru/wdio-slack-service.git"},"contributors":[{"name":"Carmen Mitru","email":"carmen.mitru@gmail.com"},{"name":"Vinod Reddy","email":"vinodkumarv8197@gmail.com"}],"author":{"name":"Carmen Mitru","email":"carmen.mitru@gmail.com"},"bugs":{"url":"https://github.com/carmenmitru/wdio-slack-service/issues"},"license":"MIT","readme":"# Webdriverio Slack Service\nWebdriverio library to send test results as a slack notification/message to channels\n\n## Installation\n\nThe easiest way is to keep `wdio-slack-service` as a devDependency in your `package.json`.\n\n```json\n{\n  \"devDependencies\": {\n    \"wdio-slack-service\": \"2.0.8\"\n  }\n}\n```\n\nYou can simple do it by:\n\n```bash\nnpm install wdio-slack-service --save-dev\n```\n\nInstructions on how to install `WebdriverIO` can be found [here.](https://webdriver.io/docs/gettingstarted.html)\n\n## Configuration\n\nAt first, import the service to wdio config file `wdio.conf.js`\n\n```js\n// wdio.conf.js\nconst slack = require('wdio-slack-service');\n```\n\nIn order to use the service you need to have slack webhook url to send the notification and you need to add `slack` to your `services` array\n\nExample:\n\n```js\n// wdio.conf.js\nexport.config = {\n    // ...\n    services: [\n        [slack, {\n            webHookUrl: \"<SLACK_WEBHOOK_URL>\", // Used to post notification to a particular channel\n            notifyOnlyOnFailure: true, // Send notification only on test failure\n            messageTitle: \"<NOTIFICATION_TITLE>\" // Name of the notification\n        }]\n]\n```\n## Features\n\n- Send notification irrespective of test results\n- Send notification only on test failure\n- Support for `mocha`, `jasmine` and `cucumber`\n- Retry/Rerun tests will be logged with addional info\n- Test duration info\n- Error details\n- Cucumber scenario/step reporting\n- Browser and Version info\n\n## How it works\nFor `mocha`/`jasmine`, notification will be sent on spec level and for `cucumber`, it will be on feature level. Let's say, if you have 10 spec/feature files, you will receive 10 notifications as it is triggered in `after` hook\n\n## Options\n\nTo send a notification, you should have slack webhook url. To know how to create slack webhook URL, see this [page](https://api.slack.com/messaging/webhooks)\n\n### webHookUrl\n\nThis url is used to identity/authenticate the post message and sends it to a slack channel\n\nType: `String` <br/>\nOptional: `NO` <br/>\nDefault: `NA`\n\n### notifyOnlyOnFailure\n\nIf you want to receive slack notifications only on test failure, then set this option to `true`. Otherwise, it sends notification for all test executions irrespective of pass/fail\n\nType: `Boolean` <br/>\nOptional: `YES` <br/>\nDefault: `false`\n\n### messageTitle\n\nTitle of the notification\n\nType: `String` <br/>\nOptional: `YES` <br/>\nDefault: `Webdriverio Slack Reporter`\n\n## Screenshots\n\n### Cucumber Pass/Fail\n\n![Cucumber Pass/fail](/assets/Cucumber.PNG)\n\n### Cucumber Retry\n\n![Cucumber Retry](/assets/Cucumberretry.PNG)\n\n### All Pass\n\n![All Pass](/assets/allpass.PNG)\n\n### Fail Pass\n\n![Fail Pass](/assets/failpass.PNG)\n\n### Retry Failed\n\n![Retry Failed](/assets/retryfail.PNG)\n\n### Retry Passed\n\n![Retry Passed](/assets/retrypassed.PNG)\n\n---\n\nFor more information on WebdriverIO see the [homepage](https://webdriver.io).\n","readmeFilename":"README.md"}