wangweimin df42253032 upgrade percy to fix test CI hai 1 ano
..
assets fb73577852 test: adjust test code %!s(int64=5) %!d(string=hai) anos
.percy.yml df42253032 upgrade percy to fix test CI hai 1 ano
1.basic.py b0c1bf6b92 feat: auto hold session as needed %!s(int64=3) %!d(string=hai) anos
10.aiohttp_multiple_session_impliment.py 798b70cc27 maint: reformat code %!s(int64=4) %!d(string=hai) anos
11.charts.py df42253032 upgrade percy to fix test CI hai 1 ano
12.cors.py 88a6391d08 lint.yml: Fix flake8 --select=E3,W391,E401,E231,E701 %!s(int64=3) %!d(string=hai) anos
13.misc.py df42253032 upgrade percy to fix test CI hai 1 ano
14.django_multiple_session_impliment.py 275cbce409 update test case %!s(int64=2) %!d(string=hai) anos
15.tornado_http_multiple_session.py 9ccad2062d fix: `tornado_http_multiple_session.py` test case cdn issue %!s(int64=4) %!d(string=hai) anos
16.path_deploy.py df42253032 upgrade percy to fix test CI hai 1 ano
17.fastapi_backend.py a988d03539 feat: support FastAPI and Starlette %!s(int64=4) %!d(string=hai) anos
18.pin_test.py df42253032 upgrade percy to fix test CI hai 1 ano
2.script_mode.py 33139457b6 fix: auto hold don't work on script mode %!s(int64=3) %!d(string=hai) anos
3.django_backend.py 798b70cc27 maint: reformat code %!s(int64=4) %!d(string=hai) anos
4.flask_backend.py 798b70cc27 maint: reformat code %!s(int64=4) %!d(string=hai) anos
5.coroutine_based_session.py 798b70cc27 maint: reformat code %!s(int64=4) %!d(string=hai) anos
6.flask_coroutine.py eb9d11ab37 update tests %!s(int64=2) %!d(string=hai) anos
7.multiple_session_impliment.py 798b70cc27 maint: reformat code %!s(int64=4) %!d(string=hai) anos
8.flask_multiple_session_impliment.py eb9d11ab37 update tests %!s(int64=2) %!d(string=hai) anos
9.aiohttp_backend.py 798b70cc27 maint: reformat code %!s(int64=4) %!d(string=hai) anos
Readme.md df42253032 upgrade percy to fix test CI hai 1 ano
output_diff.py 798b70cc27 maint: reformat code %!s(int64=4) %!d(string=hai) anos
run_all.sh f0d622a7f4 test: fix a case %!s(int64=5) %!d(string=hai) anos
template.py df42253032 upgrade percy to fix test CI hai 1 ano
util.py df42253032 upgrade percy to fix test CI hai 1 ano

Readme.md

Test

使用 selenium 进行 + percy 进行测试。

测试的原理为使用selenium打开编写的PyWebIO测试服务,在页面上进行模拟操作, 将一些时刻的网页快照使用percy进行保存,percy可以比较不同提交之间的相同页面的区别。

编写测试用例

// todo

运行测试用例

pip3 install -r ../requirements.txt
npm install --save-dev @percy/cli
export PERCY_TOKEN=[projects-token]

npx percy exec -- python3 1.basic.py auto