You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi !
Before integrating Code coverage on our project, we didn't have any problem with our Cypress tests.
But since we integrated coverage report, all going wrong.. and especially with Cucumber test suites.
All my feature files are stored in the folder cypress/integration.
With this configuration, I have this error : TypeError: path argument is required to res.sendFile
I use cypress-react-unit-test plugin for loading webpack file. I want to extends preprocessoring to feature files.
I test to merge both in one function : same behavior. I encountered randomly an issue about bad description file.
When I put load-webpack preprocessor from cypress-react-unit-test, stepDefinitions are not well serialized (Cypress says step definition are missing for run Cucumber tests...)
Desired behavior
Run cucumber tests successfully with code coverage report.
Example of a feature file:
Feature: Patient DetailsScenario Outline: reviewing a patient detailsGiven "<patient_id>" patient details are being reviewed
Then the patient name should be equal to "<name>"Then clicking on the patient name should open in a new tab
Then the patient identifier should be equal to "<identifier>"Then the patient age at the time of the study should be equal to "<age>"Examples:
| patient_id | name | identifier | gender | height | weight | bmi | birth_date | age | | 1 | ‒ NoPatientDetails ‒ | ‒ | O | ‒ | ‒ | ‒ | ‒ | ‒ | | 2 | Cooper, James | 980308871 | M | 185cm | 95kg | 29.22 | 12Feb1993 | 20y | | 3 | 512838826, ‒ | 980308872 | 女性 | 82cm | 15kg | 22.34 | 0311月 2018 | 20ヶ月 |
Test code to reproduce
Too complex to reproduce it (i'll do it when I have time..) sorry..
I don't think "cypress-cucumber-preprocessor": {...} is supposed to be in cypress.json. Try package.json or whatever other place the documentation mentions, like cypress-cucumber-preprocessor.config.js.
Current behavior
Hi !
Before integrating Code coverage on our project, we didn't have any problem with our Cypress tests.
But since we integrated coverage report, all going wrong.. and especially with Cucumber test suites.
All my feature files are stored in the folder
cypress/integration
.Here the
plugin/index.js
file:Here
cypress.json
config :With this configuration, I have this error :
TypeError: path argument is required to res.sendFile
I use
cypress-react-unit-test
plugin for loading webpack file. I want to extends preprocessoring tofeature
files.I test to merge both in one function : same behavior. I encountered randomly an issue about
bad description file
.When I put load-webpack preprocessor from cypress-react-unit-test, stepDefinitions are not well serialized (Cypress says step definition are missing for run Cucumber tests...)
Desired behavior
Run cucumber tests successfully with code coverage report.
Example of a feature file:
Test code to reproduce
Too complex to reproduce it (i'll do it when I have time..) sorry..
Linked issues :
Versions
The text was updated successfully, but these errors were encountered: