-
Notifications
You must be signed in to change notification settings - Fork 3.4k
Open
Labels
existing workaroundprevent-stalemark an issue so it is ignored by stale[bot]mark an issue so it is ignored by stale[bot]type: bug
Description
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.
BioJoseph, alcedoatthis2, sgnl, trenthogan, astanet and 62 more
Metadata
Metadata
Assignees
Labels
existing workaroundprevent-stalemark an issue so it is ignored by stale[bot]mark an issue so it is ignored by stale[bot]type: bug