D3 / Test Plan
Test Plan
Status: Executable team plan, updated October 26, 2026. Client CAD versions, permitted production samples, and acceptance dates still require confirmation.
Purpose and quality risks
This plan gives Team E, the client, and another engineer enough information to repeat the tests. The highest risks are incorrect physical scale, open or duplicate cut paths, loss of holes, excessive segments, unsupported CAD entities, color-region errors, and output that opens successfully but is unsuitable for fabrication.
Part 1: testing with full time and access
- Build a client-approved corpus covering clean logos, low-resolution art, transparency, gradients, photographs, many colors, holes, adjacent regions, text, and PDF pages.
- Compare every output with accepted CAD reference files using geometric distance, area, path closure, topology, scale, layer, and native-entity checks.
- Run automated unit, integration, property, fuzz, performance, and regression tests on every supported operating system and Python version.
- Test installation, first use, error recovery, and export with representative Adcut operators.
- Import outputs into every supported AutoCAD and IGEMS version, then complete supervised water-jet trials with approved material and safety procedures.
- Retain expected outputs and signed acceptance results for future regression testing.
Part 2: committed semester testing
Team E will maintain automated tests for deterministic logic and will record manual evidence for the browser workflow and downstream CAD checks. Claims in the final report will distinguish tests that passed from tests that remain blocked.
| Level | Owner and environment | Evidence |
|---|---|---|
| Unit | Developers; pytest on Python 3.11-3.13 | Decoder, options, scale, closure, SVG, DXF, units, circles, errors, and preview tests |
| Integration | Developers; repository samples on Windows, Linux, macOS | Raster-to-SVG-to-DXF runs, entity audit, fixture outputs, CI logs |
| System/UI | Team E; Windows 11 with Chrome and Edge | Installation checklist, upload/export scripts, screenshots, downloaded files |
| Acceptance | Adcut representative with Team E | Approved samples, AutoCAD/IGEMS import record, scale/layer review, client decision |
Environments
- GitHub Actions: Windows, Ubuntu Linux, and macOS with Python 3.11, 3.12, and 3.13 using the committed
uv.lock. - Primary local check: Windows 11, Python 3.12, Streamlit 1.50 or the locked project version, Chrome and Edge. Exact browser versions will be recorded with results.
- Client environment: Windows workstation. AutoCAD and IGEMS versions remain unconfirmed and must be recorded before acceptance testing.
- Final package: the locked uv workflow is testable now; a standalone Windows package will receive a clean-machine test after packaging is selected.
Automated regression cases
| ID | Input/action | Expected result |
|---|---|---|
| UT-01 | Decode JPEG, PNG, WEBP, first GIF frame, and first PDF page | Normalized RGBA image with correct dimensions |
| UT-02 | Unreadable or mismatched input | Clear VectorizationError; no export produced |
| UT-03 | Positive width in inches and millimeters | Proportional dimensions and explicit DXF units |
| UT-04 | Adjacent regions, holes, and curves samples | Closed parsed paths; known limitations documented |
| UT-05 | SVG export | Physical width/height, color fills, and closed path commands |
| UT-06 | DXF R2000 export | Valid audit, named region layers, finite geometry, SPLINE/POLYLINE entities |
| UT-07 | Request R12 with native splines | Export rejected with an R2000 requirement |
| UT-08 | SVG preview data URI | Generated VTracer SVG round-trips without raster decoding |
Manual system and data tests
| ID | Procedure | Oracle |
|---|---|---|
| SYS-01 | Fresh clone; run uv sync --locked --dev and launch Streamlit | No undeclared setup step; application opens locally |
| SYS-02 | Upload each repository sample and vary color count and simplification | Preview and metrics update; downloads remain available |
| SYS-03 | Download SVG and DXF at 10 in and 254 mm | Equivalent physical size; expected layers and closed paths |
| SYS-04 | Use a low-resolution, gradient, photo, many-color, and corrupt input | Useful warning or rejection; no silent claim of fabrication readiness |
| CAD-01 | Import approved outputs into confirmed AutoCAD and IGEMS versions | Correct scale, layers, closure, holes, curves, and visible geometry |
| CUT-01 | Complete client-approved supervised cut | Adcut records acceptable or rejected result and reasons |
Schedule
- By November 2: freeze public samples and expected automated results; assign failures to GitHub issues.
- By November 9: run the full CI matrix and clean Windows installation test.
- By November 16: finish browser workflow, invalid-input, scaling, and export inspections.
- November 17-30: conduct client CAD and acceptance testing when files, software access, and a client representative are available.
- Before final delivery: rerun all automated tests, package checks, import tests, and the handoff checklist.
Entry, exit, and reporting
A test starts only with versioned code, identified input, recorded settings, and an expected result. A feature exits testing when required automated checks pass, manual evidence is stored, and no unresolved high-severity defect contradicts D1. Failures become GitHub issues with reproduction steps. Client-dependent tests remain “blocked,” never “passed,” until evidence exists.