TestImpactTestTargetMeta.h 1.1 KB

12345678910111213141516171819202122232425262728293031323334
  1. /*
  2. * Copyright (c) Contributors to the Open 3D Engine Project. For complete copyright and license terms please see the LICENSE at the root of this distribution.
  3. *
  4. * SPDX-License-Identifier: Apache-2.0 OR MIT
  5. *
  6. */
  7. #pragma once
  8. #include <AzCore/std/containers/unordered_map.h>
  9. #include <AzCore/std/string/string.h>
  10. #include <AzCore/std/chrono/chrono.h>
  11. namespace TestImpact
  12. {
  13. //! Method used to launch the test target.
  14. enum class LaunchMethod : bool
  15. {
  16. TestRunner, //!< Target is launched through a separate test runner binary.
  17. StandAlone //!< Target is launched directly by itself.
  18. };
  19. //! Artifact produced by the build system for each test target containing the additional meta-data about the test.
  20. struct TestTargetMeta
  21. {
  22. AZStd::string m_suite;
  23. AZStd::string m_customArgs;
  24. AZStd::chrono::milliseconds m_timeout = AZStd::chrono::milliseconds{ 0 };
  25. LaunchMethod m_launchMethod = LaunchMethod::TestRunner;
  26. };
  27. //! Map between test target name and test target meta-data.
  28. using TestTargetMetaMap = AZStd::unordered_map<AZStd::string, TestTargetMeta>;
  29. } // namespace TestImpact