cmake/Source/CTest/cmParseBlanketJSCoverage.h

41 lines
1.1 KiB
C
Raw Normal View History

2016-10-30 18:24:19 +01:00
/* Distributed under the OSI-approved BSD 3-Clause License. See accompanying
file Copyright.txt or https://cmake.org/licensing for details. */
2021-09-14 00:13:48 +02:00
#pragma once
2015-04-27 22:25:09 +02:00
2017-07-20 19:35:53 +02:00
#include "cmConfigure.h" // IWYU pragma: keep
2016-10-30 18:24:19 +01:00
#include <string>
#include <vector>
class cmCTest;
class cmCTestCoverageHandlerContainer;
2015-04-27 22:25:09 +02:00
/** \class cmParseBlanketJSCoverage
* \brief Parse BlanketJS coverage information
*
* This class is used to parse BlanketJS(Pascal) coverage information
* generated by the Blanket.js library when used in conjunction with the
* test runner mocha.js, which is used to write out the JSON format.
*
* Blanket.js:
* http://blanketjs.org/
*
* Mocha.js
* http://visionmedia.github.io/mocha/
*/
class cmParseBlanketJSCoverage
{
public:
cmParseBlanketJSCoverage(cmCTestCoverageHandlerContainer& cont,
2016-07-09 11:21:54 +02:00
cmCTest* ctest);
2020-02-01 23:06:01 +01:00
bool LoadCoverageData(std::vector<std::string> const& files);
2015-04-27 22:25:09 +02:00
// Read the JSON output
2016-07-09 11:21:54 +02:00
bool ReadJSONFile(std::string const& file);
2015-04-27 22:25:09 +02:00
protected:
class JSONParser;
2016-10-30 18:24:19 +01:00
2015-04-27 22:25:09 +02:00
cmCTestCoverageHandlerContainer& Coverage;
cmCTest* CTest;
};