test(godot): 添加Godot测试项目并配置CI流水线

- 在CI工作流中添加GFramework.Godot.Tests项目的测试执行
- 配置dotnet test命令运行Godot测试套件
- 添加TRX格式的日志输出和测试结果目录设置
- 更新Godot模块的全局引用配置
- 在Timing.cs中添加必要的命名空间引用
- 在GodotTimeSourceTests.cs中添加NUnit框架引用
This commit is contained in:
GeWuYou 2026-04-06 00:37:32 +08:00
parent 2053451185
commit d21370787b
4 changed files with 11 additions and 1 deletions

View File

@ -156,6 +156,11 @@ jobs:
--logger "trx;LogFileName=ecs-arch-$RANDOM.trx" \
--results-directory TestResults &
dotnet test GFramework.Godot.Tests \
-c Release \
--no-build \
--logger "trx;LogFileName=godot-$RANDOM.trx" \
--results-directory TestResults &
# 等待所有后台测试完成
wait

View File

@ -1,5 +1,6 @@
using System.Collections.Generic;
using GFramework.Godot.Coroutine;
using NUnit.Framework;
namespace GFramework.Godot.Tests.Coroutine;

View File

@ -1,5 +1,8 @@
using System.Reflection;
using GFramework.Core.Abstractions.Coroutine;
using GFramework.Core.Coroutine;
using GFramework.Core.Coroutine.Instructions;
using GFramework.Godot.Extensions;
namespace GFramework.Godot.Coroutine;

View File

@ -15,4 +15,5 @@ global using System;
global using System.Collections.Generic;
global using System.Linq;
global using System.Threading;
global using System.Threading.Tasks;
global using System.Threading.Tasks;
global using Godot;