add aliass scenario-reports-upload + scenario-reports-online and hide template+debug-log

This commit is contained in:
Michael Hoennig 2024-11-13 16:14:33 +01:00
parent c3f3efaf18
commit f12ef76f05
4 changed files with 6 additions and 3 deletions

View File

@ -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'

View File

@ -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.")
}
}

View File

@ -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<String, ?> aliases;
private final PrintWriter markdownLog; // records everything for debugging purposes