liip / TheA11yMachine

The A11y Machine is an automated accessibility testing tool which crawls and tests pages of any web application to produce detailed reports.
https://www.liip.ch/
621 stars 66 forks source link

Better halting solution #41

Closed krtek4 closed 8 years ago

krtek4 commented 8 years ago

35 is now closed, but I am still not satisfied with the solution. We wait on all currently processing URLs but no report is generated at the end.

I think we could improve this a lot by decoupling the crawler from the tester a bit more :

This way, we will probably fix a race condition that still arise sometimes where the report of one of the URL has not the time to be written because the last item is finished and node exits.

We could also have better exit code management.

And last but not least, URLs currently being processed will have time to generate a report. Only the second Ctrl-C will stop the process immediately.

(And I forget to mention a cleaner implementation)

Hywan commented 8 years ago

Damn, you did a huge refactoring without any PR. That's not fair.

krtek4 commented 8 years ago

My cat rewied it ;)

krtek4 commented 8 years ago

Or reviewed depends on how many vodka he had yesterday :p

Hywan commented 8 years ago

I guess the halt current solution is fine. Can we close this issue?

krtek4 commented 8 years ago

Since I opened this issue after implementing the current solution I would say no.

krtek4 commented 8 years ago

Oh sorry, didn't see you made changes regarding this in a totally unrelated PR.

OK then

Hywan commented 8 years ago

:+1: