Current behavior:
The contents of Cypress.spec are incorrect when I click on "Run all specs".
It now contains:
{
absolute: "__all",
name: "All Specs",
relative: "__all"
}
I use Cypress.spec in my cypress-plugin-snapshots plugin to determine snapshot filename. I found a very hard work around by using a preprocessor to store the latest processed file. But this breaks other stuff. It would be very useful if Cypress.spec would contain the actual current test.
Desired behavior:
It should contain the details of the spec that is running. Even when you clicked on "Run all specs".
For example:
{
name: 'filter.spec.js',
relative: 'cypress/integration/filter.spec.js',
absolute: '/Users/janelane/Dev/web-app/cypress/integration/filter.spec.js',
}
Steps to reproduce: (app code and test code)
Put code below in a Spec and see contents from Cypress.spec when running with "Run all tests" and by running test directly.
console.log(Cypress.spec);
Versions
All versions that have Cypress.spec.
Current behavior:
The contents of
Cypress.specare incorrect when I click on "Run all specs".It now contains:
I use
Cypress.specin my cypress-plugin-snapshots plugin to determine snapshot filename. I found a very hard work around by using a preprocessor to store the latest processed file. But this breaks other stuff. It would be very useful ifCypress.specwould contain the actual current test.Desired behavior:
It should contain the details of the spec that is running. Even when you clicked on "Run all specs".
For example:
Steps to reproduce: (app code and test code)
Put code below in a Spec and see contents from
Cypress.specwhen running with "Run all tests" and by running test directly.Versions
All versions that have
Cypress.spec.