Test build configuration not available

The option is missing from the Package menu:

image

Then in project preferences → packaging → project:

I’m not sure what that even means.
I’m running engine from source and tried both Development Editor and DebugGame Editor solution configurations.

Any help would be much appreciated. I’m trying to do performance testing with console commands enabled.

I’m trying to workaround this by using shipping build and enabling console commands there as described here:

The console is enabled in all builds except Shipping builds. To turn on the console in Shipping builds add “ALLOW_CONSOLE_IN_SHIPPING=1” to your Global Definitions array in your *.Target.cs file.

I’ve done it like this:

But then when I package the game it fails with this message:

los modifies the value of GlobalDefinitions. This is not allowed, as los has build products in common with UnrealEditor.

Found a few related posts in this forum but I’m not fully getting the issue and couldn’t so far make it work.