43 Star 236 Fork 58

xupingmao / xnote

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
runtest.sh 728 Bytes
一键复制 编辑 原始数据 按行查看 历史
xupingmao 提交于 2022-03-06 18:40 . Update 笔记本排序
# 目前只适用于Mac本地环境的测试
# 构建最新的css、js文件
python3 tools/build.py
rm -rf testdata
python3 tools/run-test.py
# echo -e '\n\nrun test in python-2.7'
# python2 -m pytest tests --doctest-modules --cov handlers --cov xutils --cov core
# echo 'run test in python-3.4'
# /usr/local/bin/python3.4 -m pytest tests --doctest-modules --cov handlers --cov xutils --cov core
echo -e '\n\nrun test in python-3.7'
python3 tools/run-test.py
echo -e '\n\nrun test in python-3.8'
source py3.8/bin/activate
pip3 install -r config/requirements.txt
pip3 install -r config/requirements.test.txt
python3 tools/run-test.py
deactivate
# clean test dir
rm -rf testdata
# 生成html结果
python3 -m coverage html
Python
1
https://gitee.com/xupingmao/xnote.git
git@gitee.com:xupingmao/xnote.git
xupingmao
xnote
xnote
master

搜索帮助

53164aa7 5694891 3bd8fe86 5694891