mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-07-14 16:14:38 +00:00
Default mainfiles to run unit tests.
This commit is contained in:
parent
ec34d9928c
commit
2248c90d52
2 changed files with 26 additions and 0 deletions
13
Templates/Empty/game/runTests.cs
Normal file
13
Templates/Empty/game/runTests.cs
Normal file
|
|
@ -0,0 +1,13 @@
|
||||||
|
new GuiControlProfile(GuiDefaultProfile);
|
||||||
|
new GuiControlProfile(GuiToolTipProfile);
|
||||||
|
new GuiCanvas(Canvas);
|
||||||
|
function onLightManagerActivate() {}
|
||||||
|
function onLightManagerDeactivate() {}
|
||||||
|
Canvas.setWindowTitle("Torque 3D Unit Tests");
|
||||||
|
new RenderPassManager(DiffuseRenderPassManager);
|
||||||
|
setLightManager("Basic Lighting");
|
||||||
|
setLogMode(2);
|
||||||
|
$Con::LogBufferEnabled = false;
|
||||||
|
$Testing::checkMemoryLeaks = false;
|
||||||
|
runAllUnitTests();
|
||||||
|
quit();
|
||||||
13
Templates/Full/game/runTests.cs
Normal file
13
Templates/Full/game/runTests.cs
Normal file
|
|
@ -0,0 +1,13 @@
|
||||||
|
new GuiControlProfile(GuiDefaultProfile);
|
||||||
|
new GuiControlProfile(GuiToolTipProfile);
|
||||||
|
new GuiCanvas(Canvas);
|
||||||
|
function onLightManagerActivate() {}
|
||||||
|
function onLightManagerDeactivate() {}
|
||||||
|
Canvas.setWindowTitle("Torque 3D Unit Tests");
|
||||||
|
new RenderPassManager(DiffuseRenderPassManager);
|
||||||
|
setLightManager("Basic Lighting");
|
||||||
|
setLogMode(2);
|
||||||
|
$Con::LogBufferEnabled = false;
|
||||||
|
$Testing::checkMemoryLeaks = false;
|
||||||
|
runAllUnitTests();
|
||||||
|
quit();
|
||||||
Loading…
Add table
Add a link
Reference in a new issue