Skip to content

[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

Open
ezeholz opened this issue Jan 8, 2024 · 6 comments
Open

[Feature Request] Automated Tests Needed #297

ezeholz opened this issue Jan 8, 2024 · 6 comments

Comments

@ezeholz
Copy link
Collaborator

ezeholz commented Jan 8, 2024

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

@KristjanESPERANTO
Copy link
Collaborator

KristjanESPERANTO commented Nov 6, 2024

@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?

@ezeholz
Copy link
Collaborator Author

ezeholz commented Nov 6, 2024

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! ✨️

@KristjanESPERANTO
Copy link
Collaborator

@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.

@ezeholz
Copy link
Collaborator Author

ezeholz commented Nov 18, 2024

I'm sorry, forgot about it. Already merged!

@KristjanESPERANTO
Copy link
Collaborator

@ezeholz Thanks! 😃

PR #310 would be the next step with the first automated tests 🚀

@KristjanESPERANTO
Copy link
Collaborator

With release 2.5.4 I just added linter for CSS and markdown and a formatter to the CI.

@KristjanESPERANTO KristjanESPERANTO changed the title Automated Tests Needed [Feature Request] Automated Tests Needed Apr 28, 2025
@KristjanESPERANTO KristjanESPERANTO self-assigned this Apr 28, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants