Skip to content
Draft
Show file tree
Hide file tree
Changes from 8 commits
Commits
Show all changes
25 commits
Select commit Hold shift + click to select a range
ac661e7
Start work implementing Microsoft.Testing.Platform
Guillermo-Santos May 26, 2026
c81a438
Merge all Cosmos.TestRunner.* projects into Cosmos.TestingFramework
Guillermo-Santos May 27, 2026
01fcb99
Restore Xml Output
Guillermo-Santos May 27, 2026
50e0929
CosmosTestingFramework Version from assembly
Guillermo-Santos May 27, 2026
221ec15
Add testing configuration support
Guillermo-Santos May 30, 2026
ad0cc92
🙈 Remove source generated files
Guillermo-Santos May 30, 2026
0b6977e
Fix nuget config
Guillermo-Santos May 30, 2026
cb0aedd
Test projects should use MTP
Guillermo-Santos May 30, 2026
88e28f5
Fix Cosmos.Test.Build.Analyzers.Patcher
Guillermo-Santos May 30, 2026
fc09cf3
Fix the other general tests
Guillermo-Santos May 30, 2026
9aad77d
🙈 Remove old run command
Guillermo-Santos May 30, 2026
90fa9d8
try fix
Guillermo-Santos May 30, 2026
3c395a4
Test was missing submodules
Guillermo-Santos May 30, 2026
c6f188c
Merge branch 'main' into feature/test-mtp
Guillermo-Santos May 30, 2026
e4b313a
Refactor Test Kernel workflow
Guillermo-Santos May 30, 2026
95abe4c
🙈 Fix Test results directory and add 'keep-output' option
Guillermo-Santos May 30, 2026
36e29ea
Add missing slash, add keep output.
Guillermo-Santos May 31, 2026
2a46c60
fix timeout parameter
Guillermo-Santos May 31, 2026
969377e
Update the rest of the kernels
Guillermo-Santos May 31, 2026
7f7bdcc
Fix format
Guillermo-Santos May 31, 2026
74cce0e
Fix tests
Guillermo-Santos May 31, 2026
c6c9667
🙈 Fix Graphics and GC Test Kernels project files
Guillermo-Santos May 31, 2026
bcbb364
Add Test Scanning for test class kernels
Guillermo-Santos May 31, 2026
dd05799
Migrate the HelloWorld Test Kernel to Source Generator
Guillermo-Santos May 31, 2026
7bb1e2d
Return EmitCompilerGeneratedFiles
Guillermo-Santos May 31, 2026
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
4 changes: 3 additions & 1 deletion Directory.Build.props
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,9 @@
<!--pack as nuget-->
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
<!--pack as nuget-->


<!-- Test Projects should now use MTP -->
<UseMicrosoftTestingPlatformRunner>true</UseMicrosoftTestingPlatformRunner>
Comment thread
Guillermo-Santos marked this conversation as resolved.
</PropertyGroup>

