File tree Expand file tree Collapse file tree 3 files changed +18
-4
lines changed
plugins/github/plugins/publish Expand file tree Collapse file tree 3 files changed +18
-4
lines changed Original file line number Diff line number Diff line change @@ -11,6 +11,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/lang/zh-CN/
11
11
12
12
- 修复商店测试中获取 PyPI 数据出错会直接退出的问题
13
13
- 修复商店测试时出现缺少 author_id 报错的问题
14
+ - 修复测试中输出插件测试结果不完善的问题
14
15
15
16
## [ 4.0.1] - 2024-11-18
16
17
Original file line number Diff line number Diff line change @@ -107,8 +107,14 @@ async def validate_plugin_info_from_issue(
107
107
raw_data ["test_output" ] = test_output
108
108
raw_data ["metadata" ] = bool (metadata )
109
109
110
- logger .info (f"插件测试结果: { test_result } " )
111
- logger .info (f"插件元数据: { metadata } " )
110
+ # 输出插件测试相关信息
111
+ logger .info (
112
+ f"插件 { project_link } ({ test_result .version } ) 加载{ '成功' if test_result .load else '失败' } ,运行{ '开始' if test_result .run else '失败' } "
113
+ )
114
+ logger .info (f"插件元数据:{ metadata } " )
115
+ logger .info ("插件测试输出:" )
116
+ for output in test_output :
117
+ logger .info (output )
112
118
113
119
# 验证插件相关信息
114
120
result = validate_info (PublishType .PLUGIN , raw_data , previous_data )
Original file line number Diff line number Diff line change @@ -43,14 +43,21 @@ async def validate_plugin(
43
43
"3.12"
44
44
)
45
45
46
- # 获取测试结果
47
- click .echo (f"测试结果:{ plugin_test_result } " )
48
46
plugin_test_load = plugin_test_result .load
49
47
plugin_test_output = "\n " .join (plugin_test_result .outputs )
50
48
plugin_test_version = plugin_test_result .version
51
49
plugin_test_env = plugin_test_result .test_env
52
50
plugin_metadata = plugin_test_result .metadata
53
51
52
+ # 输出插件测试相关信息
53
+ click .echo (
54
+ f"插件 { project_link } ({ plugin_test_version } ) 加载{ '成功' if plugin_test_load else '失败' } ,运行{ '开始' if plugin_test_result .run else '失败' } "
55
+ )
56
+ click .echo (f"插件元数据:{ plugin_metadata } " )
57
+ click .echo ("插件测试输出:" )
58
+ for output in plugin_test_output :
59
+ click .echo (output )
60
+
54
61
if previous_plugin is None :
55
62
# 使用商店插件数据作为新的插件数据
56
63
raw_data = store_plugin .model_dump ()
You can’t perform that action at this time.
0 commit comments