parent
d3b62a19bf
commit
f6dcd677bd
13
RELEASE.md
13
RELEASE.md
|
@ -1,10 +1,21 @@
|
|||
# 版本更新记录
|
||||
|
||||
## 2.3.3(dev)
|
||||
## 2.3.4(dev)
|
||||
|
||||
**New**
|
||||
|
||||
- 用例执行过程中输出执行进度百分比;
|
||||
|
||||
**Fix**
|
||||
|
||||
- `env.sh` 增加清理 `pip` 缓存;
|
||||
|
||||
## 2.3.3
|
||||
|
||||
**Fix**
|
||||
|
||||
- 使用 `Xdotool` 检索窗口 ID 时,如果有多个窗口,则输出以“\n”结尾。在原始代码中,使用 `split(“\n”)` 直接拆分字符串可能会导致结果列表的最后一个元素为空字符串。在迭代窗口 ID 并将其转换为 `int` 类型时,这种情况会导致错误。感谢 [@zhao-george](https://github.com/zhao-george)
|
||||
- 图像识别(`image-center`)发布了新版本 `2023.11.22` [@zhao-george](https://github.com/zhao-george),OCR(`pdocr-rpc`)发布了新版本 `2023.11.17`,增加了识别的总耗时、每次识别间隔时间;
|
||||
|
||||
## 2.3.2(2023/11/14)
|
||||
|
||||
|
|
10
conftest.py
10
conftest.py
|
@ -592,8 +592,14 @@ def pytest_runtest_setup(item):
|
|||
|
||||
print() # 处理首行日志换行的问题
|
||||
current_item_count = (
|
||||
f"[{item.session.items.index(item) + 1}/{item.session.item_count}]"
|
||||
f"[{item.session.items.index(item) + 1}/{item.session.item_count}] "
|
||||
)
|
||||
try:
|
||||
current_item_percent = "{:.0f}%".format(
|
||||
int(item.session.items.index(item) + 1) / int(item.session.item_count) * 100
|
||||
)
|
||||
except:
|
||||
current_item_percent = ""
|
||||
try:
|
||||
rerun_text = (
|
||||
f" | <重跑第{item.execution_count - 1}次>" if item.execution_count > 1 else ""
|
||||
|
@ -603,7 +609,7 @@ def pytest_runtest_setup(item):
|
|||
logger.info(
|
||||
f"{LN}{FLAG_FEEL} {item.function.__name__} || "
|
||||
f"{str(item.function.__doc__).replace(LN, '').replace(' ', '')}{rerun_text} "
|
||||
f"{FLAG_FEEL} {current_item_count}"
|
||||
f"{FLAG_FEEL} {current_item_count} {current_item_percent}"
|
||||
)
|
||||
try:
|
||||
if item.execution_count >= (int(item.config.option.record_failed_case) + 1):
|
||||
|
|
1
env.sh
1
env.sh
|
@ -66,6 +66,7 @@ if [ "${env_retry}" = "true" ]; then
|
|||
fi
|
||||
echo -e "${flag_feel}安装 pip 包\n"
|
||||
|
||||
sudo pip3 cache purge
|
||||
sudo pip3 install -U pip > /tmp/env.log 2>&1
|
||||
sudo pip3 config set global.timeout 10000 > /tmp/env.log 2>&1
|
||||
sudo pip3 config set global.index-url ${pypi_mirror} > /tmp/env.log 2>&1
|
||||
|
|
|
@ -32,4 +32,4 @@ cp deepin-autotest-framework/pyproject.toml ${tmp_publish_dir_name}/
|
|||
cp deepin-autotest-framework/src/startproject.py ${tmp_publish_dir_name}/youqu/
|
||||
cd ${tmp_publish_dir_name}/
|
||||
python3 -m build
|
||||
twine upload dist/*
|
||||
#twine upload dist/*
|
|
@ -4,7 +4,7 @@ build-backend = "hatchling.build"
|
|||
|
||||
[project]
|
||||
name = "youqu"
|
||||
version = "2.3.3"
|
||||
version = "2.3.4"
|
||||
authors = [
|
||||
{ name = "mikigo", email = "huangmingqiang@uniontech.com" },
|
||||
]
|
||||
|
|
Loading…
Reference in New Issue