Loading...
Searching...
No Matches
UITestHarness.h
Go to the documentation of this file.
1//
2// Created by denzel on 10/12/2025.
3//
4
5#pragma once
6
7#include "core/EditorApplication.h"
8#include "imgui_te_engine.h"
9
10namespace hellfire::tests {
12 public:
14
15 void on_initialize(Application& app) override;
16 void on_render() override;
18
19 bool is_complete() const { return tests_complete_; }
20 int get_exit_code() const;
21
22 ImGuiTestEngine* get_test_engine() const { return test_engine_; }
23 editor::EditorContext* get_editor_context() { return &editor_context_; }
24
26
27 private:
29 bool tests_complete_ = false;
30 };
31
32 // Test registration functions
33 void RegisterEditorStateTests(ImGuiTestEngine* engine);
34
35} // namespace hellfire::tests
void set_exit_condition(std::function< bool()> condition)
void on_initialize(Application &app) override
ImGuiTestEngine * get_test_engine() const
static UITestHarness * instance
editor::EditorContext * get_editor_context()
int main(int argc, char **argv)
Definition main.cpp:8
void RegisterEditorStateTests(ImGuiTestEngine *engine)