mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-02-13 03:33:48 +00:00
separate testing environment
-Separate main for running unit tests -Move unit tests into testing folder
This commit is contained in:
parent
2e8f5795fa
commit
c09f79d199
265 changed files with 84537 additions and 334 deletions
|
|
@ -23,9 +23,12 @@
|
|||
#ifndef _UNIT_TESTING_H_
|
||||
#define _UNIT_TESTING_H_
|
||||
|
||||
#ifdef TORQUE_TESTS_ENABLED
|
||||
#if defined(SDL_MAIN_AVAILABLE)
|
||||
#undef SDL_MAIN_AVAILABLE
|
||||
#endif
|
||||
|
||||
#include <gtest/gtest.h>
|
||||
#include <gmock/gmock.h>
|
||||
|
||||
/// Convenience to define a test fixture with a Fixture suffix for use with
|
||||
/// TEST_FIX.
|
||||
|
|
@ -38,6 +41,4 @@
|
|||
GTEST_TEST_(test_fixture, test_name, test_fixture##Fixture, \
|
||||
::testing::internal::GetTypeId<test_fixture##Fixture>())
|
||||
|
||||
#endif // TORQUE_TESTS_ENABLED
|
||||
|
||||
#endif // _UNIT_TESTING_H_
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue