cucu 1.3.7__py3-none-any.whl → 1.3.8__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of cucu might be problematic. Click here for more details.

cucu/reporter/html.py CHANGED
@@ -139,14 +139,21 @@ def generate(results, basepath, only_failures=False):
139
139
  if db_step.table_data:
140
140
  step_dict["table"] = db_step.table_data
141
141
 
142
- step_dict["result"]["error_message"] = [
143
- db_step.error_message
144
- ]
145
-
142
+ step_dict["result"]["error_message"] = (
143
+ db_step.error_message.splitlines()
144
+ if db_step.error_message
145
+ else []
146
+ )
146
147
  step_dict["result"]["exception"] = db_step.exception
147
-
148
148
  step_dict["result"]["stdout"] = db_step.stdout
149
149
  step_dict["result"]["stderr"] = db_step.stderr
150
+ step_dict["result"]["browser_logs"] = (
151
+ db_step.browser_logs.splitlines()
152
+ )
153
+ step_dict["result"]["debug_output"] = (
154
+ db_step.debug_output.splitlines()
155
+ )
156
+
150
157
  scenario_dict["steps"].append(step_dict)
151
158
 
152
159
  feature_dict["elements"].append(scenario_dict)
@@ -131,24 +131,32 @@
131
131
  <tr class="row"><td style="min-width: 0;" class="col-12 collapse multi-collapse" id="collapsable-row-{{ loop.index }}" colspan="2">
132
132
 
133
133
  {% if step['result']['stdout'] %}
134
+ <p>stdout ({{ step['result']['stdout']|length }} lines)</p>
134
135
  <pre style="color: darkgray; margin: 0;">{{ escape("\n".join(step['result']['stdout'])) }}</pre>
135
136
  {% endif %}
136
-
137
- {% if step['images'] is defined %}
138
- {% if step['result']['stdout'] %}
139
- <br/>
140
- {% endif %}
137
+ {% if step['result']['stderr'] %}
138
+ <p>stderr ({{ step['result']['stderr']|length }} lines)</p>
139
+ <pre style="color: darkgray; margin: 0;">{{ escape("\n".join(step['result']['stderr'])) }}</pre>
140
+ {% endif %}
141
+ {% if step['images'] %}
142
+ <p>images ({{ step['images']|length }} images)</p>
141
143
  {% for image in step['images'] %}
142
144
  <img class="mx-auto d-block img-fluid shadow bg-white rounded" style="margin-bottom:15px" alt='{{ image["label"] }}' title='{{ image["label"] }}' src='{{ image["src"] }}'></img>
143
145
  {% endfor %}
144
146
  {% endif %}
145
-
146
- {% if step['result']['error_message'] is defined %}
147
- {% if step['image'] is defined %}
148
- <br/>
149
- {% endif %}
147
+ {% if step['result']['error_message'] %}
148
+ <p>error message ({{ step['result']['error_message']|length }} lines)</p>
150
149
  <pre style="color: gray; margin: 0">{{ escape("\n".join(step['result']['error_message'])) }}</pre>
151
150
  {% endif %}
151
+ {% if step['result']['browser_logs'] %}
152
+ <p>browser logs ({{ step['result']['browser_logs']|length }} lines)</p>
153
+ <pre style="color: gray; margin: 0;">{{ escape("\n".join(step['result']['browser_logs'])) }}</pre>
154
+ {% endif %}
155
+ {% if step['result']['debug_output'] %}
156
+ <p>debug output ({{ step['result']['debug_output']|length }} lines)</p>
157
+ <pre style="color: gray; margin: 0;">{{ escape("\n".join(step['result']['debug_output'])) }}</pre>
158
+ {% endif %}
159
+
152
160
  </td></tr>
153
161
  {% endif %}
154
162
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: cucu
3
- Version: 1.3.7
3
+ Version: 1.3.8
4
4
  Summary: Easy BDD web testing
5
5
  Keywords: cucumber,selenium,behave
6
6
  Author: Domino Data Lab, Rodney Gomes, Cedric Young, Xin Dong, Kavya Yakkati, Kevin Garton, Joy Liao
@@ -56,12 +56,12 @@ cucu/reporter/external/jquery-3.5.1.min.js,sha256=9_aliU8dGd2tb6OSsuzixeV4y_faTq
56
56
  cucu/reporter/external/jquery.dataTables.min.js,sha256=XNhaB1tBOSFMHu96BSAJpZOJzfZ4SZI1nwAbnwry2UY,90265
