Testing and Verification
The scaffold itself has no automated test framework, so verification uses a manual process.
-
Generate a test project
终端窗口 npm run devChoose a frontend / backend combination and a project name to generate into the working directory.
-
Verify the frontend
终端窗口 cd <project>/frontendnpm installnpm run buildThe build should complete without errors. During development,
npm run devlets you check page rendering and API integration. -
Verify the backend
终端窗口 # Pythoncd <project>/backenduv syncJWT_SECRET_KEY="$(openssl rand -base64 48)" uv run uvicorn app.main:app --reload --port 8088# Javacd <project>/backendmvn spring-boot:runConfirm the backend starts, initializes the database and writes seed data, and that you can log in with
admin / 123456. -
Verify Docker
终端窗口 docker build -t test .docker run -p 5173:5173 -e JWT_SECRET_KEY="$(openssl rand -base64 48)" testVisit http://localhost:5173 to confirm the frontend loads and login works.
Menu and Data Management Checks
Section titled “Menu and Data Management Checks”- Log in as an administrator, reorder groups and move an item across groups in menu management, save, refresh, and confirm the order persists.
- Create a custom menu, grant it to a role, and confirm it appears in the dynamic sidebar; delete it and confirm its permission and grants disappear.
- Export full data, confirm the download and one-time password dialog, and verify the password cannot be displayed again after closing.
- Import the archive with the correct password and confirm ordinary APIs return
503during import and the job ends withsuccess. - After a successful import, confirm old tokens return
401and an administrator from the archive can log in. - Try a wrong password, damaged archive, and incompatible version; confirm rollback and that ordinary APIs recover.
Combinations to Cover
Section titled “Combinations to Cover”At minimum, verify the combinations affected by your changes. Because frontend and backend pair freely, when changing a frontend template you should also verify it against both the Python and Java backends; the same applies when changing a backend template.
Quick Verification Checklist
Section titled “Quick Verification Checklist”-
npm run build(scaffold) passes - The generated project’s frontend build passes
- The backend starts and completes initialization
-
admin / 123456can log in - Permission menus display correctly by role
- Menu ordering, cross-group moves, and custom-menu permissions work
- The export archive decrypts and contains the full table manifest
- A successful import freezes ordinary requests and invalidates every session
- A failed import rolls back and releases the freeze
- The Docker image builds and runs