Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
API-Automation
Overview
Overview
Details
Activity
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
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
文鑫
API-Automation
Commits
7798cfa5
Commit
7798cfa5
authored
Jul 10, 2020
by
文鑫
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
增加conftest、pytest.ini文件
parent
ecd1f07b
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
21 additions
and
0 deletions
+21
-0
conftest.py
+15
-0
pytest.ini
+6
-0
No files found.
conftest.py
0 → 100644
View file @
7798cfa5
# _*_ coding:utf-8 _*_
_author_
=
'wenxin'
_date_
=
'2020/7/10 16:15'
def
pytest_collection_modifyitems
(
items
):
"""
测试用例收集完成时,将收集到的item的name和nodeid的中文显示在控制台上
:return:
"""
for
item
in
items
:
item
.
name
=
item
.
name
.
encode
(
"utf-8"
)
.
decode
(
"unicode_escape"
)
print
(
item
.
name
)
item
.
_nodeid
=
item
.
nodeid
.
encode
(
"utf-8"
)
.
decode
(
"unicode_escape"
)
print
(
item
.
_nodeid
)
\ No newline at end of file
pytest.ini
0 → 100644
View file @
7798cfa5
# pytest.ini
[pytest]
addopts
=
--alluredir ./report --clean-alluredir
\ No newline at end of file
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