Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion Lite.Tests/AnomalyDetectorTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ namespace PerformanceMonitorLite.Tests;
/// methods (batch requests, sessions, query duration, memory), per-metric thresholds,
/// and baseline context metadata.
/// </summary>
[Collection(BaselineProviderCollection.Name)]
public class AnomalyDetectorTests : IDisposable
{
private readonly string _tempDir;
Expand Down
13 changes: 0 additions & 13 deletions Lite.Tests/BaselineProviderCollection.cs

This file was deleted.

1 change: 0 additions & 1 deletion Lite.Tests/BaselineProviderTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ namespace PerformanceMonitorLite.Tests;
/// Tests for BaselineProvider: time-bucketed baseline computation, bucket collapse
/// with hysteresis, restart poisoning exclusion, and division-by-zero handling.
/// </summary>
[Collection(BaselineProviderCollection.Name)]
public class BaselineProviderTests : IDisposable
{
private readonly string _tempDir;
Expand Down
35 changes: 0 additions & 35 deletions Lite.Tests/FinOpsDuckDbFixture.cs

This file was deleted.

21 changes: 18 additions & 3 deletions Lite.Tests/FinOpsTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,28 @@ namespace PerformanceMonitorLite.Tests;
/// Each test seeds a specific server profile into DuckDB, runs the recommendation or
/// scoring engine, and validates the output (categories, findings, severity, savings).
/// </summary>
public class FinOpsTests : IClassFixture<FinOpsDuckDbFixture>
public class FinOpsTests : IDisposable
{
private readonly string _tempDir;
private readonly string _dbPath;
private readonly DuckDbInitializer _duckDb;

public FinOpsTests(FinOpsDuckDbFixture fixture)
public FinOpsTests()
{
_duckDb = fixture.DuckDb;
_tempDir = Path.Combine(Path.GetTempPath(), "FinOpsTests_" + Guid.NewGuid().ToString("N")[..8]);
Directory.CreateDirectory(_tempDir);
_dbPath = Path.Combine(_tempDir, "test.duckdb");
_duckDb = new DuckDbInitializer(_dbPath);
}

public void Dispose()
{
try
{
if (Directory.Exists(_tempDir))
Directory.Delete(_tempDir, recursive: true);
}
catch { /* Best-effort cleanup */ }
}

/* ── Over-Provisioned Enterprise ── */
Expand Down
4 changes: 0 additions & 4 deletions Lite.Tests/Lite.Tests.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,4 @@
<ItemGroup>
<ProjectReference Include="..\Lite\PerformanceMonitorLite.csproj" />
</ItemGroup>

<ItemGroup>
<None Include="xunit.runner.json" CopyToOutputDirectory="PreserveNewest" />
</ItemGroup>
</Project>
7 changes: 0 additions & 7 deletions Lite.Tests/xunit.runner.json

This file was deleted.

Loading