修改流水线:基于webhook的代码push事件触发
这是一个使用 Tauri 构建的简单桌面应用程序示例。
# 安装依赖 pnpm install # 运行开发服务器 pnpm dev # 运行测试 pnpm test # 运行测试并生成覆盖率报告 pnpm test:coverage # 运行测试并生成详细的测试用例报告 pnpm test:detailed-report # 运行测试并生成覆盖率报告(包括HTML报告) pnpm test:run # 启动带有UI界面的测试(包含详细的测试用例信息) pnpm test:ui
使用镜像:docker.jianmuhub.com/296969/node20:20-bookworm-slim 在项目根目录下运行:
npm install -g pnpm cd $PROJECTROOT ls -l cd $PROJECTROOT pnpm install pnpm test:detailed-report pnpm test:coverage
用于生成详细测试和代码覆盖率报告
详细用例报告路径在./test-results/detailed-report.html 覆盖率报告路径在./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 生成代码覆盖率报告,位于 coverage/index.html
pnpm test:coverage
coverage/index.html
# 构建生产版本 pnpm build
版权所有:中国计算机学会技术支持:开源发展技术委员会 京ICP备13000930号-9 京公网安备 11010802047560号
Tauri Example Project
这是一个使用 Tauri 构建的简单桌面应用程序示例。
文档
快速开始
使用建木Shell节点命令
使用镜像:docker.jianmuhub.com/296969/node20:20-bookworm-slim 在项目根目录下运行:
用于生成详细测试和代码覆盖率报告
详细用例报告路径在./test-results/detailed-report.html 覆盖率报告路径在./coverage/index.html
测试
项目提供了多种方式来查看测试结果:
详细测试报告:运行
pnpm test:detailed-report生成包含每个测试用例详细信息的HTML报告,位于test-results/detailed-report.html交互式UI界面:运行
pnpm test:ui启动本地服务器,访问 http://localhost:51204/__vitest__/ 查看实时测试结果代码覆盖率报告:运行
pnpm test:coverage生成代码覆盖率报告,位于coverage/index.html构建