/
redgpu
/
ezEngine
Обзор
Документация
Войти
/
redgpu
/
ezEngine
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
dev
Code/UnitTests/TestFramework/Framework/Declarations.h
58 строк
2 KB
Sanakan8472
Stencil Test and Test Improvements (#1798)
30 янв 2026, 16:58
Не верифицирован
30 янв 2026, 16:58
3c8e433
Код
Авторство
О чём код?
#pragma once #include <Foundation/Types/Status.h> #include <TestFramework/TestFrameworkDLL.h> #include <deque> #include <string> class ezTestFramework; class ezTestBaseClass; /// \brief Stores the identification of a sub-test. struct ezSubTestEntry { ezSubTestEntry() = default; ezInt32 m_iSubTestIdentifier = -1; const char* m_szSubTestName = ""; bool m_bEnableTest = true; }; /// \brief Stores the identification of a test. struct ezTestEntry { ezTestEntry() = default; ezTestBaseClass* m_pTest = nullptr; const char* m_szTestName = ""; std::deque<ezSubTestEntry> m_SubTests; std::string m_sNotAvailableReason; bool m_bEnableTest = true; }; enum class AssertOnTestFail { DoNotAssert, AssertIfDebuggerAttached, AlwaysAssert, }; struct TestSettings { // The following settings are stored in the settings file. AssertOnTestFail m_AssertOnTestFail = AssertOnTestFail::DoNotAssert; bool m_bShowTimestampsInLog = false; bool m_bAutoDisableSuccessfulTests = false; // The following settings are only set via command-line. bool m_bRunTests = false; /// Only needed for GUI applications, in console mode tests are always run automatically. bool m_bNoAutomaticSaving = false; /// Allows to run the test with settings through the command line without saving those settings for later. bool m_bCloseOnSuccess = false; /// Closes the application upon success immediately. bool m_bNoGUI = false; /// Starts the tests in console mode, test are started automatically. bool m_bListTests = false; /// List all test names and exit. bool m_bShowHelp = false; /// Show command line help. int m_iRevision = -1; /// Revision in the RCS of this test run. Will be written into the test results json file for later reference. std::string m_sJsonOutput; /// Absolute path to the json file the results should be written to. bool m_bEnableAllTests = false; /// Enables all test. std::string m_sTestFilter; /// Filter that does a 'contains' test on each test name. };