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:
marauder2k7 2023-07-27 21:02:27 +01:00
parent 3d46cf51d0
commit 5427e941ce
6 changed files with 33 additions and 93 deletions

View file

@ -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);