wangweimin f0d622a7f4 test: fix a case 5 anni fa
..
assets fb73577852 test: adjust test code 5 anni fa
.percy.yml 5354ace934 test: set Selenium browser window size 5 anni fa
1.basic.py fb73577852 test: adjust test code 5 anni fa
10.aiohttp_multiple_session_impliment.py ee1fe10e4d feat: support aiohttp backend 🌟 5 anni fa
2.script_mode.py 707d85313e test: reformat code 5 anni fa
3.django_backend.py f0d622a7f4 test: fix a case 5 anni fa
4.flask_backend.py 707d85313e test: reformat code 5 anni fa
5.coroutine_based_session.py fb73577852 test: adjust test code 5 anni fa
6.flask_coroutine.py fb73577852 test: adjust test code 5 anni fa
7.multiple_session_impliment.py 707d85313e test: reformat code 5 anni fa
8.flask_multiple_session_impliment.py f0d622a7f4 test: fix a case 5 anni fa
9.aiohttp_backend.py ee1fe10e4d feat: support aiohttp backend 🌟 5 anni fa
Readme.md 597b42a1f6 test: use run_all.py script to run all test 5 anni fa
output_diff.py fb73577852 test: adjust test code 5 anni fa
run_all.sh f0d622a7f4 test: fix a case 5 anni fa
template.py f0d622a7f4 test: fix a case 5 anni fa
util.py 5354ace934 test: set Selenium browser window size 5 anni fa

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