manu-chroma / username-availability-checker

Live at : https://username-check.herokuapp.com/
96 stars 37 forks source link

Improve random username generator to obey the website rules #47

Closed jayvdb closed 6 years ago

jayvdb commented 6 years ago

The random username generator currently is very basic. Since it has been created, we have created username rules in the websites.yaml , which should be adhered to by the generator. That includes lengths, and also the rules excluding adhoc patterns, which includes patterns about the first letter.

jayvdb commented 6 years ago

To make this testable also, as a consequence of the fact we will soon have generated test cases, we can generate usernames for upper and lower limits, and there is also scope for possibly verifying that upper+1 fails and lower-1 fails, and marking such failure as a successful test.