Commit ffa65ccf authored by Wallen姚文辉's avatar Wallen姚文辉

新增测试覆盖率相关代码

parent 33525d8c
This diff is collapsed.
......@@ -79,6 +79,9 @@ if __name__ == '__main__':
from controller.appUitest import *
server.app.register_blueprint(apptool)
from controller.codeCover import *
server.app.register_blueprint(codecover)
# server.app.run(host="0.0.0.0", port=8000, debug=True)
server.socketio.run(server.app, host="0.0.0.0", port=8000, debug=True,allow_unsafe_werkzeug=True)
......
......@@ -140,7 +140,16 @@ class Audituser(db.Model):
id=Column(Integer, primary_key=True,autoincrement=True)
user_id=Column(Integer, nullable=False,comment='可审核人员id')
class CodeCoverLog(db.Model):
__tablename__="code_cover_log"
__table_args__ = {'mysql_engine' : 'InnoDB', 'mysql_charset' : 'utf8mb4'}
id=Column(Integer, primary_key=True,autoincrement=True)
user_id=Column(Integer, nullable=False,comment='人员id')
product_key=Column(String(64), nullable=False,comment='项目的key')
product=Column(String(64), nullable=False,comment='项目名')
commit_source=Column(String(64), nullable=False,comment='提交初始key')
commit_target=Column(String(64), nullable=False,comment='提交结束key')
sort=Column(Integer, nullable=False,comment='排序值')
if __name__=="__main__":
with server.app.app_context():
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment