Setting up tests for a game plugin

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?

Who is online

Users browsing this forum: No registered users and 3 guests