diff --git a/tests/Elastic.Markdown.Tests/Elastic.Markdown.Tests.csproj b/tests/Elastic.Markdown.Tests/Elastic.Markdown.Tests.csproj index 2af907ea6..febdaead8 100644 --- a/tests/Elastic.Markdown.Tests/Elastic.Markdown.Tests.csproj +++ b/tests/Elastic.Markdown.Tests/Elastic.Markdown.Tests.csproj @@ -15,7 +15,7 @@ - + diff --git a/tests/authoring/authoring.fsproj b/tests/authoring/authoring.fsproj index bcea2e66c..4eff5575f 100644 --- a/tests/authoring/authoring.fsproj +++ b/tests/authoring/authoring.fsproj @@ -13,7 +13,7 @@ - + diff --git a/tests/docs-assembler.Tests/src/docs-assembler.Tests/GlobalNavigationTests.cs b/tests/docs-assembler.Tests/src/docs-assembler.Tests/GlobalNavigationTests.cs index 2b91bfa12..25054c581 100644 --- a/tests/docs-assembler.Tests/src/docs-assembler.Tests/GlobalNavigationTests.cs +++ b/tests/docs-assembler.Tests/src/docs-assembler.Tests/GlobalNavigationTests.cs @@ -25,9 +25,12 @@ public class GlobalNavigationPathProviderTests public GlobalNavigationPathProviderTests() { FileSystem = new FileSystem(); - CheckoutDirectory = FileSystem.DirectoryInfo.New( + var checkoutDirectory = FileSystem.DirectoryInfo.New( FileSystem.Path.Combine(Paths.GetSolutionDirectory()!.FullName, ".artifacts", "checkouts") ); + CheckoutDirectory = checkoutDirectory.Exists + ? checkoutDirectory.GetDirectories().FirstOrDefault(d => d.Name is "next" or "current") ?? checkoutDirectory + : checkoutDirectory; Collector = new DiagnosticsCollector([]); Context = new AssembleContext("dev", Collector, FileSystem, FileSystem, CheckoutDirectory.FullName, null); } @@ -63,6 +66,8 @@ private async Task Setup() [Fact] public async Task ReadAllPathPrefixes() { + Assert.SkipUnless(HasCheckouts(), $"Requires local checkout folder: {CheckoutDirectory.FullName}"); + await using var collector = new DiagnosticsCollector([]); var assembleContext = new AssembleContext("dev", collector, new FileSystem(), new FileSystem(), null, null); diff --git a/tests/docs-assembler.Tests/src/docs-assembler.Tests/docs-assembler.Tests.csproj b/tests/docs-assembler.Tests/src/docs-assembler.Tests/docs-assembler.Tests.csproj index 3cb655b6e..af32039d1 100644 --- a/tests/docs-assembler.Tests/src/docs-assembler.Tests/docs-assembler.Tests.csproj +++ b/tests/docs-assembler.Tests/src/docs-assembler.Tests/docs-assembler.Tests.csproj @@ -17,7 +17,7 @@ - +