cmParseBlanketJSCoverage.h 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. /*============================================================================
  2. CMake - Cross Platform Makefile Generator
  3. Copyright 2000-2009 Kitware, Inc.
  4. Distributed under the OSI-approved BSD License (the "License");
  5. see accompanying file Copyright.txt for details.
  6. This software is distributed WITHOUT ANY WARRANTY; without even the
  7. implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  8. See the License for more information.
  9. ============================================================================*/
  10. #ifndef cmParseBlanketJSCoverage_h
  11. #define cmParseBlanketJSCoverage_h
  12. #include "cmCTestCoverageHandler.h"
  13. /** \class cmParseBlanketJSCoverage
  14. * \brief Parse BlanketJS coverage information
  15. *
  16. * This class is used to parse BlanketJS(Pascal) coverage information
  17. * generated by the Blanket.js library when used in conjunction with the
  18. * test runner mocha.js, which is used to write out the JSON format.
  19. *
  20. * Blanket.js:
  21. * http://blanketjs.org/
  22. *
  23. * Mocha.js
  24. * http://visionmedia.github.io/mocha/
  25. */
  26. class cmParseBlanketJSCoverage
  27. {
  28. public:
  29. cmParseBlanketJSCoverage(cmCTestCoverageHandlerContainer& cont,
  30. cmCTest* ctest);
  31. bool LoadCoverageData(std::vector<std::string> files);
  32. // Read the JSON output
  33. bool ReadJSONFile(std::string file);
  34. protected:
  35. class JSONParser;
  36. cmCTestCoverageHandlerContainer& Coverage;
  37. cmCTest* CTest;
  38. };
  39. #endif