robotframework-testdoc 0.8.1a1__tar.gz → 0.8.1a2__tar.gz

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.
@@ -18,6 +18,7 @@ oc_output.html
18
18
  atest/testdoc_output/**
19
19
  atest/mkdocs_test/**
20
20
  atest/mkdocs_test_perf/**
21
+ atest/testdoc_output_perf.html
21
22
  atest/mkdocs_test_custom/**
22
23
  docs/mkdocs/site/**
23
24
  .DS_Store
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.5
2
2
  Name: robotframework-testdoc
3
- Version: 0.8.1a1
3
+ Version: 0.8.1a2
4
4
  Summary: A CLI Tool to generate a Test Documentation for your RobotFramework Test Scripts.
5
5
  Project-URL: Repository, https://github.com/MarvKler/robotframework-testdoc
6
6
  Project-URL: Issues, https://github.com/MarvKler/robotframework-testdoc/issues
@@ -102,6 +102,8 @@ lint = "ruff check --force-exclude"
102
102
  format = "ruff format --force-exclude"
103
103
  atest = "pytest atest/acceptance"
104
104
  perftest = "pytest atest/performance"
105
+ perftest-mkdocs = "pytest atest/performance/test_performance.py"
106
+ perftest-html = "pytest atest/performance/test_performance_html.py"
105
107
  alltest = "pytest atest"
106
108
 
107
109
 
@@ -174,25 +174,6 @@
174
174
 
175
175
  <!-- MAIN CONTENT -->
176
176
  <main class="content" id="mainContent">
177
- {# ------------------------------------------------------------
178
- PoC: Keyword documentation metadata
179
-
180
- We keep the lexer + Pygments highlighting unchanged.
181
- Instead, we embed resolved keyword docs (already available in the
182
- parsed model) as NDJSON per test block. The frontend can then add
183
- a small info button next to each keyword call line.
184
- ------------------------------------------------------------ #}
185
- {% macro emit_kw_doc_ndjson(items) %}
186
- {% for item in (items or []) %}
187
- {% if item.type == 'KEYWORD' and item.keyword_doc %}
188
- {{ {'name': item.name, 'owner': item.keyword_owner, 'doc': item.keyword_doc, 'args': item.args} | dump_json }}
189
- {% endif %}
190
- {% if item.body %}
191
- {{ emit_kw_doc_ndjson(item.body) }}
192
- {% endif %}
193
- {% endfor %}
194
- {% endmacro %}
195
-
196
177
  {% macro render_suite_block(s, level) %}
197
178
  <section class="suite-block" data-suite-id="{{ s.id }}" data-suite-name="{{ s.name }}" data-suite-depth="{{ level }}" data-test-count="{{ s.test_count }}">
198
179
 
@@ -264,14 +245,6 @@
264
245
  <span class="section-title">Suite Setup &amp; Teardown</span>
265
246
  <span class="section-subtitle">Lifecycle keywords for this suite</span>
266
247
  </div>
267
- <script type="application/x-ndjson" class="kw-doc-ndjson" data-test-target="suite-fixture-{{ s.id }}">
268
- {% if s.setup and s.setup.keyword_doc %}
269
- {{ {'name': s.setup.name, 'owner': s.setup.keyword_owner, 'doc': s.setup.keyword_doc, 'args': s.setup.args, 'fixture': 'setup'} | dump_json }}
270
- {% endif %}
271
- {% if s.teardown and s.teardown.keyword_doc %}
272
- {{ {'name': s.teardown.name, 'owner': s.teardown.keyword_owner, 'doc': s.teardown.keyword_doc, 'args': s.teardown.args, 'fixture': 'teardown'} | dump_json }}
273
- {% endif %}
274
- </script>
275
248
  <div class="code-wrapper">
276
249
  <button class="code-toggle">
277
250
  <span>Show / Hide Code</span>
@@ -381,15 +354,6 @@
381
354
  <div class="test-subsection">
382
355
  <div class="kv-label">Body</div>
383
356
  {% if test.body or test.setup or test.teardown %}
384
- <script type="application/x-ndjson" class="kw-doc-ndjson" data-test-target="test-{{ s.id }}-{{ loop.index0 }}">
385
- {% if test.setup and test.setup.keyword_doc %}
386
- {{ {'name': test.setup.name, 'owner': test.setup.keyword_owner, 'doc': test.setup.keyword_doc, 'args': test.setup.args, 'fixture': 'setup'} | dump_json }}
387
- {% endif %}
388
- {% if test.teardown and test.teardown.keyword_doc %}
389
- {{ {'name': test.teardown.name, 'owner': test.teardown.keyword_owner, 'doc': test.teardown.keyword_doc, 'args': test.teardown.args, 'fixture': 'teardown'} | dump_json }}
390
- {% endif %}
391
- {{ emit_kw_doc_ndjson(test.body) }}
392
- </script>
393
357
  <div class="code-wrapper">
394
358
  <button class="code-toggle">
395
359
  <span>Show / Hide Code</span>