-
-
Notifications
You must be signed in to change notification settings - Fork 9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Create tests #45
Comments
Any opinion how to do tests ? |
I think the test should test the lib itself, not it's internal interfaces. I.e. it should monitor the monitor, create hanging threads and check the logged messages. |
Any framework will work for this simple task, I think. However it would be nice if the framework supports mocking. For example we can mock the |
Here is an example of how I created automatic tests: https://github.com/fossasia/knittingpattern |
Somehow, we need to rewrite everything to be nicely testable. To create tests
The testing can be an excellent basis to transform and refactor the module.
These are many steps. If you help with one of them or you would like to add some, feel welcome to comment.
The text was updated successfully, but these errors were encountered: