Can't find my Cypress tests in the DataDog #5356
-
So trying to add a DD trace into my Cypress project. But unable to find the tests in DataDog after adding a package and configuring it. cypress.config.js
./support/e2e.js Running tests as |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
hey @mekhron ! Thanks for opening the discussion could you remove these lines config.env.DD_CIVISIBILITY_AGENTLESS_ENABLED = true,
config.env.DD_API_KEY = params.dataDog.apiKey,
config.env.DD_SITE = 'datadoghq.com',
config.env.DD_SERVICE = `Cypress_${type}_${env}_run`, and instead pass those vars as env vars in your test command:
(notice that you don't need to pass These values need to be available as env vars for |
Beta Was this translation helpful? Give feedback.
hey @mekhron ! Thanks for opening the discussion
could you remove these lines
and instead pass those vars as env vars in your test command:
(notice that you don't need to pass
DD_SITE
as'datadoghq.com'
is the default)These values need to be available as env vars for
'dd-trace/ci/cypress/plugin'
to grab. Setting them asconfig.env
won't work in this case