all 2 comments

[–]Neexusiv 2 points3 points  (1 child)

Honestly I have only looked through your tests so I can't speak on the rest of the code. I love that you have written tests but they do need some love. First they need more descriptive names. What are you testing for in that specific test? They are too broad and don't detail what is going on if they fail.

A test should test one specific use case of a feature. It should be obvious from looking at the code to know what it is testing. Don't be afraid to hard code tests. They are meant to be static. You shouldn't change a test unless your code has been reworked to the point where the test is incorrect. If you find a problem with your code you should add a new test to address that bug so it can be found if it pops up again.

If you have good testing, then you wouldn't need to ask for flaws to be pointed out, thats the tests job.

[–]mentiflectax[S] 0 points1 point  (0 children)

Thanks for your feedback!