wangweimin c7f4c5f912 update `put_markdown()` usage il y a 3 ans
..
assets fb73577852 test: adjust test code il y a 5 ans
.percy.yml 5354ace934 test: set Selenium browser window size il y a 5 ans
1.basic.py b0c1bf6b92 feat: auto hold session as needed il y a 3 ans
10.aiohttp_multiple_session_impliment.py 798b70cc27 maint: reformat code il y a 4 ans
11.charts.py 26a3aa38a9 fix: bokeh show chart error il y a 4 ans
12.cors.py 88a6391d08 lint.yml: Fix flake8 --select=E3,W391,E401,E231,E701 il y a 3 ans
13.misc.py 8024298d41 update test case il y a 4 ans
14.django_multiple_session_impliment.py 798b70cc27 maint: reformat code il y a 4 ans
15.tornado_http_multiple_session.py 9ccad2062d fix: `tornado_http_multiple_session.py` test case cdn issue il y a 4 ans
16.path_deploy.py f8869f9c42 fix `path_deploy()` test case il y a 3 ans
17.fastapi_backend.py a988d03539 feat: support FastAPI and Starlette il y a 4 ans
18.pin_test.py c5b2526675 feat: add `pin.put_actions()` il y a 3 ans
2.script_mode.py 798b70cc27 maint: reformat code il y a 4 ans
3.django_backend.py 798b70cc27 maint: reformat code il y a 4 ans
4.flask_backend.py 798b70cc27 maint: reformat code il y a 4 ans
5.coroutine_based_session.py 798b70cc27 maint: reformat code il y a 4 ans
6.flask_coroutine.py 798b70cc27 maint: reformat code il y a 4 ans
7.multiple_session_impliment.py 798b70cc27 maint: reformat code il y a 4 ans
8.flask_multiple_session_impliment.py 798b70cc27 maint: reformat code il y a 4 ans
9.aiohttp_backend.py 798b70cc27 maint: reformat code il y a 4 ans
Readme.md 597b42a1f6 test: use run_all.py script to run all test il y a 5 ans
output_diff.py 798b70cc27 maint: reformat code il y a 4 ans
run_all.sh f0d622a7f4 test: fix a case il y a 5 ans
template.py c7f4c5f912 update `put_markdown()` usage il y a 3 ans
util.py c79ce927e3 code maintenance il y a 3 ans

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