Feature to execute failed tests only
As a end to end testing framework, it would be nice if Protractor provide a way to execute failed tests only from test suite(s) run.
Sounds nice - this would require integration with the test runner (Jasmine, Mocha, etc) and I'm not sure how it would know which ones failed before (it would have to store state somewhere). It's not likely that this will be added soon, but it's a neat idea.
Maybe it could use the previous xunit report or any other report format as input to know which tests failed in the previous execution...
I have the same problem with some tests, they pass most times, but fail sometimes, so it would be nice feature to have protractor retry those failed tests.
have the same problem. I'm looking forward this feature! Do anybody knows when it will be ready-to-use?
+1
+1
Can you clarify which of the following use cases is the one you want?
- Automatically rerun failed tests as part of the initial protractor run to deflake. i.e.
> protractor config.js --retry-failed
running...A,B,D passed, C,E failed
running C,E again...C passed, E failed
running E again...E passed
- Manually rerun failed tests after edits. i.e.
> protractor config.js
running...A,B,D passed, C,E failed
> vim test.js // try to fix C and E
> protractor config.js --run-last-failed
running only C,E...C passed, E failed
> vim test.js // try to fix E
> protractor config.js --run-last-failed
running only E...E passed
the first one, so "1) Automatically rerun failed tests as part of the initial protractor run to deflake" Also it would be nice if there would be a configurable value for the maximum retry count. e.g.: in your example there was a 2 re-run, if you set the limit to 1 then the last one won't run.
I hope it was clear.
@hankduan @iamisti The first one for sure! In my case, when running tests on a CI server, having to redo an entire build/push because of a test timing out is frustrating.
+1 for first one
+1
+1
+1, any updates on this?
Not right now, but considering the big feedback, I'll see if I can do something about it in the near future
Please do it as soon as possible. This is almost the most important feature that we're missing from it.
+1
+1
+1, must have feature. have a suite of 1300+ TCs, 15~20 are failing and in teamcity and causing build failure, all are passing if running individually.
:+1:
Hi @hankduan , could you please let me know possible ETA for this feature. I need to decide whether i should have a workaround implemented or wait for this implementation from protractor team.