-
Notifications
You must be signed in to change notification settings - Fork 151
[Feature Request] Automated Tests Needed #297
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
Comments
@ezeholz I would like to push this forward 💪 My plan to tackle this would be to introduce simple tests like linter, formatter and spell checker as a first step. This will already allow us to identify and catch some issues. Once that is done, I would start writing tests for a test runner. I would write the tests using the new test-runner built into node.js, rather than using jest (which has been a common choice so far). I'm not an expert in testing, and I'm not yet familiar with all the features of MMM-Remote-Control, but I think we can make progress step by step. I would also update the dependencies and probably fix one or two issues on the way. I consider this my to-do list for now, and I would update and add to it as I go along:
I will start with the points where I see the least chance of breaking something. Spell check and CSS linter, for example. What do you think about this? |
Seems good to me! I'll try to get docker installed to help you out a bit over testing. So far, I've been on testing for Python, but I know most of Remote Control code. Ask me for a hand in any step you need! Thanks! ✨️ |
@ezeholz I don't want to put any pressure on you but it would be nice if we could move forward even with small baby steps (like my last PR) 🙂 If you don't have enough time I would also offer to help with maintenance. I'm maintaining a few other modules and a new module list so I'd be happy to help out here too. |
I'm sorry, forgot about it. Already merged! |
With release 2.5.4 I just added linter for CSS and markdown and a formatter to the CI. |
Description
Given the small window of time each month that I have, and most probably would be smaller in the following days. I would rather have some tests in place to check that new PRs don't break anything critical.
I used to test them in my own MagicMirror, and also in a controlled VM. But nowadays I don't own a MagicMirror anymore, and I started using docker for testing.
Even with that, tests consume excessive amount of time, which can be seen in stale PRs. And my knowledge in automatic testing it's almost none. So in the meantime, and if someone it's available and can develop those tests, I'll gladly review and prioritize that.
(I'll update this issue with the tests that I run by myself.)
Changelog
No response
Requirements
No response
Additional info
No response
The text was updated successfully, but these errors were encountered: