{"id":22870887,"url":"https://github.com/percona-lab/codeceptjs-influxdbhelper","last_synced_at":"2025-08-13T15:39:47.483Z","repository":{"id":57202260,"uuid":"268428108","full_name":"Percona-Lab/codeceptjs-influxdbhelper","owner":"Percona-Lab","description":"CodeceptJS helper to collect Test Execution Metrics with the help of CodeceptJS test events ","archived":false,"fork":false,"pushed_at":"2020-06-02T15:42:57.000Z","size":5,"stargazers_count":2,"open_issues_count":0,"forks_count":2,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-05-05T22:16:54.171Z","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/Percona-Lab.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":"2020-06-01T04:52:15.000Z","updated_at":"2023-02-20T12:40:33.000Z","dependencies_parsed_at":"2022-09-17T15:00:34.544Z","dependency_job_id":null,"html_url":"https://github.com/Percona-Lab/codeceptjs-influxdbhelper","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Percona-Lab%2Fcodeceptjs-influxdbhelper","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Percona-Lab%2Fcodeceptjs-influxdbhelper/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Percona-Lab%2Fcodeceptjs-influxdbhelper/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Percona-Lab%2Fcodeceptjs-influxdbhelper/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Percona-Lab","download_url":"https://codeload.github.com/Percona-Lab/codeceptjs-influxdbhelper/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252584335,"owners_count":21771945,"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-12-13T13:16:29.872Z","updated_at":"2025-05-05T22:16:57.666Z","avatar_url":"https://github.com/Percona-Lab.png","language":"JavaScript","readme":"# codeceptjs-influxdbhelper\nCodeceptJS helper to collect Test Execution Metrics with the help of CodeceptJS test events, these metrics can be used to create test metrics dashboards.\n\n## Installation\nInstall the helper and use it with your tests.\n\n`npm i codeceptjs-influxdbhelper --save-dev`\n\n## Configuration\n\nThis helper should be added in the codeceptjs configuration file\n\nExample:\n```editorconfig\n{\n    \"helpers\": {\n        InfluxDBHelper: {\n              require: 'codeceptjs-influxdbhelper',\n              username: process.env.INFLUXDB_USERNAME || root,\n              password: process.env.INFLUXDB_PASSWORD || root,\n              host: process.env.INFLUXDB_HOST || localhost,\n              port: process.env.INFLUXDB_PORT || '8086',\n              dbname: process.env.INFLUXDB_DBNAME || 'codeceptjs',\n              measurement: process.env.INFLUXDB_MEASUREMENT || 'testMethod'\n         },\n    }\n}\n```\n## How It Works\n\nThe helper makes use of [CodeceptJS Hooks](https://codecept.io/hooks/#event-listeners) Every Scenario after the execution is complete, triggers an insertion into the influxDB.\n\nFollowing information is collected by Default:\n\n1) Test Execution Duration\n2) Test Result\n3) Test Tags\n4) Test Title\n\nThe measurement name is added right into the configuration file and field of measurement is `duration`.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpercona-lab%2Fcodeceptjs-influxdbhelper","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpercona-lab%2Fcodeceptjs-influxdbhelper","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpercona-lab%2Fcodeceptjs-influxdbhelper/lists"}