Skip to content

Commit 63548b5

Browse files
fix: criteria coverage, index generation, dashboard SKILL & CI pragma
- Fix IndexGenerator.CreateEntry missing Criteria field — criteria from test files were not written to _index.json, causing 0% dashboard coverage. - Dashboard SKILL now deletes old site/ before regenerating and always opens site/index.html after completion. - Add #pragma warning disable CS0618 to RequirementsWriterTests for CI. - Version 1.34.5.
1 parent 4ce3d00 commit 63548b5

File tree

6 files changed

+18
-9
lines changed

6 files changed

+18
-9
lines changed

src/Spectra.CLI/Skills/Content/Skills/spectra-dashboard.md

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,16 +17,20 @@ You manage the dashboard by running CLI commands via runInTerminal. **NEVER use
1717
show preview .spectra-progress.html?nocache=1
1818
```
1919

20-
**Step 2** — runInTerminal:
20+
**Step 2** — runInTerminal (deletes old site folder first, then regenerates):
2121
```
22-
spectra ai analyze --coverage --auto-link --no-interaction --output-format json --verbosity quiet && spectra dashboard --output ./site --no-interaction --output-format json --verbosity quiet
22+
rm -rf site && spectra ai analyze --coverage --auto-link --no-interaction --output-format json --verbosity quiet && spectra dashboard --output ./site --no-interaction --output-format json --verbosity quiet
2323
```
24+
On Windows use: `if exist site rmdir /s /q site && spectra ai analyze ...`
2425

2526
**Step 3** — awaitTerminal. The progress page auto-refreshes — the user can watch live. Between runInTerminal and awaitTerminal, do NOTHING. No readFile, no listDirectory, no checking terminal output, no status messages.
2627

2728
**Step 4** — readFile `.spectra-result.json`
2829

29-
**Step 5** — show preview site/index.html
30+
**Step 5** — ALWAYS open the dashboard after generation:
31+
```
32+
show preview site/index.html?nocache=1
33+
```
3034

3135
Report: "Dashboard generated." Show suite count and test count from the result JSON.
3236

src/Spectra.CLI/Spectra.CLI.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
<PackAsTool>true</PackAsTool>
2828
<ToolCommandName>spectra</ToolCommandName>
2929
<PackageId>Spectra.CLI</PackageId>
30-
<Version>1.34.4</Version>
30+
<Version>1.34.5</Version>
3131
<Authors>Spectra</Authors>
3232
<Description>AI-native test generation and management CLI</Description>
3333
<PackageOutputPath>./nupkg</PackageOutputPath>

src/Spectra.Core/Index/IndexGenerator.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ public TestIndexEntry CreateEntry(TestCase testCase)
5454
SourceRefs = testCase.SourceRefs.ToList(),
5555
AutomatedBy = testCase.AutomatedBy,
5656
Requirements = testCase.Requirements,
57+
Criteria = testCase.Criteria,
5758
Bugs = testCase.Bugs
5859
};
5960
}

src/Spectra.MCP/Spectra.MCP.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
<PackAsTool>true</PackAsTool>
1111
<ToolCommandName>spectra-mcp</ToolCommandName>
1212
<PackageId>Spectra.MCP</PackageId>
13-
<Version>1.34.4</Version>
13+
<Version>1.34.5</Version>
1414
<Authors>Spectra</Authors>
1515
<Description>Spectra MCP Server for test execution</Description>
1616
<PackageOutputPath>./nupkg</PackageOutputPath>

test_app_documentation/.github/skills/spectra-dashboard/SKILL.md

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,16 +17,20 @@ You manage the dashboard by running CLI commands via runInTerminal. **NEVER use
1717
show preview .spectra-progress.html?nocache=1
1818
```
1919

20-
**Step 2** — runInTerminal:
20+
**Step 2** — runInTerminal (deletes old site folder first, then regenerates):
2121
```
22-
spectra ai analyze --coverage --auto-link --no-interaction --output-format json --verbosity quiet && spectra dashboard --output ./site --no-interaction --output-format json --verbosity quiet
22+
rm -rf site && spectra ai analyze --coverage --auto-link --no-interaction --output-format json --verbosity quiet && spectra dashboard --output ./site --no-interaction --output-format json --verbosity quiet
2323
```
24+
On Windows use: `if exist site rmdir /s /q site && spectra ai analyze ...`
2425

2526
**Step 3** — awaitTerminal. The progress page auto-refreshes — the user can watch live. Between runInTerminal and awaitTerminal, do NOTHING. No readFile, no listDirectory, no checking terminal output, no status messages.
2627

2728
**Step 4** — readFile `.spectra-result.json`
2829

29-
**Step 5** — show preview site/index.html
30+
**Step 5** — ALWAYS open the dashboard after generation:
31+
```
32+
show preview site/index.html?nocache=1
33+
```
3034

3135
Report: "Dashboard generated." Show suite count and test count from the result JSON.
3236

test_app_documentation/.spectra/skills-manifest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"files": {
44
"C:\\SourceCode\\Spectra\\test_app_documentation\\.github\\skills\\spectra-coverage\\SKILL.md": "93fe335279971d2cd52604d3f10562ea660f24ffde7332095023bc0dac7e23cd",
55
"C:\\SourceCode\\Spectra\\test_app_documentation\\.github\\skills\\spectra-criteria\\SKILL.md": "1c8b499024118b4a7cbdbe97bb2bf6fcfebe439c12898f07df1716b5d6fa3738",
6-
"C:\\SourceCode\\Spectra\\test_app_documentation\\.github\\skills\\spectra-dashboard\\SKILL.md": "59b3dac2e865ae477b01e6003b02ded2f37569f755ed83ff61e3eb857c1f473c",
6+
"C:\\SourceCode\\Spectra\\test_app_documentation\\.github\\skills\\spectra-dashboard\\SKILL.md": "0ffa42b13d2e00e0b2f052f30ab6b6652951bd3548c7aba739ce4fb193a462cf",
77
"C:\\SourceCode\\Spectra\\test_app_documentation\\.github\\skills\\spectra-docs\\SKILL.md": "e784406f243db42b4cc89977ae203a7f151fca7eb494fce4f69b4f6494c99f90",
88
"C:\\SourceCode\\Spectra\\test_app_documentation\\.github\\skills\\spectra-generate\\SKILL.md": "bfda93dd51c643f0055639a4bbb0889a4a89c255c0030b83ac4f9a9ab31f9350",
99
"C:\\SourceCode\\Spectra\\test_app_documentation\\.github\\skills\\spectra-help\\SKILL.md": "1963fd0520ee568c457d63731365888bb4cf5bd90eb1387b0abf9c60c97489df",

0 commit comments

Comments
 (0)