LmbrCentralEditorTest.cpp 773 B

1234567891011121314151617181920212223242526
  1. /*
  2. * Copyright (c) Contributors to the Open 3D Engine Project.
  3. * For complete copyright and license terms please see the LICENSE at the root of this distribution.
  4. *
  5. * SPDX-License-Identifier: Apache-2.0 OR MIT
  6. *
  7. */
  8. #include <AzTest/AzTest.h>
  9. #include <AzQtComponents/Utilities/QtPluginPaths.h>
  10. #include <QApplication>
  11. // Required to support running integration tests with Qt
  12. AZTEST_EXPORT int AZ_UNIT_TEST_HOOK_NAME(int argc, char** argv)
  13. {
  14. ::testing::InitGoogleMock(&argc, argv);
  15. AzQtComponents::PrepareQtPaths();
  16. QApplication app(argc, argv);
  17. AZ::Test::printUnusedParametersWarning(argc, argv);
  18. AZ::Test::addTestEnvironments({ DEFAULT_UNIT_TEST_ENV });
  19. int result = RUN_ALL_TESTS();
  20. return result;
  21. }
  22. IMPLEMENT_TEST_EXECUTABLE_MAIN();