mirror of
https://github.com/godotengine/godot.git
synced 2025-12-08 06:09:55 +00:00
Fix running tests in template builds
This commit is contained in:
parent
4b543ddbf8
commit
d7a72d72e6
5 changed files with 34 additions and 1 deletions
|
|
@ -45,6 +45,8 @@ public:
|
|||
|
||||
namespace TestProjectSettings {
|
||||
|
||||
// TODO: Handle some cases failing on release builds. See: https://github.com/godotengine/godot/pull/88452
|
||||
#ifdef TOOLS_ENABLED
|
||||
TEST_CASE("[ProjectSettings] Get existing setting") {
|
||||
CHECK(ProjectSettings::get_singleton()->has_setting("application/config/name"));
|
||||
|
||||
|
|
@ -64,6 +66,7 @@ TEST_CASE("[ProjectSettings] Default value is ignored if setting exists") {
|
|||
String name = variant;
|
||||
CHECK_EQ(name, "GDScript Integration Test Suite");
|
||||
}
|
||||
#endif // TOOLS_ENABLED
|
||||
|
||||
TEST_CASE("[ProjectSettings] Non existing setting is null") {
|
||||
CHECK_FALSE(ProjectSettings::get_singleton()->has_setting("not_existing_setting"));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue