/home/techb158/cosmic-risk.abdallabala.com/docs
NameSizeModeActions
00-design-study.md36780644editdlrm
01-uml-class-diagram.puml118690644editdlrm
02-use-case-diagram.puml37630644editdlrm
03-sequence-diagrams.puml97320644editdlrm
04-database-entity-model.mmd70510644editdlrm
05-database-schema.sql133720644editdlrm
06-diagram-preview.html50210644editdlrm
07-design-checklist.md32560644editdlrm
08-step-2-storage-layer.md53250644editdlrm
09-step-3-risk-crud-ui.md33800644editdlrm
10-step-4-mitigation-workflow.md39960644editdlrm
11-step-5-deployment-gate-workflow.md22920644editdlrm
12-step-6-multi-pm-integration.md37700644editdlrm
13-step-6-1-microsoft-planner-integration.md23350644editdlrm
14-step-7-reporting-export.md41580644editdlrm
15-step-7-1-oauth-live-connectors.md45450644editdlrm
16-step-8-user-roles-access-control.md32970644editdlrm
17-step-9-production-deployment-security.md42280644editdlrm
18-step-10-final-academic-submission.md31990644editdlrm
19-final-report-draft.md68140644editdlrm
20-instructor-submission-checklist.md36390644editdlrm
21-demo-script.md39480644editdlrm
22-traceability-matrix.md48470644editdlrm
23-testing-evidence.md29610644editdlrm
24-evaluation-rubric-mapping.md29100644editdlrm
25-final-deployment-runbook.md32140644editdlrm
26-known-limitations-and-future-work.md26320644editdlrm
27-final-qa-checklist.md28930644editdlrm
28-demo-rehearsal-script.md36180644editdlrm
29-submission-freeze-report.md27690644editdlrm
30-final-known-issues.md18760644editdlrm
31-saas-rebuild-implementation.md25730644editdlrm
application-documentation.md275150644editdlrm
conversation-log.md185030644editdlrm
dashboard-spec.md36910644editdlrm
database-guide.md378260644editdlrm
development-summary.md70700644editdlrm
github-architecture.svg62880644editdlrm
integration-pull-push-plan.md73840644editdlrm
Edit: /home/techb158/cosmic-risk.abdallabala.com/docs/23-testing-evidence.md (2961B)
# Testing Evidence Summary ## 1. Test command Run the full test suite with: ```bash npm test ``` ## 2. Test suites | Test file | Purpose | |---|---| | `tests/risk-engine.test.js` | Verifies risk score, normalized score, and gate logic | | `tests/storage-layer.test.js` | Verifies JSON storage and repository behavior | | `tests/api-workflow.test.js` | Verifies main API workflows | | `tests/mitigation-workflow.test.js` | Verifies mitigation creation, update, evidence, and residual risk behavior | | `tests/gate-workflow.test.js` | Verifies gate history, reviewer decisions, notes, and audit behavior | | `tests/integration-workflow.test.js` | Verifies Trello, Jira, Asana, and Microsoft Planner adapter workflows | | `tests/oauth-live-connectors.test.js` | Verifies OAuth provider configuration and live connector boundaries | | `tests/reporting-workflow.test.js` | Verifies JSON, HTML, and CSV report generation | | `tests/access-control.test.js` | Verifies roles, permissions, and protected operations | | `tests/production-hardening.test.js` | Verifies security headers, readiness, config checks, and backup support | ## 3. Expected output ```text All COSMIC AI-Risk engine tests passed. All COSMIC AI-Risk storage layer tests passed. All COSMIC AI-Risk mitigation workflow tests passed. All COSMIC AI-Risk gate workflow tests passed. All COSMIC AI-Risk integration workflow tests passed. All COSMIC AI-Risk OAuth and live connector tests passed. All COSMIC AI-Risk reporting workflow tests passed. All COSMIC AI-Risk access control tests passed. All COSMIC AI-Risk production hardening tests passed. All COSMIC AI-Risk API workflow tests passed. ``` ## 4. Manual verification checklist | Check | Expected result | |---|---| | Open dashboard | Main dashboard loads | | Add risk | Risk appears in register and dashboard recalculates | | Edit risk | Updated fields persist | | Delete risk | Risk is removed from register | | Add mitigation | Mitigation appears on Mitigations page | | Add evidence | Evidence reference is saved | | Evaluate gate | Gate status and criteria update | | Add reviewer decision | Decision appears in gate history | | Run simulated PM sync | Sync run appears in integration history | | Open reports | Report links work | | Export CSV | CSV downloads or opens | | Switch user actor | Permissions change in UI | | Open readiness endpoint | `/api/ready` returns `ok: true` | | Run backup | Backup file and manifest are created | ## 5. Testing limitations The current tests are local prototype tests. They do not perform live calls to Trello, Jira, Asana, or Microsoft Planner unless production credentials and live integration flags are configured. This is intentional because automated submission tests should not depend on external services. ## 6. Recommended instructor demonstration During the demo, run: ```bash npm test npm start ``` Then demonstrate the dashboard, workflows, reports, and access control screen.