test-reporting 3.0.1__tar.gz → 3.0.2__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.
Files changed (21) hide show
  1. {test_reporting-3.0.1 → test_reporting-3.0.2}/PKG-INFO +1 -1
  2. {test_reporting-3.0.1 → test_reporting-3.0.2}/reporting/templates/project.html +8 -6
  3. {test_reporting-3.0.1 → test_reporting-3.0.2}/setup.py +1 -1
  4. {test_reporting-3.0.1 → test_reporting-3.0.2}/test_reporting.egg-info/PKG-INFO +1 -1
  5. {test_reporting-3.0.1 → test_reporting-3.0.2}/LICENSE +0 -0
  6. {test_reporting-3.0.1 → test_reporting-3.0.2}/README.md +0 -0
  7. {test_reporting-3.0.1 → test_reporting-3.0.2}/reporting/__init__.py +0 -0
  8. {test_reporting-3.0.1 → test_reporting-3.0.2}/reporting/classifier.py +0 -0
  9. {test_reporting-3.0.1 → test_reporting-3.0.2}/reporting/cli.py +0 -0
  10. {test_reporting-3.0.1 → test_reporting-3.0.2}/reporting/config.py +0 -0
  11. {test_reporting-3.0.1 → test_reporting-3.0.2}/reporting/plugin.py +0 -0
  12. {test_reporting-3.0.1 → test_reporting-3.0.2}/reporting/publisher.py +0 -0
  13. {test_reporting-3.0.1 → test_reporting-3.0.2}/reporting/storage.py +0 -0
  14. {test_reporting-3.0.1 → test_reporting-3.0.2}/reporting/templates/index.html +0 -0
  15. {test_reporting-3.0.1 → test_reporting-3.0.2}/reporting/templates/run.html +0 -0
  16. {test_reporting-3.0.1 → test_reporting-3.0.2}/setup.cfg +0 -0
  17. {test_reporting-3.0.1 → test_reporting-3.0.2}/test_reporting.egg-info/SOURCES.txt +0 -0
  18. {test_reporting-3.0.1 → test_reporting-3.0.2}/test_reporting.egg-info/dependency_links.txt +0 -0
  19. {test_reporting-3.0.1 → test_reporting-3.0.2}/test_reporting.egg-info/entry_points.txt +0 -0
  20. {test_reporting-3.0.1 → test_reporting-3.0.2}/test_reporting.egg-info/requires.txt +0 -0
  21. {test_reporting-3.0.1 → test_reporting-3.0.2}/test_reporting.egg-info/top_level.txt +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: test-reporting
3
- Version: 3.0.1
3
+ Version: 3.0.2
4
4
  Summary: Multi-project test reporting dashboard — collect results locally or push to S3
5
5
  Home-page: https://github.com/amahdy77/test-reporting.git
6
6
  Author: Ashfaqur Mahdy
@@ -273,10 +273,10 @@
273
273
  </div>
274
274
  <div class="reg-right">
275
275
  <span class="${rc2}">${reg.pass_rate.toFixed(0)}% passing</span>
276
- <span class="chevron ${isOpen ? 'open'}">▼</span>
276
+ <span class="chevron ${isOpen ? 'open' : ''}">▼</span>
277
277
  </div>
278
278
  </div>
279
- <div class="reg-body ${isOpen ? 'open'}">${suiteRows}</div>
279
+ <div class="reg-body ${isOpen ? 'open' : ''}">${suiteRows}</div>
280
280
  </div>`;
281
281
  }).join('');
282
282
 
@@ -477,16 +477,18 @@
477
477
  HISTORY TAB
478
478
  ═══════════════════════════════════════════════════ */
479
479
 
480
- let activeSuite = null;
480
+ let activeSuite = null;
481
+ let _suitesCache = {}; // module-level store so onclick handlers don't inline JSON
481
482
 
482
483
  function renderHistory(suites) {
484
+ _suitesCache = suites;
483
485
  const names = Object.keys(suites);
484
486
  if (names.length === 0) return '<p class="empty-section">No run history yet.</p>';
485
487
  if (!activeSuite || !suites[activeSuite]) activeSuite = names[0];
486
488
 
487
489
  const tabBtns = names.map(n =>
488
490
  `<button class="tab-btn ${n === activeSuite ? 'active' : ''}"
489
- onclick="switchSuiteTab('${n}', this, ${JSON.stringify(suites).replace(/'/g, "\\'")})">
491
+ onclick="switchSuiteTab(${JSON.stringify(n)}, this)">
490
492
  ${n}
491
493
  </button>`).join('');
492
494
 
@@ -525,11 +527,11 @@
525
527
  </div>`;
526
528
  }
527
529
 
528
- function switchSuiteTab(name, btn, suites) {
530
+ function switchSuiteTab(name, btn) {
529
531
  activeSuite = name;
530
532
  btn.closest('.tab-bar').querySelectorAll('.tab-btn').forEach(b => b.classList.remove('active'));
531
533
  btn.classList.add('active');
532
- document.getElementById('suiteHistoryBody').innerHTML = renderSuiteRuns(suites[name]);
534
+ document.getElementById('suiteHistoryBody').innerHTML = renderSuiteRuns(_suitesCache[name]);
533
535
  }
534
536
 
535
537
  /* ═══════════════════════════════════════════════════
@@ -9,7 +9,7 @@ with open("README.md", "r", encoding="utf-8") as fh:
9
9
 
10
10
  setup(
11
11
  name='test-reporting',
12
- version='3.0.1',
12
+ version='3.0.2',
13
13
  description='Multi-project test reporting dashboard — collect results locally or push to S3',
14
14
  long_description=long_description,
15
15
  long_description_content_type="text/markdown",
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: test-reporting
3
- Version: 3.0.1
3
+ Version: 3.0.2
4
4
  Summary: Multi-project test reporting dashboard — collect results locally or push to S3
5
5
  Home-page: https://github.com/amahdy77/test-reporting.git
6
6
  Author: Ashfaqur Mahdy
File without changes
File without changes
File without changes