mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-04-27 23:35:45 +00:00
UnitTest
Change unit tests to run without script runTests now just holds a purely script test example Test Explorer in VS now works with tests NB do not use test explorer on purely script based tests.
This commit is contained in:
parent
3d46cf51d0
commit
5427e941ce
6 changed files with 33 additions and 93 deletions
|
|
@ -1,13 +1,6 @@
|
|||
// Placeholder initialisation that the tests expect
|
||||
GFXInit::createNullDevice();
|
||||
// put script tests here
|
||||
|
||||
if(!isObject(GuiDefaultProfile))
|
||||
new GuiControlProfile (GuiDefaultProfile) {};
|
||||
if(!isObject(GuiTooltipProfile))
|
||||
new GuiControlProfile (GuiTooltipProfile) {};
|
||||
|
||||
setLogMode(2);
|
||||
$Con::LogBufferEnabled = false;
|
||||
$Testing::CheckMemoryLeaks = false;
|
||||
runAllUnitTests("-*.Stress*", "xml");
|
||||
quit();
|
||||
function MyTest() {
|
||||
expectTrue(2+2 == 4, "basic math should work");
|
||||
}
|
||||
addUnitTest(MyTest);
|
||||
Loading…
Add table
Add a link
Reference in a new issue