mirror of
https://wget.la/https://github.com/Wxw-Gu/WechatExplorer
synced 2026-08-18 03:57:02 +08:00
test: 建立桌面端自动化回归测试体系并完善跨平台 CI
(cherry picked from commit 74267ae2f63f8256c3da84b04f5b330e6e9d4c67)
This commit is contained in:
@@ -0,0 +1,23 @@
|
||||
import assert from 'node:assert/strict'
|
||||
import fs from 'node:fs'
|
||||
import test from 'node:test'
|
||||
|
||||
const enabled = process.env.WXE_REAL_DATA_SMOKE === '1'
|
||||
|
||||
test(
|
||||
'native WCDB opens a disposable fixture account on this machine',
|
||||
{ skip: enabled ? false : 'set WXE_REAL_DATA_SMOKE=1 and WXE_SMOKE_DB_ROOT to opt in' },
|
||||
() => {
|
||||
const root = process.env.WXE_SMOKE_DB_ROOT || ''
|
||||
assert.ok(root, 'WXE_SMOKE_DB_ROOT is required')
|
||||
assert.ok(fs.existsSync(root), 'WXE_SMOKE_DB_ROOT must exist')
|
||||
}
|
||||
)
|
||||
|
||||
test('system permission prompts are verified manually on a clean OS account', {
|
||||
skip: 'manual smoke checklist: docs/testing.md'
|
||||
})
|
||||
|
||||
test('signed installer install, upgrade and uninstall are verified manually', {
|
||||
skip: 'manual smoke checklist: docs/testing.md'
|
||||
})
|
||||
Reference in New Issue
Block a user