wangweimin c5b2526675 feat: add `pin.put_actions()` 3 سال پیش
..
assets fb73577852 test: adjust test code 5 سال پیش
.percy.yml 5354ace934 test: set Selenium browser window size 5 سال پیش
1.basic.py b0c1bf6b92 feat: auto hold session as needed 3 سال پیش
10.aiohttp_multiple_session_impliment.py 798b70cc27 maint: reformat code 4 سال پیش
11.charts.py 26a3aa38a9 fix: bokeh show chart error 4 سال پیش
12.cors.py fe6254c55c test update 3 سال پیش
13.misc.py 8024298d41 update test case 4 سال پیش
14.django_multiple_session_impliment.py 798b70cc27 maint: reformat code 4 سال پیش
15.tornado_http_multiple_session.py 9ccad2062d fix: `tornado_http_multiple_session.py` test case cdn issue 4 سال پیش
16.path_deploy.py 757e9926f8 test: update `path_deploy` test case 4 سال پیش
17.fastapi_backend.py a988d03539 feat: support FastAPI and Starlette 4 سال پیش
18.pin_test.py c5b2526675 feat: add `pin.put_actions()` 3 سال پیش
2.script_mode.py 798b70cc27 maint: reformat code 4 سال پیش
3.django_backend.py 798b70cc27 maint: reformat code 4 سال پیش
4.flask_backend.py 798b70cc27 maint: reformat code 4 سال پیش
5.coroutine_based_session.py 798b70cc27 maint: reformat code 4 سال پیش
6.flask_coroutine.py 798b70cc27 maint: reformat code 4 سال پیش
7.multiple_session_impliment.py 798b70cc27 maint: reformat code 4 سال پیش
8.flask_multiple_session_impliment.py 798b70cc27 maint: reformat code 4 سال پیش
9.aiohttp_backend.py 798b70cc27 maint: reformat code 4 سال پیش
Readme.md 597b42a1f6 test: use run_all.py script to run all test 5 سال پیش
output_diff.py 798b70cc27 maint: reformat code 4 سال پیش
run_all.sh f0d622a7f4 test: fix a case 5 سال پیش
template.py cd4850d9ce feat: add `output.put_button()` to output a single button 3 سال پیش
util.py fe6254c55c test update 3 سال پیش

Readme.md

Test

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

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

编写测试用例

// todo

运行测试用例

pip3 install -e ".[dev]" 
npm install -D @percy/agent
export PERCY_TOKEN=[projects-token]

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