feat: .devops/未命名项目.yml
这是一个使用 Tauri 构建的简单桌面应用程序示例。
# 安装依赖 pnpm install # 运行开发服务器 pnpm dev # 运行测试(不退出,一直监听文件修改并在检测到修改后再次测试) pnpm test # 运行测试并生成覆盖率报告 pnpm test:coverage # 运行测试并生成详细的测试用例报告 pnpm test:detailed-report # 运行测试(无UI模式) pnpm test:run # 启动带有UI界面的测试(包含详细的测试用例信息) pnpm test:ui
使用镜像:docker.jianmuhub.com/296969/node20:20-bookworm-slim 在项目根目录下运行:
npm install -g pnpm cd $PROJECTROOT pnpm install pnpm test:detailed-report pnpm test:coverage
用于生成详细测试和代码覆盖率报告
详细用例报告路径在./test-results/detailed-report.html 覆盖率报告路径在./test-results/coverage/index.html
项目提供了多种方式来查看测试结果:
详细测试报告:运行 pnpm test:detailed-report 生成包含每个测试用例详细信息的HTML报告,位于 test-results/detailed-report.html
pnpm test:detailed-report
test-results/detailed-report.html
交互式UI界面:运行 pnpm test:ui 启动本地服务器,访问 http://localhost:51204/__vitest__/ 查看实时测试结果
pnpm test:ui
代码覆盖率报告:运行 pnpm test:coverage 生成代码覆盖率报告,位于 test-results/coverage/index.html
pnpm test:coverage
test-results/coverage/index.html
基本测试运行:运行 pnpm test:run 以无UI模式运行测试并在控制台显示结果
pnpm test:run
# 构建生产版本 pnpm build
tauri-example
©Copyright 2023 CCF 开源发展委员会 Powered by Trustie& IntelliDE 京ICP备13000930号
Tauri Example Project
这是一个使用 Tauri 构建的简单桌面应用程序示例。
文档
快速开始
使用建木Shell节点命令
使用镜像:docker.jianmuhub.com/296969/node20:20-bookworm-slim 在项目根目录下运行:
用于生成详细测试和代码覆盖率报告
详细用例报告路径在./test-results/detailed-report.html 覆盖率报告路径在./test-results/coverage/index.html
测试
项目提供了多种方式来查看测试结果:
详细测试报告:运行
pnpm test:detailed-report生成包含每个测试用例详细信息的HTML报告,位于test-results/detailed-report.html交互式UI界面:运行
pnpm test:ui启动本地服务器,访问 http://localhost:51204/__vitest__/ 查看实时测试结果代码覆盖率报告:运行
pnpm test:coverage生成代码覆盖率报告,位于test-results/coverage/index.html基本测试运行:运行
pnpm test:run以无UI模式运行测试并在控制台显示结果构建