check how this plugin works with cy-grep plugin
I think this plugin should go first?
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! :)
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.
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 🤦 )
Second screenshot is grep before split ( notice how it first greps, so now we have 77 specs, which are then split 👍 )