-
Notifications
You must be signed in to change notification settings - Fork 0
/
run-tests-python.txt
186 lines (138 loc) · 4.9 KB
/
run-tests-python.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
Running automated test file(s):
===============================================================================
Running: pylint ./src
--------------------------------------------------------------------
Your code has been rated at 10.00/10 (previous run: 10.00/10, +0.00)
real 0m0.415s
user 0m0.337s
sys 0m0.080s
===============================================================================
Running: ruff check --ignore E501 ./src
real 0m0.081s
user 0m0.033s
sys 0m0.049s
===============================================================================
Running: pyright --stats ./src
Found 2 source files
pyright 1.1.347
0 errors, 0 warnings, 0 informations
Completed in 0.562sec
Analysis stats
Total files parsed and bound: 20
Total files checked: 2
Timing stats
Find Source Files: 0sec
Read Source Files: 0.01sec
Tokenize: 0.05sec
Parse: 0.06sec
Resolve Imports: 0.06sec
Bind: 0.04sec
Check: 0.02sec
Detect Cycles: 0sec
real 0m1.211s
user 0m1.216s
sys 0m0.165s
===============================================================================
Running: bandit --verbose --recursive ./src
[main] INFO profile include tests: None
[main] INFO profile exclude tests: None
[main] INFO cli include tests: None
[main] INFO cli exclude tests: None
[main] INFO running on Python 3.12.1
Run started:2024-01-17 05:45:13.633620
Files in scope (2):
./src/helloworld/__init__.py (score: {SEVERITY: 0, CONFIDENCE: 0})
./src/helloworld/hello_world.py (score: {SEVERITY: 0, CONFIDENCE: 0})
Files excluded (2):
./src/helloworld/__pycache__/__init__.cpython-312.pyc
./src/helloworld/__pycache__/hello_world.cpython-312.pyc
Test results:
No issues identified.
Code scanned:
Total lines of code: 4
Total lines skipped (#nosec): 0
Total potential issues skipped due to specifically being disabled (e.g., #nosec BXXX): 0
Run metrics:
Total issues (by severity):
Undefined: 0
Low: 0
Medium: 0
High: 0
Total issues (by confidence):
Undefined: 0
Low: 0
Medium: 0
High: 0
Files skipped (0):
real 0m0.289s
user 0m0.212s
sys 0m0.078s
===============================================================================
Running: refurb ./src
real 0m1.100s
user 0m1.022s
sys 0m0.079s
===============================================================================
python -m doctest -v ./src/helloworld/hello_world.py ./src/helloworld/__init__.py
2 items had no tests:
hello_world
hello_world.hello
0 tests in 2 items.
0 passed and 0 failed.
Test passed.
1 items had no tests:
__init__
0 tests in 1 items.
0 passed and 0 failed.
Test passed.
real 0m0.131s
user 0m0.075s
sys 0m0.058s
===============================================================================
==> .coveragerc <==
[run]
omit = __init__.py, *_test.py
Running: PYTHONPATH=./src pytest --verbose --cov=. --cov-branch --cov-report=term-missing --cov-report=xml:.coverage.xml -p no:randomly ./test
============================= test session starts ==============================
platform linux -- Python 3.12.1, pytest-7.4.3, pluggy-1.3.0 -- /home/vpayno/.pyenv/versions/3.12.1/bin/python
cachedir: .pytest_cache
rootdir: /home/vpayno/git_vpayno/exercism-workspace/python/hello-world
configfile: pytest.ini
plugins: anyio-4.2.0, libtmux-0.25.0, pylama-8.4.1, cov-4.1.0, datafiles-3.0.0, docker-2.0.1, subprocess-1.5.0, typeguard-4.1.5
collecting ... collected 1 item
test/hello_world_test.py::HelloWorldTest::test_say_hi PASSED [100%]
---------- coverage: platform linux, python 3.12.1-final-0 -----------
Name Stmts Miss Branch BrPart Cover Missing
------------------------------------------------------------
hello_world.py 2 0 0 0 100%
------------------------------------------------------------
TOTAL 2 0 0 0 100%
Coverage XML written to file .coverage.xml
============================== 1 passed in 0.04s ===============================
real 0m0.836s
user 0m0.695s
sys 0m0.141s
===============================================================================
Running: coverage report --show-missing
Name Stmts Miss Branch BrPart Cover Missing
------------------------------------------------------------
hello_world.py 2 0 0 0 100%
------------------------------------------------------------
TOTAL 2 0 0 0 100%
real 0m0.156s
user 0m0.100s
sys 0m0.057s
===============================================================================
coverage annotate
real 0m0.163s
user 0m0.109s
sys 0m0.056s
tail -n 10000 ./*,cover | grep -E -C 3 '^> def |^! '
> def hello():
> """Say hello."""
===============================================================================
Running: misspell ./src/helloworld/hello_world.py ./src/helloworld/__init__.py
real 0m0.020s
user 0m0.020s
sys 0m0.011s
===============================================================================