pytest + allure 數據Check
配置sql,根據sql查詢結果,進行數據對比校驗# druid_sql_data_check
pytest + allure 數據最對比,最終展示子頁面上,方便用戶對數據問題進行排查
python包
pip install pytest==4.0.2
pip install py.test
pip install pytest-allure-adaptor
Mac下安裝allure
brew install allure
執行測試用例,生成測試報告
python3 $(which py.test) -v --alluredir result
清除歷史報告,將測試用例的報告轉化成可展示優美的HTML報告
allure generate result -o report --clean
在本地創建服務,展示
allure open -h 127.0.0.1 -p 8083 report