<!--
Expand Down
5 changes: 5 additions & 0 deletions Directory.Packages.props
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
<PackageVersion Include="Cosmos.Kernel.Native.MultiArch" Version="$(VersionPrefix)" />
<PackageVersion Include="Cosmos.Kernel.Core.X64" Version="$(VersionPrefix)" />
<PackageVersion Include="Cosmos.Kernel.Core.ARM64" Version="$(VersionPrefix)" />
<PackageVersion Include="Cosmos.Kernel.Core" Version="$(VersionPrefix)" />
<PackageVersion Include="Cosmos.Kernel.HAL.X64" Version="$(VersionPrefix)" />
<PackageVersion Include="Cosmos.Kernel.HAL.ARM64" Version="$(VersionPrefix)" />
<PackageVersion Include="coverlet.collector" Version="6.0.2" />
Expand All @@ -38,6 +39,10 @@
<PackageVersion Include="Microsoft.CodeAnalysis.Workspaces.Common" Version="4.14.0" />
<PackageVersion Include="Microsoft.CodeAnalysis.Workspaces.MSBuild" Version="4.14.0" />
<PackageVersion Include="Microsoft.Extensions.FileSystemGlobbing" Version="9.0.9" />
<PackageVersion Include="Microsoft.Testing.Extensions.TrxReport.Abstractions" Version="2.2.2" />
<PackageVersion Include="Microsoft.Testing.Platform" Version="2.2.2" />
<PackageVersion Include="Microsoft.Testing.Platform.MSBuild" Version="2.2.2" />
<PackageVersion Include="Microsoft.Testing.Extensions.TrxReport" Version="2.2.2" />
<PackageVersion Include="Microsoft.NET.Test.Sdk" Version="17.14.1" />
<PackageVersion Include="Mono.Cecil" Version="0.11.6" />
<PackageVersion Include="System.Reflection.Metadata" Version="9.0.0" />
Expand Down
17 changes: 17 additions & 0 deletions NuGet.Config
Original file line number Diff line number Diff line change
@@ -1,3 +1,20 @@
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<packageSources>
<clear />
<add key="nuget.org" value="https://api.nuget.org/v3/index.json" />
<add key="local-packages" value="./artifacts/package/release" />
</packageSources>

<packageSourceMapping>
<!-- Map Cosmos packages to local feed -->
<packageSource key="local-packages">
<package pattern="Cosmos.*" />
<package pattern="_Cosmos.*" />
</packageSource>
<!-- Everything else goes to nuget.org -->
<packageSource key="nuget.org">
<package pattern="*" />
</packageSource>
</packageSourceMapping>
</configuration>
5 changes: 4 additions & 1 deletion global.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@
"rollForward": "latestFeature"
},
"msbuild-sdks": {
"Cosmos.Sdk": "3.0.58"
"Cosmos.Sdk": "3.0.58.20260522"
},
"test": {
"runner": "Microsoft.Testing.Platform"
}
}
32 changes: 16 additions & 16 deletions nativeaot-patcher.tests.slnx
Original file line number Diff line number Diff line change
@@ -1,22 +1,22 @@
<Solution>
<Folder Name="/tests/">
<Project Path="tests\Cosmos.Tests.Build.Analyzer.Patcher\Cosmos.Tests.Build.Analyzer.Patcher.csproj"/>
<Project Path="tests\Cosmos.Tests.Build.Asm\Cosmos.Tests.Build.Asm.csproj"/>
<Project Path="tests\Cosmos.Tests.NativeWrapper\Cosmos.Tests.NativeWrapper.csproj"/>
<Project Path="tests\Cosmos.Tests.Patcher\Cosmos.Tests.Patcher.csproj"/>
<Project Path="tests\Cosmos.Tests.Scanner\Cosmos.Tests.Scanner.csproj"/>
<Project Path="tests\Cosmos.Tests.BuildCache\Cosmos.Tests.BuildCache.csproj"/>
<Project Path="tests\Cosmos.TestRunner.Engine\Cosmos.TestRunner.Engine.csproj"/>
<Project Path="tests\Cosmos.TestRunner.Framework\Cosmos.TestRunner.Framework.csproj"/>
<Project Path="tests\Cosmos.TestRunner.Protocol\Cosmos.TestRunner.Protocol.csproj"/>
<Project Path="tests\Cosmos.Tests.Build.Analyzer.Patcher\Cosmos.Tests.Build.Analyzer.Patcher.csproj" />
<Project Path="tests\Cosmos.Tests.Build.Asm\Cosmos.Tests.Build.Asm.csproj" />
<Project Path="tests\Cosmos.Tests.NativeWrapper\Cosmos.Tests.NativeWrapper.csproj" />
<Project Path="tests\Cosmos.Tests.Patcher\Cosmos.Tests.Patcher.csproj" />
<Project Path="tests\Cosmos.Tests.Scanner\Cosmos.Tests.Scanner.csproj" />
<Project Path="tests\Cosmos.Tests.BuildCache\Cosmos.Tests.BuildCache.csproj" />
<Project Path="tests/Cosmos.TestingFramework/Cosmos.TestingFramework.csproj" />
<Project Path="tests/Cosmos.TestingFramework.SourceGenerators/Cosmos.TestingFramework.SourceGenerators.csproj" />
<Project Path="tests/TestKernel/TestKernel.csproj" />
</Folder>
<Folder Name="/tests/Kernels/">
<Project Path="tests/Kernels/Cosmos.Kernel.Tests.Graphic/Cosmos.Kernel.Tests.Graphic.csproj"/>
<Project Path="tests/Kernels/Cosmos.Kernel.Tests.HelloWorld/Cosmos.Kernel.Tests.HelloWorld.csproj"/>
<Project Path="tests/Kernels/Cosmos.Kernel.Tests.Memory/Cosmos.Kernel.Tests.Memory.csproj"/>
<Project Path="tests/Kernels/Cosmos.Kernel.Tests.Network/Cosmos.Kernel.Tests.Network.csproj"/>
<Project Path="tests/Kernels/Cosmos.Kernel.Tests.Threading/Cosmos.Kernel.Tests.Threading.csproj"/>
<Project Path="tests/Kernels/Cosmos.Kernel.Tests.Timer/Cosmos.Kernel.Tests.Timer.csproj"/>
<Project Path="tests/Kernels/Cosmos.Kernel.Tests.TypeCasting/Cosmos.Kernel.Tests.TypeCasting.csproj"/>
<Project Path="tests/Kernels/Cosmos.Kernel.Tests.Graphic/Cosmos.Kernel.Tests.Graphic.csproj" />
<Project Path="tests/Kernels/Cosmos.Kernel.Tests.HelloWorld/Cosmos.Kernel.Tests.HelloWorld.csproj" />
<Project Path="tests/Kernels/Cosmos.Kernel.Tests.Memory/Cosmos.Kernel.Tests.Memory.csproj" />
<Project Path="tests/Kernels/Cosmos.Kernel.Tests.Network/Cosmos.Kernel.Tests.Network.csproj" />
<Project Path="tests/Kernels/Cosmos.Kernel.Tests.Threading/Cosmos.Kernel.Tests.Threading.csproj" />
<Project Path="tests/Kernels/Cosmos.Kernel.Tests.Timer/Cosmos.Kernel.Tests.Timer.csproj" />
<Project Path="tests/Kernels/Cosmos.Kernel.Tests.TypeCasting/Cosmos.Kernel.Tests.TypeCasting.csproj" />
</Folder>
</Solution>
Original file line number Diff line number Diff line change
Expand Up @@ -23,15 +23,16 @@ private struct GCHandle
/// </summary>
public GCObject* obj;

