Page 1 of 1

Setting up tests for a game plugin

Posted: Fri Mar 12, 2021 9:06 am
by WiverNz
Hi everyone,

could you please help me to set up tests for a game plugin
I have a test:

Code: Select all

void MySimpleTestCmd() { CryLog("MySimpleTestCmd is running"); } CRY_TEST(MySimpleTest, timeout = 60.f, game = true, editor = false) { commands = { MySimpleTestCmd, }; }
And run it like this:

Code: Select all

pTestSystem->RunSingle("MySimpleTest"); pTestSystem->Update();
but in the "CTestSystem::Update()" method I have:
Test 'MySimpleTest' - isEnabledForGame: 0 isEnabledForEditor: 0 isEditor: 0

so it goes into this condition:

Code: Select all

else // test is skipped
What is the correct way to configure the test to run?