-
Notifications
You must be signed in to change notification settings - Fork 0
Migrate tests to busted framework and add CI workflow #15
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
Conversation
Co-authored-by: InDieTasten <7047377+InDieTasten@users.noreply.github.com>
…tion Co-authored-by: InDieTasten <7047377+InDieTasten@users.noreply.github.com>
InDieTasten
left a comment
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.
@copilot please add a github actions CI workflow that will run the busted tests on main and for pull requests
Co-authored-by: InDieTasten <7047377+InDieTasten@users.noreply.github.com>
I've added a GitHub Actions CI workflow that will run the busted tests on main and for pull requests. The workflow installs Lua 5.3, luarocks, and busted, then runs all tests automatically. Commit: b97acba |
InDieTasten
left a comment
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.
@copilot CI run fails:
Run sudo luarocks install busted
sudo luarocks install busted
shell: /usr/bin/bash -e {0}
Installing https://luarocks.org/busted-2.2.0-1.src.rock
Error: Failed finding Lua header files. You may need to install them or configure LUA_INCDIR.
Error: Process completed with exit code 1.
Co-authored-by: InDieTasten <7047377+InDieTasten@users.noreply.github.com>
I've fixed the CI failure by adding the Warning Firewall rules blocked me from connecting to one or more addresses (expand for details)I tried to connect to the following addresses, but was blocked by firewall rules:
If you need me to access, download, or install something from one of these locations, you can either:
|
This PR migrates the existing custom test framework to the busted testing framework and adds automated CI testing, providing better test organization, more detailed output, and continuous integration.
Changes Made
Test Framework Migration
test.lua) with busted frameworklib/*-tests.luatospec/*_spec.luaformatdescribe()andit()structure for better readability and isolationTest Structure Improvements
describe()blocksCI/CD Integration
liblua5.3-devpackage for native extension compilationConfiguration and Documentation
.bustedconfiguration file for consistent test runningbustedinstead oflua test.luaBefore and After
Before (custom framework):
After (busted framework):
All existing functionality is preserved while providing a more maintainable and professional testing setup with automated continuous integration.
Fixes #8.
✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.