Skip to content

Commit a0e1166

Browse files
committed
[temp]
1 parent 509dfab commit a0e1166

File tree

2 files changed

+15
-5
lines changed

2 files changed

+15
-5
lines changed

.github/workflows/tools-tests.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,4 +33,4 @@ jobs:
3333
- name: Run all tests
3434
run: |
3535
cd tools
36-
dotnet test
36+
dotnet test -l "console;verbosity=detailed"

tools/ExampleTester/ExampleTests.cs

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
using NUnit.Framework;
2+
using NUnit.Framework.Interfaces;
3+
using NUnit.Framework.Internal;
24
using Utilities;
35

46
[assembly: Parallelizable(ParallelScope.Children)]
@@ -7,12 +9,18 @@ namespace ExampleTester;
79

810
public static class ExampleTests
911
{
10-
private static TesterConfiguration TesterConfiguration { get; } = new(FindTmpDirectory());
11-
12+
//private static TesterConfiguration TesterConfiguration { get; } = new(FindTmpDirectory());
13+
/*
1214
public static IEnumerable<object[]> LoadExamples() =>
1315
from example in GeneratedExample.LoadAllExamples(TesterConfiguration.ExtractedOutputDirectory)
1416
select new object[] { example };
15-
17+
*/
18+
[Test]
19+
public static void Temp()
20+
{
21+
TestContext.WriteLine("Found: " + FindTmpDirectory());
22+
}
23+
/*
1624
[TestCaseSource(nameof(LoadExamples))]
1725
public static async Task ExamplePasses(GeneratedExample example)
1826
{
@@ -21,11 +29,13 @@ public static async Task ExamplePasses(GeneratedExample example)
2129
if (!await example.Test(TesterConfiguration, logger))
2230
Assert.Fail("There were one or more failures. See the logged output for details.");
2331
}
24-
32+
*/
2533
private static string FindTmpDirectory()
2634
{
2735
for (string? current = AppDomain.CurrentDomain.BaseDirectory; current != null; current = Path.GetDirectoryName(current))
2836
{
37+
TestContext.WriteLine($"Trying directory '{current}' containing {string.Join(", ", Directory.GetFileSystemEntries(current).Select(Path.GetFileName))}");
38+
2939
string testPath = Path.Join(current, "tmp");
3040
if (Directory.Exists(testPath))
3141
return testPath;

0 commit comments

Comments
 (0)