cypress-split icon indicating copy to clipboard operation
cypress-split copied to clipboard

check how this plugin works with cy-grep plugin

Open bahmutov opened this issue 3 years ago • 3 comments

I think this plugin should go first?

bahmutov avatar Jan 17 '23 11:01 bahmutov

Not necessarily related to cypress-grep, but just noting that in terms of plugin instantiation, it seems like cypress-split needs to be registered first for cypress-testrail-simple to work as expected. I'm wondering if this is just the case across the board. If so, it would be nice to add this to the README.md.

On a side note, these plugins are fantastic! :)

jwohlfahrt avatar May 16 '23 16:05 jwohlfahrt

I tried both with cypressSplit first and with cypressSplit after @cypress/grep , with the cypress-on-fix if that somehow changes something ( don't think it does )

And running

SPLIT_FILE=timings.json cypress run --env split=true,grepFilterSpecs=true,grepOmitFiltered=true,grepTags=\"tag1\"  

Both times I got the expected result: Only the filtered tests by tag ran in a split fashion.

tommy-anderson avatar Nov 20 '23 21:11 tommy-anderson

Coming back here after a year, better late than never, but if someone searches here, I hope they find this comment.

The order of the plugins indeed matters, and the grep plugin should go first.

Here are two screenshots of the same codebase running main tests.

First screenshot is split before grep ( notice how it sees 243 specs , splits them, and then it greps for main 🤦 )

Screenshot 2024-12-27 at 12 36 51 PM

Second screenshot is grep before split ( notice how it first greps, so now we have 77 specs, which are then split 👍 ) Screenshot 2024-12-27 at 12 35 42 PM

tommy-anderson avatar Dec 27 '24 10:12 tommy-anderson