https://github.com/datadog/datadog-ci-rb
Ruby library for Datadog Test Optimization
https://github.com/datadog/datadog-ci-rb
ci datadog observability ruby selective-testing test-impact-analysis testing testing-tools
Last synced: about 1 year ago
JSON representation
Ruby library for Datadog Test Optimization
- Host: GitHub
- URL: https://github.com/datadog/datadog-ci-rb
- Owner: DataDog
- License: other
- Created: 2023-03-15T12:37:51.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2025-04-20T00:37:05.000Z (about 1 year ago)
- Last Synced: 2025-04-20T01:27:51.966Z (about 1 year ago)
- Topics: ci, datadog, observability, ruby, selective-testing, test-impact-analysis, testing, testing-tools
- Language: Ruby
- Homepage: https://docs.datadoghq.com/tests/setup/ruby/?tab=cloudciprovideragentless
- Size: 4.15 MB
- Stars: 13
- Watchers: 4
- Forks: 6
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
- Codeowners: CODEOWNERS
Awesome Lists containing this project
README
# Datadog Test Optimization for Ruby
[](https://badge.fury.io/rb/datadog-ci)
[](https://datadoghq.dev/datadog-ci-rb/)
Datadog's Ruby Library for instrumenting your tests.
Learn more on our [official website](https://docs.datadoghq.com/tests/) and check out our [documentation for this library](https://docs.datadoghq.com/tests/setup/ruby/?tab=cloudciprovideragentless).
## Features
- [Test Visibility](https://docs.datadoghq.com/tests/) - collect metrics and results for your tests
- [Test impact analysis](https://docs.datadoghq.com/tests/test_impact_analysis/) - save time by selectively running only tests affected by code changes
- [Flaky test management](https://docs.datadoghq.com/tests/flaky_test_management/) - track, alert, search your flaky tests in Datadog UI
- [Auto test retries](https://docs.datadoghq.com/tests/flaky_test_management/auto_test_retries/?tab=ruby) - retrying failing tests up to N times to avoid failing your build due to flaky tests
- [Early flake detection](https://docs.datadoghq.com/tests/flaky_test_management/early_flake_detection/?tab=ruby) - Datadog’s test flakiness solution that identifies flakes early by running newly added tests multiple times
- [Search and manage CI tests](https://docs.datadoghq.com/tests/search/)
- [Enhance developer workflows](https://docs.datadoghq.com/tests/developer_workflows)
- [Add custom measures to your tests](https://docs.datadoghq.com/tests/guides/add_custom_measures/?tab=ruby)
- [Browser tests integration with Datadog RUM](https://docs.datadoghq.com/tests/browser_tests)
## Installation
Add to your Gemfile.
```ruby
group :test do
gem "datadog-ci"
end
```
## Upgrade from ddtrace v1.x
If you used [test visibility for Ruby](https://docs.datadoghq.com/tests/setup/ruby/) with [ddtrace](https://github.com/datadog/dd-trace-rb) gem, check out our [upgrade guide](/docs/UpgradeGuide.md).
## Setup
- [Test visibility setup](https://docs.datadoghq.com/tests/setup/ruby/?tab=cloudciprovideragentless)
- [Test impact analysis setup](https://docs.datadoghq.com/tests/test_impact_analysis/setup/ruby/?tab=cloudciprovideragentless) (test visibility setup is required before setting up test impact analysis)
## Contributing
See [development guide](/docs/DevelopmentGuide.md), [static typing guide](docs/StaticTypingGuide.md) and [contributing guidelines](/CONTRIBUTING.md).
## Code of Conduct
Everyone interacting in the `Datadog::CI` project's codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](/CODE_OF_CONDUCT.md).