diff --git a/.gitignore b/.gitignore index 17cfd74..82afbfe 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,5 @@ /luacov.*.out node_modules/ .vscode -build \ No newline at end of file +build +roblox.toml \ No newline at end of file diff --git a/.luacheckrc b/.luacheckrc deleted file mode 100644 index 6b52813..0000000 --- a/.luacheckrc +++ /dev/null @@ -1,24 +0,0 @@ -stds.roblox = { - read_globals = { - "script", "spawn", "warn", "Instance", - } -} - -stds.testez = { - read_globals = { - "describe", - "it", "itFOCUS", "itSKIP", - "FOCUS", "SKIP", "HACK_NO_XPCALL", - "expect", - } -} - -ignore = { - "212", -- unused arguments -} - -std = "lua51+roblox" - -files["**/*.spec.lua"] = { - std = "+testez", -} \ No newline at end of file diff --git a/selene.toml b/selene.toml new file mode 100644 index 0000000..c1911be --- /dev/null +++ b/selene.toml @@ -0,0 +1 @@ +std = "roblox+testez" \ No newline at end of file diff --git a/testez.toml b/testez.toml new file mode 100644 index 0000000..c422101 --- /dev/null +++ b/testez.toml @@ -0,0 +1,67 @@ +# TestEZ +[[afterAll.args]] +type = "function" + +[[afterEach.args]] +type = "function" + +[[beforeAll.args]] +type = "function" + +[[beforeEach.args]] +type = "function" + +[[describe.args]] +type = "string" + +[[describe.args]] +type = "function" + +[[describeFOCUS.args]] +type = "string" + +[[describeFOCUS.args]] +type = "function" + +[[describeSKIP.args]] +type = "string" + +[[describeSKIP.args]] +type = "function" + +[[expect.args]] +type = "any" + +[[FIXME.args]] +type = "string" +required = false + +[FOCUS] +args = [] + +[[it.args]] +type = "string" + +[[it.args]] +type = "function" + +[[itFIXME.args]] +type = "string" + +[[itFIXME.args]] +type = "function" + +[[itFOCUS.args]] +type = "string" + +[[itFOCUS.args]] +type = "function" + +[[itSKIP.args]] +type = "string" + +[[itSKIP.args]] +type = "function" + +[SKIP] +args = [] \ No newline at end of file