Skip to content

Commit

Permalink
test: drop luaunit in favor of busted
Browse files Browse the repository at this point in the history
  • Loading branch information
Rainrider authored Oct 19, 2024
1 parent 0cce77e commit 0366b51
Show file tree
Hide file tree
Showing 7 changed files with 309 additions and 336 deletions.
16 changes: 7 additions & 9 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,37 +24,35 @@ jobs:
needs: lint
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
submodules: true
- name: Install Lua
uses: leafo/gh-actions-lua@v9
uses: leafo/gh-actions-lua@v10
with:
luaVersion: '5.1'
luaVersion: '5.1.5'
- name: Install LuaRocks
uses: leafo/gh-actions-luarocks@v4
- name: Install Dependencies
run: |
luarocks install luaunit
luarocks install mockagne
luarocks install luabitop
luarocks install busted
- name: Test
run: |
cd ./tests
lua core.lua
lua databases.lua
busted -o TAP .
release:
runs-on: ubuntu-latest
needs: test
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Prepare Packager Arguments
id: packager-args
if: github.base_ref || github.ref_type != 'tag'
run: echo '::set-output name=args::-d'
run: echo "{args}={-d}" >> $GITHUB_OUTPUT
- name: Package and Release
uses: BigWigsMods/packager@v2
with:
Expand Down
14 changes: 2 additions & 12 deletions .luacheckrc
Original file line number Diff line number Diff line change
Expand Up @@ -7,19 +7,9 @@ exclude_files = {
'tests/wowmock/**',
}

files['tests/core.lua'] = {
files['tests/core_spec.lua'] = {
globals = {
'AdiDebug',
'LibStub',
'testFlagTester',
'testFilterParsing',
'testRegisterSpells',
},
}

files['tests/databases.lua'] = {
globals = {
'testDatabases',
'bit'
},
}

Expand Down
2 changes: 1 addition & 1 deletion LibPlayerSpells-1.0.toc
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
## Interface: 110000
## Interface: 110002
## Title: Lib: PlayerSpells-1.0
## Notes: Additional information about player spells.
## Author: Adirelle
Expand Down
243 changes: 0 additions & 243 deletions tests/core.lua

This file was deleted.

Loading

0 comments on commit 0366b51

Please sign in to comment.