Have you configured a valid
SCOPE_DSN configured as environment variable.
Keep in mind that
SCOPE_DSN is different per namespace so if you configure a
SCOPE_DSN from other namespace, you will not see results in Scope for that repository.
Have you forwarded the required environment variables?
If you are executing your tests in a container, you need to forward some environment variables depending on your CI provider, so the agent can autodetect the build information.
I can't see the Test Code in the Test Code Tab
This is most likely caused by a problem with
SCOPE_SOURCE_ROOT. While we try to autodetect the root of your repository, it is not always possible. For example, if your folder structure looks like this:
|-- source |-- root |-- src |-- admin-ui | |-- cypress.json | |-- cypress | |-- smoke | |-- smoke.spec.js |-- ui |-- cypress.json |-- cypress |-- integration |-- integration.spec.js
where there are multiple
This is incorrect and will lead to the Test Code not working properly.
How to fix it
SCOPE_SOURCE_ROOT env var to the root of your repository when you run your cypress commands, e.g.:
SCOPE_SOURCE_ROOT=/source/root yarn cypress:run-ui
SCOPE_SOURCE_ROOT=/source/root yarn cypress:run-admin