Skip to content

Latest commit

 

History

History
99 lines (76 loc) · 2.87 KB

File metadata and controls

99 lines (76 loc) · 2.87 KB

BRS v3.0 — Full-Stack Test Report

Automated Tests (Node.js)

All runnable via node test/<name>.js

# Test Platform Items Result
1 JS SDK Smoke Node.js 8
2 ESM Import Node.js 5
3 globalThis White-Screen Fix Node.js 3
4 WeChat Mini Program Adapter Node.js 6
5 Boundary & Edge Cases Node.js 50
6 Browser Environment Browser 13
7 Breadcrumbs Node.js 9
8 State Snapshot Node.js 7
9 Privacy Sanitizer Node.js 9
10 MCP Server Node.js 4
11 MCP Live Call BRS MCP 2
12 Skill Diagnosis Reasonix 5 phases
13 uni-app Build HBuilderX 30+
14 Android Build Android Studio
15 HTML Panel Browser
16 One-Click Install Reasonix
17 iOS Build Xcode ❓ Untested

Total: 122/122 automated tests passed ✅ (Node.js) | 6/6 manual platform verifications passed ✅ | 1 item untested (iOS Xcode)

💡 The iOS SDK is fully implemented (Swift, Package.swift, SPM-ready), but has not been verified via Xcode compilation. Community contributors are welcome to complete iOS testing via PR.


Manual Verification by Platform

1. 🟢 Node.js (fastest, 0s startup)

cd test

node smoke.js          # 8 items — Core API
node crumb-test.js     # 9 items — Breadcrumbs
node snapshot-test.js  # 7 items — Snapshot
node sanitizer-test.js # 9 items — Sanitizer
node boundary-test.js  # 50 items — Edge cases
node esm-test.mjs      # 5 items — ESM import
node globalThis-test.js # 3 items — White-screen fix
node wx-adapter-test.js # 6 items — WeChat adapter
node mcp-test.js       # 4 items — MCP Server

Expected: Each file outputs "All XX tests passed. ✅"

2. 🌐 Browser

1. Open test/browser-test.html
2. Click "▶ Run All"
3. All items show ✅
4. Click "📊 Open Viewer" to see the log panel

3. 📱 uni-app (HBuilderX)

1. Open HBuilderX
2. Open directory → test/uni-app-demo/
3. Run → Run to Browser → Chrome
4. Click "▶ Run All Tests"
5. All items show ✅ (30+ tests)
6. Click "📊 Open Log Viewer"

4. 🤖 Android (Android Studio)

1. Open Android Studio
2. Open test/android-demo/
3. Wait for Gradle sync
4. Click Run 'app'
5. Click "Open Log Viewer"
6. Run adb logcat -s BugReport

5. 🧠 Reasonix MCP + Skill

1. Verify reasonix.toml has BRS MCP plugin configured
2. Restart Reasonix
3. Say "/bug-report" or "帮我排查错误"
4. For MCP: say "查一下最近的崩溃"

6. 📊 HTML Viewer

Double-click log-viewer.html → Chrome DevTools-style panel should render correctly.

7. 🍎 iOS (Xcode) — UNTESTED

iOS SDK code is complete, awaiting Xcode verification or community PR.