57
57
  cucu/reporter/external/popper.min.js,sha256=pS96pU17yq-gVu4KBQJi38VpSuKN7otMrDQprzf_DWY,19188
58
58
  cucu/reporter/favicon.png,sha256=9ikXLAmzfQzy2NQps_8CGaZog2FvQrOX8nnSZ0e1UmM,2161
59
- cucu/reporter/html.py,sha256=2BAZMYbB-xMZdQXZeE8FgWJdWmScGY8JHWaQqiBP03I,19143
59
+ cucu/reporter/html.py,sha256=PhITO1Zxc3WVl1nU7maKpDeUvYmlkkv4cMNTFJnnTxM,19516
60
60
  cucu/reporter/templates/feature.html,sha256=IBkwGiul-sRO5lT8q8VFXMUJx1owsAd1YbdDzziSjKw,3645
61
61
  cucu/reporter/templates/flat.html,sha256=JGsMq-IWz6YUpJX9hcN65-15HxcX3NJclOmMDtW3HZE,2358
62
62
  cucu/reporter/templates/index.html,sha256=xgPYNU-sozN-iOaEzyymoQ4LDRI75eHXngbAP0xDYls,2770
63
63
  cucu/reporter/templates/layout.html,sha256=2iDRbm8atO8mgHWgijIvDCrBMKvcP6YHrmr95WtJiE4,4561
64
- cucu/reporter/templates/scenario.html,sha256=Vgl8A2O_hwG2W6JD5XtJi7xmTTWRe4XyqgfjfB1QmgM,10119
64
+ cucu/reporter/templates/scenario.html,sha256=Vo1s95qr4_cK1nPREp01lC0f1CHOhPDKAVorkuKiPJU,10974
65
65
  cucu/steps/__init__.py,sha256=seSmASBlWu6-6wbFbvEbPwigBcRXiYP18C4X_2cW8Ng,753
66
66
  cucu/steps/base_steps.py,sha256=0fPvdaKoan8lMAKrDnK0-zrALpxm11P1zVAY5CN7iXA,1893
67
67
  cucu/steps/browser_steps.py,sha256=iTRl5ffpf2YrFk5qh655WFHAeSOwoE3HFhmXhjsZtao,12687
@@ -88,7 +88,7 @@ cucu/steps/text_steps.py,sha256=Jj_GHoHeemNwVdUOdqcehArNp7WM-WMjljA4w0pLXuw,2576
88
88
  cucu/steps/variable_steps.py,sha256=WSctH3_xcxjijGPYZlxp-foC_SIAAKtF__saNtgZJbk,2966
89
89
  cucu/steps/webserver_steps.py,sha256=wWkpSvcSMdiskPkh4cqlepWx1nkvEpTU2tRXQmPDbyo,1410
90
90
  cucu/utils.py,sha256=LCcs8sMzvdvH05N8P5QYO4lO6j-_PQC530mEAD96go8,10957
91
- cucu-1.3.7.dist-info/WHEEL,sha256=-neZj6nU9KAMg2CnCY6T3w8J53nx1kFGw_9HfoSzM60,79
92
- cucu-1.3.7.dist-info/entry_points.txt,sha256=11WRIhQM7LuUnQg1lAoZQoNvvBvYNN1maDgQS4djwJo,40
93
- cucu-1.3.7.dist-info/METADATA,sha256=odrZlSjtaYwYeWjol9l24U6-UFjMCw3WbSQ_X5dgAEw,16721
94
- cucu-1.3.7.dist-info/RECORD,,
91
+ cucu-1.3.8.dist-info/WHEEL,sha256=-neZj6nU9KAMg2CnCY6T3w8J53nx1kFGw_9HfoSzM60,79
92
+ cucu-1.3.8.dist-info/entry_points.txt,sha256=11WRIhQM7LuUnQg1lAoZQoNvvBvYNN1maDgQS4djwJo,40
93
+ cucu-1.3.8.dist-info/METADATA,sha256=Q0no8PrSLllg8AYZP4lAVH10CmInJt2p2bEhwhDgUYw,16721
94
+ cucu-1.3.8.dist-info/RECORD,,
File without changes