12345678910111213141516171819202122232425262728293031323334 |
- /*
- * 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.
- *
- * SPDX-License-Identifier: Apache-2.0 OR MIT
- *
- */
- #pragma once
- #include <AzCore/std/containers/unordered_map.h>
- #include <AzCore/std/string/string.h>
- #include <AzCore/std/chrono/chrono.h>
- namespace TestImpact
- {
- //! Method used to launch the test target.
- enum class LaunchMethod : bool
- {
- TestRunner, //!< Target is launched through a separate test runner binary.
- StandAlone //!< Target is launched directly by itself.
- };
- //! Artifact produced by the build system for each test target containing the additional meta-data about the test.
- struct TestTargetMeta
- {
- AZStd::string m_suite;
- AZStd::string m_customArgs;
- AZStd::chrono::milliseconds m_timeout = AZStd::chrono::milliseconds{ 0 };
- LaunchMethod m_launchMethod = LaunchMethod::TestRunner;
- };
- //! Map between test target name and test target meta-data.
- using TestTargetMetaMap = AZStd::unordered_map<AZStd::string, TestTargetMeta>;
- } // namespace TestImpact
|