You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add integration test for Datadog::Tracing::Contrib::ViewComponent
* In order to properly write an integration test for ViewComponent
we need to spin up an ad-hoc Rails app that we render the component
within, then confirm the span data is generated
* The integration test includes the
`datadog/tracing/contrib/rails/rails_helper`, which provides a
`Rails test application` context
* Since there were configuration changes between different versions
of ViewComponent, we need to adjust the configuration settings
based on which version of the Gem has been loaded
* This can be done using `Gem.loaded_specs` and `Gem::Version`,
which provide an API for version comparison
* Testing across the Appraised versions also checks that the
`use_deprecated_instrumentation_name` configuration is applied,
and does collect the necessary data
0 commit comments