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

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

Closed
Pavel-Husakouski opened this issue Jul 27, 2018 · 1 comment · Fixed by #2224
Closed

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

Pavel-Husakouski opened this issue Jul 27, 2018 · 1 comment · Fixed by #2224

Comments

@Pavel-Husakouski
Copy link

Pavel-Husakouski commented Jul 27, 2018

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

@brian-mann
Copy link
Member

Fixed by #2224

@jennifer-shehane jennifer-shehane removed the stage: needs investigating Someone from Cypress needs to look at this label Jul 30, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
3 participants