-
Notifications
You must be signed in to change notification settings - Fork 211
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
Automated testing with Luacheck #533
Conversation
I should probably mention that the test rules are defined in |
Thank you for this. However, we still need unit tests. It's not so difficult now, we just need to create a test script with luaunit and run it in the Action you created, just after the linter call. Feel free to continue to help me, I think it's a nice exercise for you. Otherwise, I will work on it as soon as I can. |
name: Luacheck | ||
on: [push] | ||
jobs: | ||
Luacheck_Tests: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For the next PR, you can add another job, say unit_tests
, with a step in which you run the testing script.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'll try it out, should be able to get it in by Wednesday.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Busted is fine. Take inspiration from AwesomeWM.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What exactly do you need tested? I haven't done unit testing before and I'm not sure it's being done correctly.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We need to launch an Awesome instance in which we load all the widgets (with all possible configurations) to see if they work. This test suite would be called to verify that each commit does not break anything.
I know this is a lot of work, but you can start by launching Awesome as mentioned here. Then, we can incrementally add tests.
This is my fix for #527.
Well, I don't know git well enough clearly. I setup the testing, you can see the output here. I had a bit of cleanup, so that's what the force pushes were