Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
T
test_platform
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Wallen姚文辉
test_platform
Commits
ffa65ccf
Commit
ffa65ccf
authored
Mar 27, 2025
by
Wallen姚文辉
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
新增测试覆盖率相关代码
parent
33525d8c
Changes
3
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
414 additions
and
1 deletion
+414
-1
codeCover.py
controller/codeCover.py
+401
-0
mian.py
mian.py
+3
-0
Model.py
model/Model.py
+10
-1
No files found.
controller/codeCover.py
0 → 100644
View file @
ffa65ccf
This diff is collapsed.
Click to expand it.
mian.py
View file @
ffa65ccf
...
...
@@ -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
)
...
...
model/Model.py
View file @
ffa65ccf
...
...
@@ -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
():
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment