{"id":19633258,"url":"https://github.com/quipper/datadog-test-report-action","last_synced_at":"2025-02-26T21:21:06.493Z","repository":{"id":218336200,"uuid":"746167599","full_name":"quipper/datadog-test-report-action","owner":"quipper","description":"Send test reports to Datadog in GitHub Actions","archived":false,"fork":false,"pushed_at":"2025-02-25T00:58:39.000Z","size":15996,"stargazers_count":1,"open_issues_count":2,"forks_count":0,"subscribers_count":5,"default_branch":"main","last_synced_at":"2025-02-25T01:32:13.934Z","etag":null,"topics":["datadog","github-actions","junit-xml-reports"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/quipper.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-01-21T09:11:41.000Z","updated_at":"2025-02-25T00:58:41.000Z","dependencies_parsed_at":"2024-05-20T21:30:58.459Z","dependency_job_id":"337fbbcb-3eb4-49e4-ac77-1128713d2ebf","html_url":"https://github.com/quipper/datadog-test-report-action","commit_stats":null,"previous_names":["int128/datadog-test-report-action","quipper/datadog-test-report-action"],"tags_count":35,"template":false,"template_full_name":"int128/typescript-action","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/quipper%2Fdatadog-test-report-action","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/quipper%2Fdatadog-test-report-action/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/quipper%2Fdatadog-test-report-action/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/quipper%2Fdatadog-test-report-action/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/quipper","download_url":"https://codeload.github.com/quipper/datadog-test-report-action/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240935585,"owners_count":19881169,"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":["datadog","github-actions","junit-xml-reports"],"created_at":"2024-11-11T12:16:49.829Z","updated_at":"2025-02-26T21:21:06.467Z","avatar_url":"https://github.com/quipper.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# datadog-test-report-action [![ts](https://github.com/quipper/datadog-test-report-action/actions/workflows/ts.yaml/badge.svg)](https://github.com/quipper/datadog-test-report-action/actions/workflows/ts.yaml)\n\nThis is an action to send test report to Datadog.\nIt supports the JUnit XML format.\n\n## Getting Started\n\nTo send the test report to Datadog,\n\n```yaml\njobs:\n  test:\n    runs-on: ubuntu-latest\n    steps:\n      - run: yarn test\n      - uses: quipper/datadog-test-report-action@v1\n        with:\n          junit-xml-path: '**/junit.xml'\n```\n\n## Metrics\n\nAll metrics have the following tags:\n\n- `repository_owner`\n- `repository_name`\n- `workflow_name`\n\n### `testreport.testsuite.count` (count)\n\nThis metric represents the number of test suites.\nIt has the following tags:\n\n- `testsuite_name`\n\n### `testreport.testsuite.duration` (distribution)\n\nThis metric represents the duration of test suites in seconds.\nIt has the following tags:\n\n- `testsuite_name`\n\n### `testreport.testcase.success_count` (count)\n\nThis metric represents the number of succeeded test cases.\nIt has the following tags:\n\n- `testcase_name`\n- `testcase_classname`\n- `testcase_file`\n\nThis actions sends **only failed test cases by default**.\nYou can set `send-test-case-success` to send all test cases.\n:warning: It may increase the custom metrics cost.\n\n```yaml\n- uses: quipper/datadog-test-report-action@v1\n  with:\n    junit-xml-path: '**/junit.xml'\n    send-test-case-success: true\n```\n\n### `testreport.testcase.failure_count` (count)\n\nThis metric represents the number of failed test cases.\nIt has the following tags:\n\n- `testcase_name`\n- `testcase_classname`\n- `testcase_file`\n\n### `testreport.testcase.duration` (distribution)\n\nThis metric represents the duration of test cases in seconds.\nIt has the following tags:\n\n- `testcase_name`\n- `testcase_conclusion` (`success` or `failure`)\n- `testcase_classname`\n- `testcase_file`\n\nThis action sends test cases **slower than 1 second by default**.\nYou can set `filter-test-case-slower-than` to send all test cases.\n:warning: It may increase the custom metrics cost.\n\n```yaml\n- uses: quipper/datadog-test-report-action@v1\n  with:\n    junit-xml-path: '**/junit.xml'\n    filter-test-case-slower-than: 0\n```\n\n## Specification\n\n### Inputs\n\n| Name                           | Default      | Description                                              |\n| ------------------------------ | ------------ | -------------------------------------------------------- |\n| `junit-xml-path`               | (required)   | Glob pattern to the JUnit XML file(s)                    |\n| `metric-name-prefix`           | `testreport` | Prefix of the name of metrics                            |\n| `filter-test-case-slower-than` | 1            | Filter test cases slower than the threshold (in seconds) |\n| `enable-metrics`               | true         | If false, do not send the metrics to Datadog             |\n| `send-test-case-success`       | false        | Send succeeded test cases                                |\n| `send-test-case-failure`       | true         | Send failed test cases                                   |\n| `datadog-api-key`              | -            | Datadog API key                                          |\n| `datadog-site`                 | -            | Datadog site                                             |\n| `datadog-tags`                 | -            | Datadog tags                                             |\n\n### Outputs\n\nNone.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fquipper%2Fdatadog-test-report-action","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fquipper%2Fdatadog-test-report-action","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fquipper%2Fdatadog-test-report-action/lists"}