Project

General

Profile

Actions

Issue #806

closed
RA

Requirement #801: JCIC Mock Server:建立可驗證的專業測試基準

問題:JCIC 原先沒有自動化測試,且 app 未匯出以供測試啟動

Issue #806: 問題:JCIC 原先沒有自動化測試,且 app 未匯出以供測試啟動

Added by Redmine Admin 6 days ago.

Status:
Closed
Priority:
P1-High
Assignee:
-
Category:
Testing
Start date:
10/19/2026
Due date:
10/19/2026
% Done:

100%

Estimated time:
Story Points:

Description

現象

專案只有手動 curl 範例,沒有可重複執行的測試;server.js 直接啟動伺服器,
測試無法以隨機 Port 載入 app。

影響

任何驗證、錯誤處理或格式切換的修改都只能靠人工確認,容易回歸。

根因

缺少測試基礎與可測試的 app 匯出邊界。

處置

  • 僅在直接執行時 listen,被 require 時匯出 app。
  • 新增 21 個 node:test 案例與 npm test。

驗證

  • 21/21 通過。

No data to display

Actions

Also available in: PDF Atom