mirror of
https://github.com/GeWuYou/GFramework.git
synced 2026-05-06 16:16:44 +08:00
test(godot): 添加Godot测试项目并配置CI流水线
- 在CI工作流中添加GFramework.Godot.Tests项目的测试执行 - 配置dotnet test命令运行Godot测试套件 - 添加TRX格式的日志输出和测试结果目录设置 - 更新Godot模块的全局引用配置 - 在Timing.cs中添加必要的命名空间引用 - 在GodotTimeSourceTests.cs中添加NUnit框架引用
This commit is contained in:
parent
2053451185
commit
d21370787b
5
.github/workflows/ci.yml
vendored
5
.github/workflows/ci.yml
vendored
@ -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
|
||||
|
||||
|
||||
@ -1,5 +1,6 @@
|
||||
using System.Collections.Generic;
|
||||
using GFramework.Godot.Coroutine;
|
||||
using NUnit.Framework;
|
||||
|
||||
namespace GFramework.Godot.Tests.Coroutine;
|
||||
|
||||
|
||||
@ -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;
|
||||
|
||||
|
||||
@ -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;
|
||||
Loading…
x
Reference in New Issue
Block a user