- tests/FakeClaude: eseguibile finto 'claude' configurabile con variabili d'ambiente (registro di argomenti/cwd/stdin, output, exit code, ritardo), con le prove FK-01…FK-05. - Test organizzati per livello (Gui/, Process/, Support/) e struttura descritta in TESTING.md. - MarkdownView: la parte sulle immagini passa in MarkdownView.Images.cs (partial), senza cambiare il comportamento. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
18 lines
680 B
C#
18 lines
680 B
C#
namespace AgentWikiUi.Tests;
|
|
|
|
/// <summary>Percorso del <c>claude</c> finto compilato (tests/FakeClaude), nella stessa configurazione dei test.</summary>
|
|
static class FakeClaudePath
|
|
{
|
|
public static string Exe
|
|
{
|
|
get
|
|
{
|
|
// …/tests/agent-wiki-ui.Tests/bin/<config>/net10.0/
|
|
var tfm = new DirectoryInfo(AppContext.BaseDirectory.TrimEnd(Path.DirectorySeparatorChar));
|
|
var config = tfm.Parent!;
|
|
var testsRoot = config.Parent!.Parent!.Parent!;
|
|
return Path.Combine(testsRoot.FullName, "FakeClaude", "bin", config.Name, tfm.Name, OperatingSystem.IsWindows() ? "claude.exe" : "claude");
|
|
}
|
|
}
|
|
}
|