Hot reload
Some checks failed
CI / React UI Build (push) Successful in 11s
CI / Native Windows Build And Tests (push) Failing after 2m3s
CI / Windows Release Package (push) Has been skipped

This commit is contained in:
2026-05-21 15:58:23 +10:00
parent dc247ab58d
commit c2de2c3738
14 changed files with 231 additions and 10 deletions

View File

@@ -1,4 +1,5 @@
#include "HttpControlServer.h"
#include "RuntimeControlCommand.h"
#include <filesystem>
#include <fstream>
@@ -170,6 +171,16 @@ void TestGenericPostCallbackHandlesControlRoutes()
Expect(response.body.find("\"ok\":true") != std::string::npos, "generic control callback returns action success");
}
void TestReloadRouteParsesAsControlCommand()
{
using namespace RenderCadenceCompositor;
RuntimeControlCommand command;
std::string error;
Expect(ParseRuntimeControlCommand("/api/reload", "{}", command, error), "reload route parses as a control command");
Expect(command.type == RuntimeControlCommandType::ReloadShaders, "reload route maps to reload command type");
}
void TestUnknownEndpointReturns404()
{
using namespace RenderCadenceCompositor;
@@ -193,6 +204,7 @@ int main()
TestKnownPostEndpointReturnsActionError();
TestLayerPostEndpointsUseCallbacks();
TestGenericPostCallbackHandlesControlRoutes();
TestReloadRouteParsesAsControlCommand();
TestUnknownEndpointReturns404();
if (gFailures != 0)