Linux v69820.1blu.de 4.15.0 #1 SMP Mon Sep 30 15:36:27 MSK 2024 x86_64
Apache/2.4.58
Server IP : 195.90.215.149 & Your IP : 216.73.217.80
Domains :
Cant Read [ /etc/named.conf ]
User : www-data
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
usr /
share /
nodejs /
istanbul /
lib /
report /
Delete
Unzip
Name
Size
Permission
Date
Action
common
[ DIR ]
drwxr-xr-x
2024-07-09 21:58
templates
[ DIR ]
drwxr-xr-x
2024-07-09 21:58
clover.js
7.58
KB
-rw-r--r--
2023-08-21 05:40
cobertura.js
7.15
KB
-rw-r--r--
2023-08-21 05:40
html.js
21.67
KB
-rw-r--r--
2023-08-21 05:40
index.js
3.29
KB
-rw-r--r--
2023-08-21 05:40
json-summary.js
2.51
KB
-rw-r--r--
2023-08-21 05:40
json.js
2.09
KB
-rw-r--r--
2023-08-21 05:40
lcov.js
2.05
KB
-rw-r--r--
2023-08-21 05:40
lcovonly.js
3.42
KB
-rw-r--r--
2023-08-21 05:40
none.js
895
B
-rw-r--r--
2023-08-21 05:40
teamcity.js
3.01
KB
-rw-r--r--
2023-08-21 05:40
text-lcov.js
1.08
KB
-rw-r--r--
2023-08-21 05:40
text-summary.js
3.23
KB
-rw-r--r--
2023-08-21 05:40
text.js
6.89
KB
-rw-r--r--
2023-08-21 05:40
Save
Rename
/* Copyright (c) 2012, Yahoo! Inc. All rights reserved. Copyrights licensed under the New BSD License. See the accompanying LICENSE file for terms. */ var path = require('path'), util = require('util'), mkdirp = require('mkdirp'), fs = require('fs'), utils = require('../object-utils'), Report = require('./index'); /** * a `Report` implementation that produces system messages interpretable by TeamCity. * * Usage * ----- * * var report = require('istanbul').Report.create('teamcity'); * * @class TeamcityReport * @extends Report * @module report * @constructor * @param {Object} opts optional * @param {String} [opts.dir] the directory in which to the text coverage report will be written, when writing to a file * @param {String} [opts.file] the filename for the report. When omitted, the report is written to console */ function TeamcityReport(opts) { Report.call(this); opts = opts || {}; this.dir = opts.dir || process.cwd(); this.file = opts.file; this.blockName = opts.blockName || this.getDefaultConfig().blockName; } TeamcityReport.TYPE = 'teamcity'; util.inherits(TeamcityReport, Report); function lineForKey(value, teamcityVar) { return '##teamcity[buildStatisticValue key=\'' + teamcityVar + '\' value=\'' + value + '\']'; } Report.mix(TeamcityReport, { synopsis: function () { return 'report with system messages that can be interpreted with TeamCity'; }, getDefaultConfig: function () { return { file: null , blockName: 'Code Coverage Summary'}; }, writeReport: function (collector /*, sync */) { var summaries = [], finalSummary, lines = [], text; collector.files().forEach(function (file) { summaries.push(utils.summarizeFileCoverage(collector.fileCoverageFor(file))); }); finalSummary = utils.mergeSummaryObjects.apply(null, summaries); lines.push(''); lines.push('##teamcity[blockOpened name=\''+ this.blockName +'\']'); //Statements Covered lines.push(lineForKey(finalSummary.statements.pct, 'CodeCoverageB')); //Methods Covered lines.push(lineForKey(finalSummary.functions.covered, 'CodeCoverageAbsMCovered')); lines.push(lineForKey(finalSummary.functions.total, 'CodeCoverageAbsMTotal')); lines.push(lineForKey(finalSummary.functions.pct, 'CodeCoverageM')); //Lines Covered lines.push(lineForKey(finalSummary.lines.covered, 'CodeCoverageAbsLCovered')); lines.push(lineForKey(finalSummary.lines.total, 'CodeCoverageAbsLTotal')); lines.push(lineForKey(finalSummary.lines.pct, 'CodeCoverageL')); lines.push('##teamcity[blockClosed name=\''+ this.blockName +'\']'); text = lines.join('\n'); if (this.file) { mkdirp.sync(this.dir); fs.writeFileSync(path.join(this.dir, this.file), text, 'utf8'); } else { console.log(text); } this.emit('done'); } }); module.exports = TeamcityReport;