/// <summary>
/// The type of this handle (Weak, Normal, Pinned, etc.).
/// </summary>
public GCHandleType type;

/// <summary>
/// Additional info associated with this handle (e.g., weak track resurrection flag).
/// </summary>
public nuint extraInfo;

/// <summary>
/// The type of this handle (Weak, Normal, Pinned, etc.).
/// </summary>
public GCHandleType type;
}

// --- Static fields ---
Expand Down
16 changes: 0 additions & 16 deletions tests/Cosmos.TestRunner.Engine/Cosmos.TestRunner.Engine.csproj

This file was deleted.

103 changes: 0 additions & 103 deletions tests/Cosmos.TestRunner.Engine/Program.cs

This file was deleted.

This file was deleted.

10 changes: 0 additions & 10 deletions tests/Cosmos.TestRunner.Protocol/Cosmos.TestRunner.Protocol.csproj

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFramework>netstandard2.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
<OutputItemType>Analyzer</OutputItemType>
<EnforceExtendedAnalyzerRules>true</EnforceExtendedAnalyzerRules>
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Microsoft.CodeAnalysis.Analyzers">
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
<PrivateAssets>all</PrivateAssets>
</PackageReference>
<PackageReference Include="Microsoft.CodeAnalysis.CSharp" PrivateAssets="all" />
</ItemGroup>
</Project>
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
namespace System.Runtime.CompilerServices
{
public class IsExternalInit { }
}
Loading
Loading