{"id":14967418,"url":"https://github.com/arociris/mocha-splunk","last_synced_at":"2026-01-24T02:37:34.381Z","repository":{"id":43887606,"uuid":"442381015","full_name":"arociris/mocha-splunk","owner":"arociris","description":"this repo hosts the code for mocha test reporter for splunk","archived":false,"fork":false,"pushed_at":"2022-03-04T09:45:33.000Z","size":145,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-05-03T11:36:16.927Z","etag":null,"topics":["automation","mocha","mocha-chai","mocha-reporter","mocha-splunk","mocha-tests","mochajs","reporter","splunk"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/arociris.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":"2021-12-28T07:11:10.000Z","updated_at":"2022-08-26T04:23:02.000Z","dependencies_parsed_at":"2022-08-25T12:52:15.263Z","dependency_job_id":null,"html_url":"https://github.com/arociris/mocha-splunk","commit_stats":null,"previous_names":["jain-neeeraj/mocha-splunk"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arociris%2Fmocha-splunk","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arociris%2Fmocha-splunk/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arociris%2Fmocha-splunk/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arociris%2Fmocha-splunk/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/arociris","download_url":"https://codeload.github.com/arociris/mocha-splunk/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254094854,"owners_count":22013649,"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":["automation","mocha","mocha-chai","mocha-reporter","mocha-splunk","mocha-tests","mochajs","reporter","splunk"],"created_at":"2024-09-24T13:38:01.886Z","updated_at":"2026-01-24T02:37:34.352Z","avatar_url":"https://github.com/arociris.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# mocha-splunk\n\nThis is a reporter for Mocha to log test results to Splunk. \n\n**Installation**  \n    To install run `npm install mocha-splunk`\n\n**Usage**  \nThis reporter will log below mentioned information to splunk\n1. Test run number\n2. Git branch\n3. Test duration\n4. Test title\n5. Test result\n6. Additional debug information\nTo use this in your Mocha tests, update your run command to use Mocha-Splunk reporter as below:\n`mocha --reporter mocha-splunk --reporter-options \u003coptions\u003e testfiles.js`\n \n To use the reporter, below is list of reporter options that needs to be setup\n\n| Option | Required |Description |\n|--|--|--|\n|  run_no | No| Test run number / build number|\n|  test_env| No| Test environment e.g. QA/UAT |\n|  git_branch| No| Git branch under test|\n|  splunk_host| Yes | Splunk host name e.g. splunk.com:8088|\n|  splunk_url| No| URL for event collector e.g. /services/collector|\n|  splunk_token| Yes | Splunk HTTP token|\n|  debug| No| print debug information from the reporter |\n|  useProcessVar|No| Whether to read options from environment variables|\n\nMake sure to providing values mandatory options as outlined in above table to make sure smooth reporting on slack\n\n**Quering splunk**  \nIn the new search, mention your index and source type as http event. This will list your test results\n![image](https://user-images.githubusercontent.com/31276396/147637937-a963e85e-3aa2-494d-953c-697f548fb93d.png)\n\nNote: This reporter is based on [mochawesome](https://github.com/adamgruber/mochawesome). Many thanks to the maintainers. \n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Farociris%2Fmocha-splunk","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Farociris%2Fmocha-splunk","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Farociris%2Fmocha-splunk/lists"}