1 /* Distributed under the OSI-approved BSD 3-Clause License. See accompanying
2 file Copyright.txt or https://cmake.org/licensing for details. */
5 #include "cmConfigure.h" // IWYU pragma: keep
13 #include "cmCTestHandlerCommand.h"
14 #include "cmCommand.h"
16 class cmCTestGenericHandler;
18 /** \class cmCTestCoverage
19 * \brief Run a ctest script
21 * cmCTestCoverageCommand defineds the command to test the project.
23 class cmCTestCoverageCommand : public cmCTestHandlerCommand
27 * This is a virtual constructor for the command.
29 std::unique_ptr<cmCommand> Clone() override
31 auto ni = cm::make_unique<cmCTestCoverageCommand>();
32 ni->CTest = this->CTest;
33 ni->CTestScriptHandler = this->CTestScriptHandler;
34 return std::unique_ptr<cmCommand>(std::move(ni));
38 * The name of the command as specified in CMakeList.txt.
40 std::string GetName() const override { return "ctest_coverage"; }
43 void BindArguments() override;
44 void CheckArguments(std::vector<std::string> const& keywords) override;
45 cmCTestGenericHandler* InitializeHandler() override;
48 std::vector<std::string> Labels;