Deployed the page to Github Pages.

This commit is contained in:
Batuhan Berk Başoğlu 2024-11-03 21:30:09 -05:00
parent 1d79754e93
commit 2c89899458
Signed by: batuhan-basoglu
SSH key fingerprint: SHA256:kEsnuHX+qbwhxSAXPUQ4ox535wFHu/hIRaa53FzxRpo
62797 changed files with 6551425 additions and 15279 deletions

View file

@ -0,0 +1,13 @@
import { DisplayProcessor } from "../display-processor";
import { CustomReporterResult } from "../spec-reporter";
export declare class DefaultProcessor extends DisplayProcessor {
private static displaySpecDescription;
displayJasmineStarted(): string;
displaySuite(suite: CustomReporterResult): string;
displaySuccessfulSpec(spec: CustomReporterResult): string;
displayFailedSpec(spec: CustomReporterResult): string;
displaySpecErrorMessages(spec: CustomReporterResult): string;
displaySummaryErrorMessages(spec: CustomReporterResult): string;
displayPendingSpec(spec: CustomReporterResult): string;
private displayErrorMessages;
}

View file

@ -0,0 +1,62 @@
"use strict";
var __extends = (this && this.__extends) || (function () {
var extendStatics = function (d, b) {
extendStatics = Object.setPrototypeOf ||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
return extendStatics(d, b);
};
return function (d, b) {
extendStatics(d, b);
function __() { this.constructor = d; }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
Object.defineProperty(exports, "__esModule", { value: true });
exports.DefaultProcessor = void 0;
var configuration_1 = require("../configuration");
var display_processor_1 = require("../display-processor");
var DefaultProcessor = /** @class */ (function (_super) {
__extends(DefaultProcessor, _super);
function DefaultProcessor() {
return _super !== null && _super.apply(this, arguments) || this;
}
DefaultProcessor.displaySpecDescription = function (spec) {
return spec.description;
};
DefaultProcessor.prototype.displayJasmineStarted = function () {
return "Jasmine started";
};
DefaultProcessor.prototype.displaySuite = function (suite) {
return suite.description;
};
DefaultProcessor.prototype.displaySuccessfulSpec = function (spec) {
return DefaultProcessor.displaySpecDescription(spec);
};
DefaultProcessor.prototype.displayFailedSpec = function (spec) {
return DefaultProcessor.displaySpecDescription(spec);
};
DefaultProcessor.prototype.displaySpecErrorMessages = function (spec) {
return this.displayErrorMessages(spec, this.configuration.spec.displayStacktrace);
};
DefaultProcessor.prototype.displaySummaryErrorMessages = function (spec) {
return this.displayErrorMessages(spec, this.configuration.summary.displayStacktrace);
};
DefaultProcessor.prototype.displayPendingSpec = function (spec) {
return DefaultProcessor.displaySpecDescription(spec);
};
DefaultProcessor.prototype.displayErrorMessages = function (spec, stacktraceOption) {
var logs = [];
for (var _i = 0, _a = spec.failedExpectations; _i < _a.length; _i++) {
var failedExpectation = _a[_i];
logs.push(this.theme.failed("- ") + this.theme.failed(failedExpectation.message));
if (stacktraceOption === configuration_1.StacktraceOption.RAW && failedExpectation.stack) {
logs.push(this.configuration.stacktrace.filter(failedExpectation.stack));
}
}
return logs.join("\n");
};
return DefaultProcessor;
}(display_processor_1.DisplayProcessor));
exports.DefaultProcessor = DefaultProcessor;
//# sourceMappingURL=default-processor.js.map

View file

@ -0,0 +1,9 @@
import { DisplayProcessor } from "../display-processor";
import { CustomReporterResult } from "../spec-reporter";
export declare class PrettyStacktraceProcessor extends DisplayProcessor {
displaySpecErrorMessages(spec: CustomReporterResult, log: string): string;
displaySummaryErrorMessages(spec: CustomReporterResult, log: string): string;
private displayErrorMessages;
private prettifyStack;
private retrieveErrorContext;
}

View file

@ -0,0 +1,83 @@
"use strict";
var __extends = (this && this.__extends) || (function () {
var extendStatics = function (d, b) {
extendStatics = Object.setPrototypeOf ||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
return extendStatics(d, b);
};
return function (d, b) {
extendStatics(d, b);
function __() { this.constructor = d; }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
Object.defineProperty(exports, "__esModule", { value: true });
exports.PrettyStacktraceProcessor = void 0;
var fs = require("fs");
var configuration_1 = require("../configuration");
var display_processor_1 = require("../display-processor");
var STACK_REG_EXP = /\((.*):(\d+):(\d+)\)/;
var CONTEXT = 2;
var PrettyStacktraceProcessor = /** @class */ (function (_super) {
__extends(PrettyStacktraceProcessor, _super);
function PrettyStacktraceProcessor() {
return _super !== null && _super.apply(this, arguments) || this;
}
PrettyStacktraceProcessor.prototype.displaySpecErrorMessages = function (spec, log) {
return this.configuration.spec.displayStacktrace === configuration_1.StacktraceOption.PRETTY ? this.displayErrorMessages(spec) : log;
};
PrettyStacktraceProcessor.prototype.displaySummaryErrorMessages = function (spec, log) {
return this.configuration.summary.displayStacktrace === configuration_1.StacktraceOption.PRETTY ? this.displayErrorMessages(spec) : log;
};
PrettyStacktraceProcessor.prototype.displayErrorMessages = function (spec) {
var logs = [];
for (var _i = 0, _a = spec.failedExpectations; _i < _a.length; _i++) {
var failedExpectation = _a[_i];
logs.push(this.theme.failed("- ") + this.theme.failed(failedExpectation.message));
if (failedExpectation.stack) {
logs.push(this.prettifyStack(failedExpectation.stack));
}
}
return logs.join("\n");
};
PrettyStacktraceProcessor.prototype.prettifyStack = function (stack) {
var _this = this;
var logs = [];
var filteredStack = this.configuration.stacktrace.filter(stack);
var stackRegExp = new RegExp(STACK_REG_EXP);
filteredStack.split("\n").forEach(function (stackLine) {
if (stackRegExp.test(stackLine)) {
var _a = stackLine.match(stackRegExp), filename = _a[1], lineNumber = _a[2], columnNumber = _a[3];
var errorContext = _this.retrieveErrorContext(filename, parseInt(lineNumber, 10), parseInt(columnNumber, 10));
logs.push(_this.theme.prettyStacktraceFilename(filename) + ":" + _this.theme.prettyStacktraceLineNumber(lineNumber) + ":" + _this.theme.prettyStacktraceColumnNumber(columnNumber));
logs.push(errorContext + "\n");
}
});
return "\n" + logs.join("\n");
};
PrettyStacktraceProcessor.prototype.retrieveErrorContext = function (filename, lineNb, columnNb) {
var logs = [];
var fileLines;
try {
fileLines = fs.readFileSync(filename, "utf-8")
.split("\n");
}
catch (error) {
return "jasmine-spec-reporter: unable to open '" + filename + "'\n" + error;
}
for (var i = 0; i < fileLines.length; i++) {
var errorLine = lineNb - 1;
if (i >= errorLine - CONTEXT && i <= errorLine + CONTEXT) {
logs.push(fileLines[i]);
}
if (i === errorLine) {
logs.push(" ".repeat(columnNb - 1) + this.theme.prettyStacktraceError("~"));
}
}
return logs.join("\n");
};
return PrettyStacktraceProcessor;
}(display_processor_1.DisplayProcessor));
exports.PrettyStacktraceProcessor = PrettyStacktraceProcessor;
//# sourceMappingURL=pretty-stacktrace-processor.js.map

View file

@ -0,0 +1,7 @@
import { DisplayProcessor } from "../display-processor";
import { CustomReporterResult } from "../spec-reporter";
export declare class SpecColorsProcessor extends DisplayProcessor {
displaySuccessfulSpec(spec: CustomReporterResult, log: string): string;
displayFailedSpec(spec: CustomReporterResult, log: string): string;
displayPendingSpec(spec: CustomReporterResult, log: string): string;
}

View file

@ -0,0 +1,35 @@
"use strict";
var __extends = (this && this.__extends) || (function () {
var extendStatics = function (d, b) {
extendStatics = Object.setPrototypeOf ||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
return extendStatics(d, b);
};
return function (d, b) {
extendStatics(d, b);
function __() { this.constructor = d; }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
Object.defineProperty(exports, "__esModule", { value: true });
exports.SpecColorsProcessor = void 0;
var display_processor_1 = require("../display-processor");
var SpecColorsProcessor = /** @class */ (function (_super) {
__extends(SpecColorsProcessor, _super);
function SpecColorsProcessor() {
return _super !== null && _super.apply(this, arguments) || this;
}
SpecColorsProcessor.prototype.displaySuccessfulSpec = function (spec, log) {
return this.theme.successful(log);
};
SpecColorsProcessor.prototype.displayFailedSpec = function (spec, log) {
return this.theme.failed(log);
};
SpecColorsProcessor.prototype.displayPendingSpec = function (spec, log) {
return this.theme.pending(log);
};
return SpecColorsProcessor;
}(display_processor_1.DisplayProcessor));
exports.SpecColorsProcessor = SpecColorsProcessor;
//# sourceMappingURL=spec-colors-processor.js.map

View file

@ -0,0 +1,7 @@
import { DisplayProcessor } from "../display-processor";
import { CustomReporterResult } from "../spec-reporter";
export declare class SpecDurationsProcessor extends DisplayProcessor {
private static displayDuration;
displaySuccessfulSpec(spec: CustomReporterResult, log: string): string;
displayFailedSpec(spec: CustomReporterResult, log: string): string;
}

View file

@ -0,0 +1,35 @@
"use strict";
var __extends = (this && this.__extends) || (function () {
var extendStatics = function (d, b) {
extendStatics = Object.setPrototypeOf ||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
return extendStatics(d, b);
};
return function (d, b) {
extendStatics(d, b);
function __() { this.constructor = d; }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
Object.defineProperty(exports, "__esModule", { value: true });
exports.SpecDurationsProcessor = void 0;
var display_processor_1 = require("../display-processor");
var SpecDurationsProcessor = /** @class */ (function (_super) {
__extends(SpecDurationsProcessor, _super);
function SpecDurationsProcessor() {
return _super !== null && _super.apply(this, arguments) || this;
}
SpecDurationsProcessor.displayDuration = function (spec, log) {
return log + " (" + spec.duration + ")";
};
SpecDurationsProcessor.prototype.displaySuccessfulSpec = function (spec, log) {
return SpecDurationsProcessor.displayDuration(spec, log);
};
SpecDurationsProcessor.prototype.displayFailedSpec = function (spec, log) {
return SpecDurationsProcessor.displayDuration(spec, log);
};
return SpecDurationsProcessor;
}(display_processor_1.DisplayProcessor));
exports.SpecDurationsProcessor = SpecDurationsProcessor;
//# sourceMappingURL=spec-durations-processor.js.map

View file

@ -0,0 +1,7 @@
import { DisplayProcessor } from "../display-processor";
import { CustomReporterResult } from "../spec-reporter";
export declare class SpecPrefixesProcessor extends DisplayProcessor {
displaySuccessfulSpec(spec: CustomReporterResult, log: string): string;
displayFailedSpec(spec: CustomReporterResult, log: string): string;
displayPendingSpec(spec: CustomReporterResult, log: string): string;
}

View file

@ -0,0 +1,35 @@
"use strict";
var __extends = (this && this.__extends) || (function () {
var extendStatics = function (d, b) {
extendStatics = Object.setPrototypeOf ||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
return extendStatics(d, b);
};
return function (d, b) {
extendStatics(d, b);
function __() { this.constructor = d; }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
Object.defineProperty(exports, "__esModule", { value: true });
exports.SpecPrefixesProcessor = void 0;
var display_processor_1 = require("../display-processor");
var SpecPrefixesProcessor = /** @class */ (function (_super) {
__extends(SpecPrefixesProcessor, _super);
function SpecPrefixesProcessor() {
return _super !== null && _super.apply(this, arguments) || this;
}
SpecPrefixesProcessor.prototype.displaySuccessfulSpec = function (spec, log) {
return this.configuration.prefixes.successful + log;
};
SpecPrefixesProcessor.prototype.displayFailedSpec = function (spec, log) {
return this.configuration.prefixes.failed + log;
};
SpecPrefixesProcessor.prototype.displayPendingSpec = function (spec, log) {
return this.configuration.prefixes.pending + log;
};
return SpecPrefixesProcessor;
}(display_processor_1.DisplayProcessor));
exports.SpecPrefixesProcessor = SpecPrefixesProcessor;
//# sourceMappingURL=spec-prefixes-processor.js.map

View file

@ -0,0 +1,10 @@
import { DisplayProcessor } from "../display-processor";
import { CustomReporterResult } from "../spec-reporter";
export declare class SuiteNumberingProcessor extends DisplayProcessor {
private static getParentName;
private suiteHierarchy;
displaySuite(suite: CustomReporterResult, log: string): string;
private computeNumber;
private computeHierarchy;
private computeHierarchyNumber;
}

View file

@ -0,0 +1,60 @@
"use strict";
var __extends = (this && this.__extends) || (function () {
var extendStatics = function (d, b) {
extendStatics = Object.setPrototypeOf ||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
return extendStatics(d, b);
};
return function (d, b) {
extendStatics(d, b);
function __() { this.constructor = d; }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
Object.defineProperty(exports, "__esModule", { value: true });
exports.SuiteNumberingProcessor = void 0;
var display_processor_1 = require("../display-processor");
var SuiteNumberingProcessor = /** @class */ (function (_super) {
__extends(SuiteNumberingProcessor, _super);
function SuiteNumberingProcessor() {
var _this = _super !== null && _super.apply(this, arguments) || this;
_this.suiteHierarchy = [];
return _this;
}
SuiteNumberingProcessor.getParentName = function (element) {
return element.fullName.replace(element.description, "").trim();
};
SuiteNumberingProcessor.prototype.displaySuite = function (suite, log) {
return this.computeNumber(suite) + " " + log;
};
SuiteNumberingProcessor.prototype.computeNumber = function (suite) {
this.computeHierarchy(suite);
return this.computeHierarchyNumber();
};
SuiteNumberingProcessor.prototype.computeHierarchy = function (suite) {
var parentName = SuiteNumberingProcessor.getParentName(suite);
var i = 0;
for (; i < this.suiteHierarchy.length; i++) {
if (this.suiteHierarchy[i].name === parentName) {
this.suiteHierarchy[i].number++;
this.suiteHierarchy.splice(i + 1, this.suiteHierarchy.length - i - 1);
break;
}
}
if (i === this.suiteHierarchy.length) {
this.suiteHierarchy.push({ name: parentName, number: 1 });
}
};
SuiteNumberingProcessor.prototype.computeHierarchyNumber = function () {
var hierarchyNumber = "";
for (var _i = 0, _a = this.suiteHierarchy; _i < _a.length; _i++) {
var suite = _a[_i];
hierarchyNumber += suite.number + ".";
}
return hierarchyNumber.substring(0, hierarchyNumber.length - 1);
};
return SuiteNumberingProcessor;
}(display_processor_1.DisplayProcessor));
exports.SuiteNumberingProcessor = SuiteNumberingProcessor;
//# sourceMappingURL=suite-numbering-processor.js.map