Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
489 changes: 485 additions & 4 deletions .gitignore

Large diffs are not rendered by default.

3 changes: 2 additions & 1 deletion Leda.Test/DiagnosticTest.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
using Leda.Lang;
using Leda.Testing;

namespace Leda.Test;

Expand Down Expand Up @@ -62,7 +63,7 @@ public DiagnosticTestData()
var expectedDiagnostics = File.ReadAllText(Path.Join(ProjectPath, "results", filename + ".diagnostics"));
var expectedCode = File.ReadAllText(Path.Join(ProjectPath, "results", filename + ".lua"));

Add(new TestScenario(filename, code, expectedDiagnostics, expectedCode));
Add(new TheoryDataRow<TestScenario>(new TestScenario(filename, code, expectedDiagnostics, expectedCode)));
}
}
}
13 changes: 5 additions & 8 deletions Leda.Test/Leda.Test.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -6,16 +6,12 @@
<Nullable>enable</Nullable>
<WarningsAsErrors>Nullable</WarningsAsErrors>
<IsPackable>false</IsPackable>
</PropertyGroup>
<OutputType>Exe</OutputType>
<UseMicrosoftTestingPlatformRunner>true</UseMicrosoftTestingPlatformRunner>
</PropertyGroup>

<ItemGroup>
<PackageReference Include="coverlet.collector" Version="6.0.2"/>
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="18.8.1"/>
<PackageReference Include="xunit.runner.visualstudio" Version="3.1.5">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
<PackageReference Include="xunit.v3" Version="3.2.2"/>
<PackageReference Include="xunit.v3.mtp-v2" Version="3.2.2"/>
</ItemGroup>

<ItemGroup>
Expand All @@ -24,6 +20,7 @@

<ItemGroup>
<ProjectReference Include="..\Leda.Lang\Leda.Lang.csproj"/>
<ProjectReference Include="..\Leda.Testing\Leda.Testing.csproj"/>
</ItemGroup>

</Project>
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using Leda.Lang;

namespace Leda.Test;
namespace Leda.Testing;

public static class DiagnosticPrinter
{
Expand Down
13 changes: 13 additions & 0 deletions Leda.Testing/Leda.Testing.csproj
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFramework>net10.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
<WarningsAsErrors>Nullable</WarningsAsErrors>
</PropertyGroup>

<ItemGroup>
<ProjectReference Include="..\Leda.Lang\Leda.Lang.csproj"/>
</ItemGroup>
</Project>
34 changes: 0 additions & 34 deletions Leda.sln

This file was deleted.

6 changes: 6 additions & 0 deletions Leda.slnx
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
<Solution>
<Project Path="Leda.Cli/Leda.Cli.csproj" />
<Project Path="Leda.Lang/Leda.Lang.csproj" />
<Project Path="Leda.LSP/Leda.LSP.csproj" />
<Project Path="Leda.Test/Leda.Test.csproj" />
</Solution>
4 changes: 2 additions & 2 deletions Scripts/GenerateResults.cs
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
#:project ../Leda.Lang/Leda.Lang.csproj
#:project ../Leda.Test/Leda.Test.csproj
#:project ../Leda.Testing/Leda.Testing.csproj
#:package Microsoft.Extensions.FileSystemGlobbing@10.0.7

using Leda.Lang;
using Leda.Test;
using Leda.Testing;
using Microsoft.Extensions.FileSystemGlobbing;

// Assumes the script's working directory is the solution's root.
Expand Down
10 changes: 10 additions & 0 deletions global.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"sdk": {
"version": "10.0.302",
"rollForward": "latestPatch",
"allowPrerelease": true
},
"test": {
"runner": "Microsoft.Testing.Platform"
}
}