![]() Sources.excludes: An array of globs, relative to the sources.base value. Anything source file referenced in a source map is excluded from processing if it doesn't match one of these globs. Sources.dirs: An array of globs, relative to the sources.base value. Sources.base: The base url to perform filtering at Sources: This is an object with three fields: This is used to strip out line hits from object instantiation. It's an abosolute path to lcov data from unit tests against the source files. If you had all your static js code at for example, that's what you'd use here.ĭist_path: This is the absolute path your minified files on disk.ĭist_coverage_url: This is the url prefix used in sourcemaps to reference source filesĭist_coverage_path: This is used to locate source files referenced in source maps, by replacing the dist_coverage_url with the dist_coverage_path. It's what the tool uses to filter out the initial coverage data. Public_url_base: This is the full url prefix of where you're serving files from. unless otherwise indicated, all urls and paths require a trailing slash. To run atlas on the coverage data, you'll need a json configuration file for it. Here's an example to output the coverage data to the some_action.json file in the coverage folder (this code assumes that that folder already exists). It's generated using the startJSCoverage on the page object. The type of data this tool takes in is chrome coverage data (from puppeteer). More output formats may be added in the future Using the tool Generating the input coverage data ![]() This tool outputs coverage data in the sonarqube coverage format. The source maps referenced from the source files.It requires you to have the source files involved for the traversing, specifically: This tool processes chrome coverage data as generated from puppeteer. ![]() I think it can be built on low of a version as 1.26. 1.28 and greater should work for building it. It requires a configuration file to understand where the referenced files are, and how to traverse and interpret the source maps. Specifically, it can read chrome coverage data (from puppeteer), and for any files that reference a source map, calculate the line coverage of the contributing source files. Convert code coverage on your dist folder into code coverage for your src folder. This tool is for processing coverage data on minified javascript. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |