user settings and breadcrumb fixes
This commit is contained in:
@@ -28,6 +28,30 @@ These tests run entirely in-memory. No Docker, no database, no network. Just `do
|
||||
dotnet test "src/AdvisoryAI/__Tests/StellaOps.AdvisoryAI.Tests/StellaOps.AdvisoryAI.Tests.csproj" -v normal
|
||||
```
|
||||
|
||||
### Targeted runs in this repo
|
||||
This test project uses xUnit v3 on Microsoft.Testing.Platform.
|
||||
Do not rely on VSTest-style `dotnet test --filter ...` syntax here; it is ignored for this project.
|
||||
|
||||
Use one of these targeting patterns instead:
|
||||
|
||||
```bash
|
||||
# Class-level targeting through dotnet test pass-through
|
||||
dotnet test "src/AdvisoryAI/__Tests/StellaOps.AdvisoryAI.Tests/StellaOps.AdvisoryAI.Tests.csproj" \
|
||||
-- --filter-class StellaOps.AdvisoryAI.Tests.Integration.UnifiedSearchSprintIntegrationTests
|
||||
|
||||
# Build once, then target individual classes, methods, or traits with the xUnit runner
|
||||
dotnet build "src/AdvisoryAI/__Tests/StellaOps.AdvisoryAI.Tests/StellaOps.AdvisoryAI.Tests.csproj" -v minimal
|
||||
|
||||
src/AdvisoryAI/__Tests/StellaOps.AdvisoryAI.Tests/bin/Debug/net10.0/StellaOps.AdvisoryAI.Tests.exe \
|
||||
-class "StellaOps.AdvisoryAI.Tests.Integration.UnifiedSearchSprintIntegrationTests"
|
||||
|
||||
src/AdvisoryAI/__Tests/StellaOps.AdvisoryAI.Tests/bin/Debug/net10.0/StellaOps.AdvisoryAI.Tests.exe \
|
||||
-method "StellaOps.AdvisoryAI.Tests.Integration.UnifiedSearchSprintIntegrationTests.G10_SelfServeMetrics_IncludeFallbackReformulationAndRescueSignals"
|
||||
|
||||
src/AdvisoryAI/__Tests/StellaOps.AdvisoryAI.Tests/bin/Debug/net10.0/StellaOps.AdvisoryAI.Tests.exe \
|
||||
-trait "Category=Live"
|
||||
```
|
||||
|
||||
### Why no infrastructure is needed
|
||||
All integration tests use `WebApplicationFactory<Program>` with **stubbed** services:
|
||||
- `IKnowledgeSearchService` → `StubKnowledgeSearchService` (returns hardcoded results)
|
||||
@@ -215,8 +239,9 @@ public sealed class KnowledgeSearchLiveTests : IAsyncLifetime
|
||||
Run:
|
||||
```bash
|
||||
export ADVISORYAI_TEST_CONNSTRING="Host=localhost;Port=55432;Database=advisoryai_knowledge_test;Username=stellaops_knowledge;Password=stellaops_knowledge"
|
||||
dotnet test "src/AdvisoryAI/__Tests/StellaOps.AdvisoryAI.Tests/StellaOps.AdvisoryAI.Tests.csproj" \
|
||||
--filter "Category=Live" -v normal
|
||||
dotnet build "src/AdvisoryAI/__Tests/StellaOps.AdvisoryAI.Tests/StellaOps.AdvisoryAI.Tests.csproj" -v minimal
|
||||
src/AdvisoryAI/__Tests/StellaOps.AdvisoryAI.Tests/bin/Debug/net10.0/StellaOps.AdvisoryAI.Tests.exe \
|
||||
-trait "Category=Live" -reporter verbose -noColor
|
||||
```
|
||||
|
||||
---
|
||||
|
||||
Reference in New Issue
Block a user