diff options
Diffstat (limited to 'test')
-rw-r--r-- | test/full/init.lua | 10 | ||||
-rw-r--r-- | test/full/projects.lua | 9 |
2 files changed, 11 insertions, 8 deletions
diff --git a/test/full/init.lua b/test/full/init.lua index aec361de..1b634e22 100644 --- a/test/full/init.lua +++ b/test/full/init.lua @@ -13,18 +13,18 @@ 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' + --config.config.diagnostics.neededFileStatus[name] = 'Any' end end DIAGTIMES = {} end startCollectDiagTimes() -require 'full.normal' -require 'full.example' -require 'full.dirty' +--require 'full.normal' +--require 'full.example' +--require 'full.dirty' require 'full.projects' -require 'full.self' +--require 'full.self' for name, time in util.sortPairs(DIAGTIMES, function (k1, k2) return DIAGTIMES[k1] < DIAGTIMES[k2] diff --git a/test/full/projects.lua b/test/full/projects.lua index 54192ee7..6e336df8 100644 --- a/test/full/projects.lua +++ b/test/full/projects.lua @@ -6,6 +6,9 @@ local config = require 'config' local ws = require 'workspace' local fs = require 'bee.filesystem' +config.config.workspace.preloadFileSize = 1000000 +config.config.diagnostics.neededFileStatus = {} + local function doProjects(pathname) files.removeAll() @@ -19,7 +22,7 @@ local function doProjects(pathname) local uri = furi.encode(path:string()) local text = fsu.loadFile(path) files.setText(uri, text) - files.open(uri) + --files.open(uri) end) print('开始诊断...') @@ -39,5 +42,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]] |