Skip to content

Add an option to log output to file #1531

Description

@dwjohnston

Context

I'm using Cypress Cloud and what I want is that for each test run, a link to the Cypress Cloud run should be included somewhere in the PR.

We could do this by setting up a Github Action that comments the link in the PR - but how to get the link?

We can grep it from std out - the bit that says: Recorded Run: https://cloud.cypress.io/projects/xyz/runs/16, but how to get access to this?

I could log it to file:

      - name: Execute Cypress
        uses: cypress-io/github-action@v6
        with:
          command: npx cypress run | tee cypress-output.log
          wait-on: http://localhost:8080
          record: true

The problem with this is that it that the additional commands (--record) will be tacked on to tee not npx.

What would be nice if you can add an option like:

output_log: 'cypress-output.log'

That will also record std out as a file.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions