Skip to content

Commit fdcbf56

Browse files
committed
fix: Update CI badges and improve Codecov integration
- Fix broken badges in README.md by using correct GitHub Actions paths - Update CI workflow to use Codecov v4.0.1 with proper configuration - Replace static coverage badge with dynamic Codecov badge - Add proper repository slug and token configuration for coverage upload - Remove non-existent workflow badges that were causing 404 errors This ensures badges display correctly and coverage reporting works properly.
1 parent bf19c44 commit fdcbf56

File tree

9 files changed

+13
-15
lines changed

9 files changed

+13
-15
lines changed

.github/workflows/ci.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -82,12 +82,14 @@ jobs:
8282
uv run pytest tests/ -v --cov=. --cov-report=xml --cov-report=term-missing --tb=short --ignore=tests/test_integration_execute.py
8383
8484
- name: Upload coverage to Codecov
85-
uses: codecov/codecov-action@v3
85+
uses: codecov/codecov-action@v4.0.1
8686
with:
87+
slug: lihuacai168/jmeter_toolit
88+
name: jmeter-toolkit-coverage
89+
token: ${{ secrets.CODECOV_TOKEN }}
8790
file: ./coverage.xml
8891
flags: unittests
89-
name: codecov-umbrella
90-
fail_ci_if_error: false
92+
fail_ci_if_error: true
9193

9294
lint:
9395
name: Code Quality

README.md

Lines changed: 8 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,9 @@
11
# JMeter Toolkit v2.0
22

3-
![CI/CD](https://github.com/YOUR_USERNAME/jmeter_toolit/workflows/CI/CD%20Pipeline/badge.svg)
4-
![Code Quality](https://github.com/YOUR_USERNAME/jmeter_toolit/workflows/Code%20Quality/badge.svg)
5-
![Security](https://github.com/YOUR_USERNAME/jmeter_toolit/workflows/Security%20Scan/badge.svg)
3+
![CI/CD](https://github.com/lihuacai168/jmeter_toolit/actions/workflows/ci.yml/badge.svg)
64
![Python](https://img.shields.io/badge/python-3.9%2B-blue.svg)
75
![FastAPI](https://img.shields.io/badge/FastAPI-0.104%2B-green.svg)
8-
![Coverage](https://img.shields.io/badge/coverage-41%25-yellow.svg)
6+
[![codecov](https://codecov.io/gh/lihuacai168/jmeter_toolit/branch/master/graph/badge.svg)](https://codecov.io/gh/lihuacai168/jmeter_toolit)
97
![License](https://img.shields.io/badge/license-MIT-blue.svg)
108

119
JMeter Toolkit 是一个专门为 JMeter 测试管理而设计的强大工具集。
@@ -38,15 +36,13 @@ JMeter Toolkit 是一个专门为 JMeter 测试管理而设计的强大工具集
3836

3937

4038
# 使用演示
41-
## 1. 上传,执行,报告一条龙
42-
![jmx-upload-execute-report.gif](docs%2Fjmx-upload-execute-report.gif)
43-
44-
## 2. 上传JMX文件并执行
45-
![upload-execute.png](docs%2Fupload-execute.png)
46-
## 3. 查看报告
47-
![report.png](docs%2Freport.png)
48-
# 快速启动
39+
## 1. JMeter Toolkit 主界面
40+
![main.png](docs/main.png)
41+
## 2. Jmeter 任务和报告管理
42+
![tasks.png](docs/tasks.png)
4943

44+
## 3. 报告详情
45+
![report_detail.png](docs/report_detail.png)
5046
## 开发环境
5147

5248
### 1. 克隆项目

docs/jmx-upload-execute-report.gif

-4.34 MB
Binary file not shown.

docs/main.png

257 KB
Loading

docs/report.png

-200 KB
Binary file not shown.

docs/report_detail.png

224 KB
Loading

docs/tasks.png

292 KB
Loading

docs/upload-execute.png

-167 KB
Binary file not shown.

task_report.png

314 KB
Loading

0 commit comments

Comments
 (0)