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

Log specs in separate files does not work in conjunction with cypress-cucumber-preprocessor plugin #82

Closed
adamsjr8576 opened this issue Mar 10, 2021 · 1 comment
Assignees
Labels
enhancement New feature or request

Comments

@adamsjr8576
Copy link

adamsjr8576 commented Mar 10, 2021

Hello! This plugin is solving a really awesome problem and it is SO close to working with cypress-cucumber-preprocessor.

I am currently encountering an issue with creating a new log output file per .spec file. When using cypress-cucumber-preprocessor you use .feature files to run a test, so the file structure changes slightly to account for that. When running the tests cypress-terminal-report points to node_modules/cypress-cucumber-preprocessor/lib/createTestFromScenario.js when running every test instead of the cypress specs root directory.

And so, each log output file that is created per spec - results in the same name => createTestFromScenario.json. When running the tests you can see the file being created for each spec containing the correct info, and then after each subsequent spec runs the file gets overwritten with the new info because it is using the same name.

So, I can not figure out how to create a unique file name for each spec to avoid overwriting the same file each time?

Here are my current options:
Screen Shot 2021-03-10 at 10 58 11 AM

Let me know if you need any more information to assist with this issue - thank you!!

Also, side note => when running the format for logging to files (without seperate file syntax) - see screenshot - the same thing is happening - it creates a new file for each feature run, but I am only able to set a static filename so the file gets overwritten everytime. So, it would be working if each feature where run in isolation, but these tests are running in Circle CI and runs a set of features at once using Cypress' "testFiles" config option. I can't figure out how to create a uniquely named file for each run?

@archfz archfz added the enhancement New feature or request label Mar 10, 2021
@archfz archfz self-assigned this Mar 10, 2021
@archfz
Copy link
Owner

archfz commented Mar 10, 2021

Fixed in 3.0.1

@archfz archfz closed this as completed Mar 10, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants