From f12ef76f0597a3d9b3d8f864bc39a51b7436f232 Mon Sep 17 00:00:00 2001 From: Michael Hoennig Date: Wed, 13 Nov 2024 16:14:33 +0100 Subject: [PATCH] add aliass scenario-reports-upload + scenario-reports-online and hide template+debug-log --- .aliases | 3 +++ build.gradle | 4 ++-- doc/scenarios/{template.html => .template.html} | 0 .../hostsharing/hsadminng/hs/office/scenarios/TestReport.java | 2 +- 4 files changed, 6 insertions(+), 3 deletions(-) rename doc/scenarios/{template.html => .template.html} (100%) diff --git a/.aliases b/.aliases index b57cd717..55a53503 100644 --- a/.aliases +++ b/.aliases @@ -95,3 +95,6 @@ if [ ! -f .environment ]; then cp .tc-environment .environment fi source .environment + +alias scenario-reports-upload='./gradlew convertMarkdownToHtml && ssh hsh03-hsngdev@h50.hostsharing.net "rm doms/hsngdev.hs-example.de/htdocs-ssl/scenarios/office/*.html" && scp doc/scenarios/*.html hsh03-hsngdev@h50.hostsharing.net:doms/hsngdev.hs-example.de/htdocs-ssl/scenarios/office' +alias scenario-reports-online='open https://hsngdev.hs-example.de/scenarios/office' diff --git a/build.gradle b/build.gradle index ed7a290d..c07888f5 100644 --- a/build.gradle +++ b/build.gradle @@ -410,7 +410,7 @@ tasks.register('convertMarkdownToHtml') { group = 'Conversion' // Define the template file and input directory - def templateFile = file('doc/scenarios/template.html') + def templateFile = file('doc/scenarios/.template.html') // Task configuration and execution doFirst { @@ -425,7 +425,7 @@ tasks.register('convertMarkdownToHtml') { // Check if the template file exists if (!templateFile.exists()) { - throw new GradleException("Template file 'doc/scenarios/template.html' not found.") + throw new GradleException("Template file 'doc/scenarios/.template.html' not found.") } } diff --git a/doc/scenarios/template.html b/doc/scenarios/.template.html similarity index 100% rename from doc/scenarios/template.html rename to doc/scenarios/.template.html diff --git a/src/test/java/net/hostsharing/hsadminng/hs/office/scenarios/TestReport.java b/src/test/java/net/hostsharing/hsadminng/hs/office/scenarios/TestReport.java index 07f15e36..5b89e6f1 100644 --- a/src/test/java/net/hostsharing/hsadminng/hs/office/scenarios/TestReport.java +++ b/src/test/java/net/hostsharing/hsadminng/hs/office/scenarios/TestReport.java @@ -16,7 +16,7 @@ import static org.assertj.core.api.Assertions.assertThat; public class TestReport { - private final static File markdownLogFile = new File("doc/scenarios/last-debug-log.md"); + private final static File markdownLogFile = new File("doc/scenarios/.last-debug-log.md"); private final Map aliases; private final PrintWriter markdownLog; // records everything for debugging purposes