Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Generate JSON Reports for Cypress Image Diff HTML Report when running GUI tests #217

Open
SokolovAlexanderV opened this issue May 6, 2024 · 5 comments · May be fixed by #218
Open

Generate JSON Reports for Cypress Image Diff HTML Report when running GUI tests #217

SokolovAlexanderV opened this issue May 6, 2024 · 5 comments · May be fixed by #218
Labels

Comments

@SokolovAlexanderV
Copy link

JSON files for HTML Reports v2 are generated only when running tests from CLI.
Sometimes it is useful to get and analyse reports when running tests via GUI.

Use case for tests group can look like this:

describe('Visual testing', () => {
    after(() => {
        cy.task('generateJsonReport');
    })
});

// or if some environment data required

after(() => {
    cy.task('generateJsonReport', {
        browserName: Cypress.browser.displayName,
        browserVersion: Cypress.browser.version,
        cypressVersion: Cypress.version,
    });
});

Then if we keep Cypress Image Diff HTML Report opened we can easily switch and view any interface difference.

@SokolovAlexanderV SokolovAlexanderV linked a pull request May 6, 2024 that will close this issue
Copy link

github-actions bot commented Jun 6, 2024

This issue is stale because it has been open for 30 days with no activity.

@github-actions github-actions bot added the stale label Jun 6, 2024
Copy link

github-actions bot commented Jul 7, 2024

This issue was closed because it has been inactive for 30 days since being marked as stale.

@JasonFairchild
Copy link

I definitely think this should be implemented. Or at the very least, it should be clear in the docs.

@tamasmagyar
Copy link
Collaborator

We have an open PR for this #218

@tamasmagyar tamasmagyar reopened this Nov 14, 2024
@github-actions github-actions bot removed the stale label Nov 15, 2024
Copy link

This issue is stale because it has been open for 30 days with no activity.

@github-actions github-actions bot added the stale label Dec 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants