Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Cypress ignores [hash] when is run via modules API #2221

@Pavel-Husakouski

Description

@Pavel-Husakouski

Steps to reproduce:

let cypress = require("cypress");

return cypress.run({
   "reporter": "junit",
   "reporterOptions": { "mochaFile": dist + "/junit[hash].xml" }
}).then(() => mergeOutput(dist + "/*.xml", reports + "/junit.xml"));

Actually, I have the necessity to dynamically change the report path depending on the environment where the tests are run.

Current behavior:

Cypress creates *.hash.xml and overwrites it after processing of each *.spec.js file.

Desired behavior:

Cypress creates the report file with the unique name for every *.spec.js file.

Versions

Cypress 3.0.2

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions