-
Notifications
You must be signed in to change notification settings - Fork 0
/
run-tests-python.txt
198 lines (148 loc) · 5.53 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
186
187
188
189
190
191
192
193
194
195
196
197
Running automated test file(s):
===============================================================================
Running: pylint ./src
-------------------------------------------------------------------
Your code has been rated at 10.00/10 (previous run: 8.75/10, +1.25)
real 0m0.415s
user 0m0.349s
sys 0m0.067s
===============================================================================
Running: ruff check --ignore E501 ./src
real 0m0.091s
user 0m0.039s
sys 0m0.057s
===============================================================================
Running: pyright --stats ./src
Found 2 source files
pyright 1.1.347
0 errors, 0 warnings, 0 informations
Completed in 0.501sec
Analysis stats
Total files parsed and bound: 20
Total files checked: 2
Timing stats
Find Source Files: 0sec
Read Source Files: 0sec
Tokenize: 0.03sec
Parse: 0.03sec
Resolve Imports: 0.04sec
Bind: 0.04sec
Check: 0.03sec
Detect Cycles: 0sec
real 0m1.330s
user 0m1.046s
sys 0m0.155s
===============================================================================
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:42:27.660965
Files in scope (2):
./src/guidos_gorgeous_lasagna/__init__.py (score: {SEVERITY: 0, CONFIDENCE: 0})
./src/guidos_gorgeous_lasagna/lasagna.py (score: {SEVERITY: 0, CONFIDENCE: 0})
Files excluded (0):
Test results:
No issues identified.
Code scanned:
Total lines of code: 33
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.270s
user 0m0.200s
sys 0m0.072s
===============================================================================
Running: refurb ./src
real 0m1.109s
user 0m1.020s
sys 0m0.091s
===============================================================================
python -m doctest -v ./src/guidos_gorgeous_lasagna/__init__.py ./src/guidos_gorgeous_lasagna/lasagna.py
1 items had no tests:
__init__
0 tests in 1 items.
0 passed and 0 failed.
Test passed.
4 items had no tests:
lasagna
lasagna.bake_time_remaining
lasagna.elapsed_time_in_minutes
lasagna.preparation_time_in_minutes
0 tests in 4 items.
0 passed and 0 failed.
Test passed.
real 0m0.138s
user 0m0.076s
sys 0m0.064s
===============================================================================
==> .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/guidos-gorgeous-lasagna
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 5 items
test/lasagna_test.py::LasagnaTest::test_EXPECTED_BAKE_TIME PASSED [ 20%]
test/lasagna_test.py::LasagnaTest::test_bake_time_remaining PASSED [ 40%]
test/lasagna_test.py::LasagnaTest::test_docstrings_were_written PASSED [ 60%]
test/lasagna_test.py::LasagnaTest::test_elapsed_time_in_minutes PASSED [ 80%]
test/lasagna_test.py::LasagnaTest::test_preparation_time_in_minutes PASSED [100%]
---------- coverage: platform linux, python 3.12.1-final-0 -----------
Name Stmts Miss Branch BrPart Cover Missing
--------------------------------------------------------
lasagna.py 8 0 0 0 100%
--------------------------------------------------------
TOTAL 8 0 0 0 100%
Coverage XML written to file .coverage.xml
============================== 5 passed in 0.06s ===============================
real 0m0.909s
user 0m0.773s
sys 0m0.138s
===============================================================================
Running: coverage report --show-missing
Name Stmts Miss Branch BrPart Cover Missing
--------------------------------------------------------
lasagna.py 8 0 0 0 100%
--------------------------------------------------------
TOTAL 8 0 0 0 100%
real 0m0.171s
user 0m0.104s
sys 0m0.069s
===============================================================================
coverage annotate
real 0m0.152s
user 0m0.106s
sys 0m0.048s
tail -n 10000 ./*,cover | grep -E -C 3 '^> def |^! '
> def bake_time_remaining(elapsed_bake_time: int) -> int:
> """Calculate the bake time remaining.
--
> def preparation_time_in_minutes(number_of_layers: int) -> int:
> """Calculate preparation time.
--
> def elapsed_time_in_minutes(number_of_layers: int, actual_minutes_in_oven: int) -> int:
> """Calculate elapsed preparing and baking time.
===============================================================================
Running: misspell ./src/guidos_gorgeous_lasagna/__init__.py ./src/guidos_gorgeous_lasagna/lasagna.py
real 0m0.023s
user 0m0.020s
sys 0m0.013s
===============================================================================