I have test cases which have priority tags on them. Let's say 30 cases run sequentially one by one. But this does not allow me to attach a retry listener to my cases due to tests being dependent on each other. If test 25 fails, all tests in the test class should be retried which seems to be impossible.
For a new project, I abandoned this method and removed the priority tag to make each test method independent. Now, I can use a retry listener which runs the individual test again after it fails.
Which method seems to be a better approach? What may be pros and cons of both approaches? I can't really find example test classes online to compare with my tests and I am the only automation dev in my company.