test(sdk): drop unimplemented testconfig results-directory coverage
Some checks failed
CI / build (push) Failing after 41s

This commit is contained in:
Louis Seubert 2026-10-22 22:46:41 +02:00
commit 7d9b688ad3
Signed by: louis9902
GPG key ID: 4B9DB28F826553BD
2 changed files with 0 additions and 5 deletions

View file

@ -59,15 +59,12 @@ public sealed class SdkPackageIntegrationTests
var outputDirectory = Path.Combine(sut.ProjectPath, "artifacts", "bin", sut.ProjectName, "debug");
await Assert.That(File.Exists(Path.Combine(outputDirectory, $"{sut.ProjectName}.dll"))).IsTrue();
var testConfig = await File.ReadAllTextAsync(Path.Combine(outputDirectory, $"{sut.ProjectName}.testconfig.json"));
await Assert.That(testConfig.Contains("results-directory", StringComparison.Ordinal)).IsTrue();
// Act
var stdout = await sut.RunDotnetAsync("run --no-build --no-restore");
// Assert
await Assert.That(stdout.Contains("succeeded: 1", StringComparison.Ordinal)).IsTrue();
await Assert.That(Directory.EnumerateFiles(Path.Combine(sut.ProjectPath, "artifacts", "testresults"), $"{sut.ProjectName}-*").Any()).IsTrue();
}
private static string FindPackageVersion(string packageId)

View file

@ -17,8 +17,6 @@ Opinionated MSBuild SDK for test projects with standardized build, analyzer, and
- Everything from the base `Geekeey.Arcade.NET.Sdk` (language, analyzer, editor, and packaging defaults), layered on top of the `Microsoft.NET.Sdk` SDK.
- Marks consuming projects as test projects by setting `IsTestProject=true` automatically.
- `Microsoft.Testing.Platform.MSBuild` integration out of the box.
- Test result defaults that follow the artifacts layout: when `ArtifactsPath` is set, `TestResultsDirectory` defaults to `<ArtifactsPath>/testresults/` and the Microsoft.Testing.Platform `results-directory` option defaults accordingly. Any `TestingPlatformCommandLineOptionDefault` you define yourself is left untouched. Opt out by setting `TestResultsDirectory` yourself.
- Generated `<AssemblyName>.testconfig.json` defaults with the results directory when the project does not own a `testconfig.json`. A consumer-owned `testconfig.json` wins and is not modified.
- Opinionated `.editorconfig` settings for test projects, applied automatically via `EditorConfigFiles` (including file-based programs when `FileBasedProgram=true`).
## Opt-outs