Closed echebbi closed 3 years ago
I believe that high priority should be given to this issue, so I'm going to investigate it.
It seems that I managed to fix the random exceptions, but the build still hangs from time to time. Logs don't show anything useful so I don't know why yet; I will try to reproduce the problem locally.
After a few tests it seems that the test hangs because the SummaryView
is never updated with Pitest's results:
I'll try to figure out why.
Reporting progress so far:
7:20:14 AM PIT >> WARNING : No mutations found. This probably means there is an issue with either the supplied classpath or filters.
That being said such errors occur like 1 time out of ten and each build takes around 30 min. I already spent way too much time on this so I'll take until the end of the week to attempt to fix the hanging issue which happens often enough to be annoying then I'll move on more important topics.
Following https://github.com/pitest/pitclipse/pull/125#issuecomment-830055573 here are my findings:
Having said that, trying to understand what's going on and debugging is a real nightmare due to Cucumber, that makes it really hand to understand what's going wrong and in particular, it's impossible to run from Eclipse single scenarios (at least, I did not find a way). Please keep in mind that switching to a new version of the target platform (I've tried that locally) breaks SWTBot tests even at the very beginning, and, again, due to Cucumber, I don't understand what's going on.
I'd then suggest eliminating Cucumber and writing standard SWTBot tests by reusing most "steps" already implemented. I love Cucumber, but in this context, it makes UI tests impossible to maintain, especially when switching to a new version of Eclipse TP, which, I guess, should be done very soon.
If there are no objections, I can start working on that.
By the way, many tested scenarios could be eliminated completely.
I fully agree. Cucumber here makes testing and debugging specific scenarios a bit clunky.
Just for the record I remember having faced issues with tests on Windows as well, even if it was unusual.
When executed, some UI tests can fail unexpectedly. The following failures have been observed:
I believe that SWTBot is not always used properly, e.g. tests do not always wait for shells to close before moving on.