Skip to content

Commit 7490a93

Browse files
committed
fix: Remove non-existent metrics scripts and update package metadata
REMOVED from package.json: - metrics scripts (never implemented) - metrics:week, metrics:month, metrics:optimize UPDATED package.json: - name: '@ui5/claude-plugin-ui5-guidelines' → '@ui5/claude-plugin-ui5' - description: Added MCP tools and linting - repository.directory: 'plugins/ui5-guidelines' → 'plugins/ui5' UPDATED TESTING.md: - Removed metrics CLI section (scripts don't exist) - Added 'Test Reports' section documenting TestReporter - Documents actual functionality: JSON/HTML reports in .test-results/ - Reports are auto-generated during test runs, not via CLI CLARIFICATION: TestReporter exists and works (generates reports during test runs). Standalone metrics CLI scripts were planned but never implemented.
1 parent 83180ff commit 7490a93

2 files changed

Lines changed: 28 additions & 40 deletions

File tree

plugins/ui5/TESTING.md

Lines changed: 24 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -268,12 +268,6 @@ npm run test:integration:claude # Claude Code CLI (free)
268268
# Build
269269
npm run build # Compile TypeScript
270270
npm run clean # Remove build artifacts
271-
272-
# Metrics
273-
npm run metrics # All-time metrics
274-
npm run metrics:week # Last 7 days
275-
npm run metrics:month # Last 30 days
276-
npm run metrics:optimize # Optimization tips
277271
```
278272

279273
---
@@ -329,45 +323,43 @@ Token estimates are approximate (1 token ≈ 4 characters) since Claude Code CLI
329323

330324
---
331325

332-
## Metrics and Analysis
326+
## Test Reports
333327

334-
### View Metrics
328+
Integration tests automatically generate JSON and HTML reports in `.test-results/`:
335329

336330
```bash
337-
# All-time aggregate
338-
npm run metrics
339-
340-
# Time-based
341-
npm run metrics:week
342-
npm run metrics:month
331+
npm run test:integration:claude
343332

344-
# Get optimization tips
345-
npm run metrics:optimize
333+
# Generates:
334+
# .test-results/test-run-{timestamp}.json # Detailed results
335+
# .test-results/latest.json # Latest run (symlink)
336+
# .test-results/dashboard.html # Visual dashboard
346337
```
347338

348-
### Metrics Tracked
339+
### Report Contents
349340

350-
- ✅ Test pass/fail rates
341+
**JSON Report** includes:
342+
- ✅ Test pass/fail rates by category
351343
- ✅ Token usage (estimated)
352344
- ✅ Duration per test
353-
- ✅ Skill triggering accuracy (heuristic detection)
345+
- ✅ Skill triggering detection
346+
- ✅ Retry counts
347+
- ✅ Full test output
354348

355-
### Example Output
349+
**HTML Dashboard** provides:
350+
- 📊 Executive metrics (pass rate, latency, tokens)
351+
- 📈 Category performance breakdown
352+
- 📋 Detailed test results table
353+
- 🎨 Color-coded status indicators
356354

357-
```
358-
📊 UI5 Plugin Metrics (Last 7 Days)
359-
360-
Tests Run: 189
361-
Pass Rate: 98.4% (186/189)
362-
Avg Duration: ~25s per test
355+
### Viewing Reports
363356

364-
🎯 Triggering Accuracy:
365-
Proxy Tests: 84.4% (simulation - includes edge cases)
366-
Integration Tests: Detected via UI5 pattern matching
357+
```bash
358+
# Open the latest dashboard
359+
open .test-results/dashboard.html
367360

368-
⚡ Performance:
369-
Total Duration: ~95 minutes
370-
Avg Latency: 24.1s per test
361+
# Or check JSON directly
362+
cat .test-results/latest.json | jq '.totalTests, .passed, .failed'
371363
```
372364

373365
---

plugins/ui5/package.json

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
{
2-
"name": "@ui5/claude-plugin-ui5-guidelines",
2+
"name": "@ui5/claude-plugin-ui5",
33
"version": "3.0.0",
44
"private": true,
5-
"description": "UI5 development guidelines and best practices for Claude Code",
5+
"description": "SAPUI5 / OpenUI5 plugin for Claude Code with MCP tools, API documentation, linting, and development guidelines",
66
"type": "module",
77
"author": {
88
"name": "SAP SE",
@@ -13,7 +13,7 @@
1313
"repository": {
1414
"type": "git",
1515
"url": "git+https://github.com/UI5/plugins-claude.git",
16-
"directory": "plugins/ui5-guidelines"
16+
"directory": "plugins/ui5"
1717
},
1818
"scripts": {
1919
"build": "tsc",
@@ -23,11 +23,7 @@
2323
"test:triggering": "ava dist/test/suites/triggering.test.js",
2424
"test:performance": "ava dist/test/suites/performance.test.js",
2525
"test:watch": "ava --watch",
26-
"test:integration:claude": "ava dist/test/integration/suites/claude-code.test.js",
27-
"metrics": "node dist/scripts/metrics.js",
28-
"metrics:week": "node dist/scripts/metrics.js --days 7",
29-
"metrics:month": "node dist/scripts/metrics.js --days 30",
30-
"metrics:optimize": "node dist/scripts/optimize.js"
26+
"test:integration:claude": "ava dist/test/integration/suites/claude-code.test.js"
3127
},
3228
"devDependencies": {
3329
"@ava/typescript": "^5.0.0",

0 commit comments

Comments
 (0)