-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathrun_tests.lua
More file actions
22 lines (17 loc) · 787 Bytes
/
run_tests.lua
File metadata and controls
22 lines (17 loc) · 787 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
local args = {...}
package.path = package.path .. "libs/?.lua;libs/?/init.lua;test/libs/?.lua;test/libs/?/init.lua;"
package.cpath = package.cpath .. "libs/" .. _VERSION:sub(5) .. "/?.dll;libs/?.dll;"
local AvTest = require "avtest.init"
local start = os.clock()
AvTest.Runner.new()
:setOutputFileEnabled(true)
:setOutputFilePerTest(true)
:setOutputFileStripColors(false)
:addWhitelist(args[1])
:addBlacklist("./tests/test_utils.lua")
:addBlacklist("./tests/parser/lua/lua_official_tests/tests")
:addBlacklist("./tests/parser/selenscript/typing.lua")
:addDir("./tests")
:runTests()
local finish = os.clock()
print(("\n%sTook %s%ss %sto run tests.%s"):format(AvTest.Config.PREFIX_TAG, AvTest.Config.PREFIX_TEXT, finish-start, AvTest.Config.PREFIX_TAG, AvTest.Config.RESET))