diff --git a/src/sdk.tests/SdkPackageIntegrationTests.cs b/src/sdk.tests/SdkPackageIntegrationTests.cs index 6fb64ac..8bcfd49 100644 --- a/src/sdk.tests/SdkPackageIntegrationTests.cs +++ b/src/sdk.tests/SdkPackageIntegrationTests.cs @@ -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) diff --git a/src/sdk/Sdk/Geekeey.Arcade.NET.Sdk.Test/PACKAGE.md b/src/sdk/Sdk/Geekeey.Arcade.NET.Sdk.Test/PACKAGE.md index 4876a6c..9324dd5 100644 --- a/src/sdk/Sdk/Geekeey.Arcade.NET.Sdk.Test/PACKAGE.md +++ b/src/sdk/Sdk/Geekeey.Arcade.NET.Sdk.Test/PACKAGE.md @@ -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 `/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 `.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