diff options
Diffstat (limited to 'test/full')
-rw-r--r-- | test/full/init.lua | 18 | ||||
-rw-r--r-- | test/full/projects.lua | 4 |
2 files changed, 20 insertions, 2 deletions
diff --git a/test/full/init.lua b/test/full/init.lua index f292a573..b410e3b3 100644 --- a/test/full/init.lua +++ b/test/full/init.lua @@ -1,4 +1,6 @@ local parser = require 'parser' +local config = require 'config' +local util = require 'utility' rawset(_G, 'TEST', true) @@ -8,8 +10,24 @@ function TEST(script) return ast end +local function startCollectDiagTimes() + for name in pairs(config.config.diagnostics.neededFileStatus) do + if name ~= 'no-implicit-any' then + config.config.diagnostics.neededFileStatus[name] = 'Any' + end + end + DIAGTIMES = {} +end + require 'full.normal' require 'full.example' require 'full.dirty' require 'full.projects' +startCollectDiagTimes() require 'full.self' + +for name, time in util.sortPairs(DIAGTIMES, function (k1, k2) + return DIAGTIMES[k1] < DIAGTIMES[k2] +end) do + print('诊断任务耗时:', name, time) +end diff --git a/test/full/projects.lua b/test/full/projects.lua index 9543f525..54192ee7 100644 --- a/test/full/projects.lua +++ b/test/full/projects.lua @@ -39,5 +39,5 @@ local function doProjects(pathname) print('基准全量诊断用时:', passed) end -doProjects [[C:\SSSEditor\client\Output\Lua]] -doProjects [[C:\W3-Server\script]] +--doProjects [[C:\SSSEditor\client\Output\Lua]] +--doProjects [[C:\W3-Server\script]] |