Files
uiautomator2/Makefile
codeskyblue c25a3e512e use u2.jar instead of test apk (#1004)
* use u2.jar instead of test apk
* update toast api, use d.last_toast to get toast, d.clear_toast() to reset it
* add more unittests
* fix multi thread when use connect
2024-07-17 00:07:19 +08:00

36 lines
762 B
Makefile

.PHONY: build
format:
poetry run isort . -m HANGING_INDENT -l 120
test:
poetry run pytest -v mobile_tests/
covtest:
poetry run coverage run -m pytest -v demo_tests tests
poetry run coverage html --include 'uiautomator2/**'
cov:
poetry run pytest -v tests/ \
--cov-config=.coveragerc \
--cov uiautomator2 \
--cov-report xml \
--cov-report term
sync:
cd uiautomator2/assets; ./sync.sh; cd -
build:
poetry self add "poetry-dynamic-versioning[plugin]"
cd uiautomator2/assets; ./sync.sh; cd -
rm -fr dist
poetry build -vvv
init:
if [ ! -f "ApiDemos-debug.apk" ]; then \
wget https://github.com/appium/appium/raw/master/packages/appium/sample-code/apps/ApiDemos-debug.apk; \
fi
poetry run python -m adbutils -i ./ApiDemos-debug.apk