Skip to content

Commit 3f57130

Browse files
committed
test: Add selene support
1 parent 7fe56b6 commit 3f57130

File tree

3 files changed

+48
-0
lines changed

3 files changed

+48
-0
lines changed

.github/workflows/tests.yaml

+9
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,15 @@ jobs:
3636
- name: Lint
3737
run: luacheck lua/
3838

39+
selene:
40+
runs-on: ubuntu-latest
41+
steps:
42+
- uses: actions/checkout@v4
43+
- name: Install selene
44+
run: cargo install selene
45+
- name: Run selene
46+
run: selene lua/ tests/
47+
3948
typecheck:
4049
runs-on: ubuntu-latest
4150
steps:

selene.toml

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
std="vim"

vim.toml

+38
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
[selene]
2+
base = "lua51"
3+
name = "vim"
4+
5+
[vim]
6+
any = true
7+
8+
[[describe.args]]
9+
type = "string"
10+
[[describe.args]]
11+
type = "function"
12+
13+
[[it.args]]
14+
type = "string"
15+
[[it.args]]
16+
type = "function"
17+
18+
[[before_each.args]]
19+
type = "function"
20+
21+
[[after_each.args]]
22+
type = "function"
23+
24+
[[assert.args]]
25+
type = "any"
26+
27+
[[assert.equals.args]]
28+
type = "any"
29+
[[assert.equals.args]]
30+
type = "any"
31+
32+
[[assert.are.same.args]]
33+
type = "any"
34+
[[assert.are.same.args]]
35+
type = "any"
36+
37+
[[assert.True.args]]
38+
type = "any"

0 commit comments

Comments
 (0)