Skip to content

Commit b380713

Browse files
committed
Add game plugin for game assembly
1 parent 01f5d09 commit b380713

File tree

3 files changed

+30
-1
lines changed

3 files changed

+30
-1
lines changed

Source/Editor/TestRunner.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
using FlaxEditor;
1+
using FlaxEditor;
22
using FlaxEditor.GUI;
33
using FlaxEngine;
44
using System;
@@ -28,6 +28,8 @@ public class TestRunner : EditorPlugin
2828
RepositoryUrl = "https://github.com/FlaxCommunityProjects/FlaxUnitTesting"
2929
};
3030

31+
public override Type GamePluginType => typeof(SimpleUnitTestingPlugin);
32+
3133
public override void InitializeEditor()
3234
{
3335
base.InitializeEditor();

Source/SimpleUnitTestingPlugin.cs

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
using System;
2+
using System.Collections.Generic;
3+
using System.Linq;
4+
using System.Text;
5+
using System.Threading.Tasks;
6+
using FlaxEngine;
7+
8+
namespace FlaxCommunity.UnitTesting
9+
{
10+
public class SimpleUnitTestingPlugin : GamePlugin
11+
{
12+
public override PluginDescription Description => new PluginDescription
13+
{
14+
Author = "Lukáš Jech",
15+
AuthorUrl = "https://lukas.jech.me",
16+
Category = "Unit Testing",
17+
Description = "Simple unit testing framework",
18+
IsAlpha = false,
19+
IsBeta = false,
20+
Name = "Simple Unit Testing",
21+
SupportedPlatforms = new PlatformType[] { PlatformType.Windows },
22+
Version = new Version(1, 1),
23+
RepositoryUrl = "https://github.com/FlaxCommunityProjects/FlaxUnitTesting"
24+
};
25+
}
26+
}

UnitTests.csproj

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@
5454
<ItemGroup>
5555
<Compile Include="Source\Assert.cs" />
5656
<Compile Include="Source\ExampleClass.cs" />
57+
<Compile Include="Source\SimpleUnitTestingPlugin.cs" />
5758
<Compile Include="Source\TestAttributes.cs" />
5859
<Compile Include="Cache\AssemblyInfo.cs" />
5960
</ItemGroup>

0 commit comments

Comments
 (0)