@alejandrojca/elmulo-reporter 2.0.0-beta.6 → 2.0.0-beta.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/VERSION.json +1 -1
- package/finalize.cjs +26 -16
- package/package.json +1 -1
- package/plugin.cjs +1 -1
- package/server.cjs +1 -1
package/VERSION.json
CHANGED
package/finalize.cjs
CHANGED
|
@@ -435,7 +435,7 @@ function persistRun(database, run) {
|
|
|
435
435
|
system: run.system || {},
|
|
436
436
|
source: run.source || {},
|
|
437
437
|
execution: run.execution || null,
|
|
438
|
-
reporterVersion: "2.0.0-beta.
|
|
438
|
+
reporterVersion: "2.0.0-beta.7",
|
|
439
439
|
}),
|
|
440
440
|
],
|
|
441
441
|
);
|
|
@@ -873,19 +873,27 @@ function buildHtml(run) {
|
|
|
873
873
|
`;
|
|
874
874
|
}
|
|
875
875
|
|
|
876
|
-
function
|
|
877
|
-
|
|
878
|
-
const
|
|
879
|
-
|
|
880
|
-
|
|
881
|
-
|
|
882
|
-
|
|
883
|
-
|
|
884
|
-
|
|
885
|
-
|
|
886
|
-
}
|
|
887
|
-
}
|
|
888
|
-
|
|
876
|
+
function copyDirectoryContents(sourceDir, destinationDir) {
|
|
877
|
+
ensureDir(destinationDir);
|
|
878
|
+
for (const entry of fs.readdirSync(sourceDir, { withFileTypes: true })) {
|
|
879
|
+
const sourcePath = path.join(sourceDir, entry.name);
|
|
880
|
+
const destinationPath = path.join(destinationDir, entry.name);
|
|
881
|
+
if (entry.isDirectory()) {
|
|
882
|
+
copyDirectoryContents(sourcePath, destinationPath);
|
|
883
|
+
} else if (entry.isFile()) {
|
|
884
|
+
fs.copyFileSync(sourcePath, destinationPath);
|
|
885
|
+
}
|
|
886
|
+
}
|
|
887
|
+
}
|
|
888
|
+
|
|
889
|
+
function copyStaticAssets(reportDir) {
|
|
890
|
+
// Assets belong to the reporter package, not to the consuming Cypress project.
|
|
891
|
+
copyDirectoryContents(
|
|
892
|
+
path.join(__dirname, "assets"),
|
|
893
|
+
path.join(reportDir, "assets"),
|
|
894
|
+
);
|
|
895
|
+
}
|
|
896
|
+
|
|
889
897
|
function mergeHttpManifest(run, runDir) {
|
|
890
898
|
const manifest = readJson(path.join(runDir, "http", "manifest.json"), []);
|
|
891
899
|
if (!Array.isArray(manifest) || !manifest.length) return;
|
|
@@ -924,7 +932,7 @@ async function finalizeRun(options = {}) {
|
|
|
924
932
|
if (!run) throw new Error(`No se encontró ${rawPath}`);
|
|
925
933
|
|
|
926
934
|
run.schemaVersion = DATABASE_SCHEMA_VERSION;
|
|
927
|
-
run.reporterVersion = "2.0.0-beta.
|
|
935
|
+
run.reporterVersion = "2.0.0-beta.7";
|
|
928
936
|
run.lifecycle = run.lifecycle || "completed";
|
|
929
937
|
run.source = run.source || {
|
|
930
938
|
branch: process.env.CI_COMMIT_REF_NAME || "",
|
|
@@ -966,7 +974,9 @@ module.exports = {
|
|
|
966
974
|
buildTrends,
|
|
967
975
|
buildQualityAnalytics,
|
|
968
976
|
canonicalTestIdentity,
|
|
969
|
-
compareRuns,
|
|
977
|
+
compareRuns,
|
|
978
|
+
copyDirectoryContents,
|
|
979
|
+
copyStaticAssets,
|
|
970
980
|
enrichRunTests,
|
|
971
981
|
finalizeRun,
|
|
972
982
|
loadAnnotations,
|
package/package.json
CHANGED
package/plugin.cjs
CHANGED
|
@@ -57,7 +57,7 @@ function registerElmuloReporter(on, config, options = {}) {
|
|
|
57
57
|
"unknown",
|
|
58
58
|
tagExpression: config.env?.TAGS || process.env.CYPRESS_TAGS || "",
|
|
59
59
|
lifecycle: "running",
|
|
60
|
-
reporterVersion: "2.0.0-beta.
|
|
60
|
+
reporterVersion: "2.0.0-beta.7",
|
|
61
61
|
execution: executionScript
|
|
62
62
|
? { runner: "npm", script: executionScript, args: executionArgs }
|
|
63
63
|
: null,
|
package/server.cjs
CHANGED
|
@@ -182,7 +182,7 @@ async function serveReport(options = {}) {
|
|
|
182
182
|
if (request.method === "GET" && url.pathname === "/api/health") {
|
|
183
183
|
sendJson(response, 200, {
|
|
184
184
|
ok: true,
|
|
185
|
-
version: "2.0.0-beta.
|
|
185
|
+
version: "2.0.0-beta.7",
|
|
186
186
|
schemaVersion: 3,
|
|
187
187
|
});
|
|
188
188
|
return;
|