-
Notifications
You must be signed in to change notification settings - Fork 16
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
[CSR-638] Cypress-grep compatibilty #50
Comments
I am using: Existing in repo test case is very simple and does not describe real world usage:
There is only one spec file and it satisfies grepTags. For example if we have following configuration where we have two files each with different tag: // testTagA.spec.js
it('My test', { tags: ['@tagA'] } () => {
// ...
});
// testTagB.spec.js
it('My test', { tags: ['@tagB'] } () => {
// ...
}); then if we run it like this: Then result will be like this:
I think thats because cy2 implementation tried to run all specs in one But cypress-cloud works differently. I can't use @cypress/grep after I moved from cy2 to cypress-cloud. I would be very happy if this issue will be resolved and @cypress/grep will become compatible again. |
@Rikkun-1 thanks for reporting that issue - good catch, we'll issue a fix soon |
I want to add a very important note to this comment. P.S. |
That one was tricky! First, the issue is only relevant when
async setupNodeEvents(on, config) {
await currents(on, config);
require("cypress-terminal-report/src/installLogsPrinter")(on);
return require("@cypress/grep/src/plugin")(config);
},
As a workaround, make sure to run async setupNodeEvents(on, config) {
require("cypress-terminal-report/src/installLogsPrinter")(on);
require("@cypress/grep/src/plugin")(config);
return currents(on, config);
} Not sure what to do with it because |
Sorry for the delay, @agoldis. Your workaround works great. I ran into another issue with @cypress/grep when tried to test it with grepFilterSpecs but it's easy to solve with this comment cypress-io/cypress#27216 (comment). Thanks a lot for your workaround, it's really important for test suite management. I think this issue can be closed. |
@Rikkun-1 awesome! |
See https://sorry-cypress.slack.com/archives/C04F7LJ1E3H/p1671443824388969
The plugin is widely used, and we need to restore its functionality. I don't have many details except for the user's report.
The text was updated successfully, but these errors were encountered: