1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-04 12:00:25 +00:00

Add unit tests for JSONRPC

This commit is contained in:
Edward Moulsdale
2024-04-10 18:27:08 +01:00
parent 1f0f81049f
commit 6b4a7598c7
3 changed files with 232 additions and 0 deletions

View File

@@ -5,3 +5,10 @@ Import("env_modules")
env_jsonrpc = env_modules.Clone()
env_jsonrpc.add_source_files(env.modules_sources, "*.cpp")
if env["tests"]:
env_jsonrpc.Append(CPPDEFINES=["TESTS_ENABLED"])
env_jsonrpc.add_source_files(env.modules_sources, "./tests/*.cpp")
if env["disable_exceptions"]:
env_jsonrpc.Append(CPPDEFINES=["DOCTEST_CONFIG_NO_EXCEPTIONS_BUT_WITH_ALL_ASSERTS"])