Cypress test results not showing up in DataDog for a monorepo sub-project #1818
Replies: 3 comments 15 replies
-
@juan-fernandez you were such a great help awhile back on an issue I had getting this working in my poc, I figured I'd tag you here as well. Appreciate any feedback you may have as to why this isn't working. My head's sore from banging it against my desk trying to figure this out 😁 |
Beta Was this translation helpful? Give feedback.
-
hi @jdborneman-terminus ! Thanks for sharing your issue! Let's see if we can sort it out 😄 . My first suspicion when seeing the post was an issue with the agent's configuration, but seeing your replies, you're able to report tests with Project A, so it must be something else. Let's try to run Project B with these env vars: |
Beta Was this translation helpful? Give feedback.
-
To sum up: If a |
Beta Was this translation helpful? Give feedback.
-
Alright, I'm at my wit's end. Posting this in Discussion though since it's likely User Error more than a Bug. 😬
I've got Project A and Project B.
Project A: A stand alone Cypress project with dd-agent integrated. When I run
$ DD_ENV=local DD_SERVICE=cypress-poc npx cypress run
everything works great, stuff shows up in DataDog just as I'd expect.Project A Details
Execution Command
From root directory of project:
$ DD_ENV=local DD_SERVICE=cypress-poc npx cypress run
plugins/index.js
support/index.js
Project B: A monorepo project with the Cypress tests existing as a sub-project within the monorepo. When I run
$ DD_ENV=local DD_SERVICE=my-app npx cypress run
nothing errors but nothing shows up in DataDog.Project B Details
Execution Command
From cypress project subdirectory (./apps/my-app-e2e/) directory of project:
$ DD_ENV=local DD_SERVICE=my-app npx cypress run
plugins/index.js
support/index.ts
"dd-trace": "2.0.1"
is set up in our package.json (I was originally at 1.6.0, upgraded to 2.0.1 in an attempt to fix this.)The biggest difference I see as I type this up is that in our failing Project B, the support index is a .ts file, not a .js. But I changed Project A's support index to be a .ts and it still reports to DD just fine, so that's not it.
I'm testing this on my local dev machine (a Mac) with the datadog agent installed. Looking at the agent logs, I do see a line after I kick off Project B that says
2022-02-07 10:46:03 EST | CORE | INFO | (pkg/serializer/serializer.go:371 in sendMetadata) | Sent metadata payload, size (raw/compressed): 957/291 bytes
but not sure if that's what I need to look for in the Agent logs, or if there's a way to turn on some sort of verbose mode to see more there.Beta Was this translation helpful? Give feedback.
All reactions