From 375904dc013179254871958649681fe7ef0f0ac5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20Sch=C3=A4fer?= Date: Sat, 12 Dec 2015 02:09:49 +0100 Subject: [PATCH] show nested steps in HTML report (#174) --- .../examples/nested/NestedStepsTest.java | 3 +- .../src/app/css/jgivenreport.css | 5 + jgiven-html5-report/src/app/index.html | 117 ++++++++++-------- 3 files changed, 71 insertions(+), 54 deletions(-) diff --git a/jgiven-examples/src/test/java/com/tngtech/jgiven/examples/nested/NestedStepsTest.java b/jgiven-examples/src/test/java/com/tngtech/jgiven/examples/nested/NestedStepsTest.java index 2f5a97ee17..c0a28b1e0f 100644 --- a/jgiven-examples/src/test/java/com/tngtech/jgiven/examples/nested/NestedStepsTest.java +++ b/jgiven-examples/src/test/java/com/tngtech/jgiven/examples/nested/NestedStepsTest.java @@ -47,7 +47,8 @@ public NestedStage I_fill_out_the_registration_form_with_valid_values() { @NestedSteps public NestedStage I_enter_a_name( String name ) { - return I_think_a_name( name ).and().I_write_the_name( name ); + return I_think_a_name( name ) + .and().I_write_the_name( name ); } public NestedStage I_think_a_name( String name ) { diff --git a/jgiven-html5-report/src/app/css/jgivenreport.css b/jgiven-html5-report/src/app/css/jgivenreport.css index 9e2141e2d7..967fff9354 100644 --- a/jgiven-html5-report/src/app/css/jgivenreport.css +++ b/jgiven-html5-report/src/app/css/jgivenreport.css @@ -264,6 +264,11 @@ span.scenario-group-header-name.failed { margin-left: 1.3rem; } +.nested-step { + padding-left: 1rem; + border-left: 1px solid #eee; +} + .has-tip { font-weight: normal !important; } diff --git a/jgiven-html5-report/src/app/index.html b/jgiven-html5-report/src/app/index.html index f7539f3f2d..64d310aa9d 100644 --- a/jgiven-html5-report/src/app/index.html +++ b/jgiven-html5-report/src/app/index.html @@ -60,6 +60,69 @@ + +
@@ -462,59 +525,7 @@

Loading - - - - <{{::word.argumentInfo.parameterName}}> - - - {{ ::word.argumentInfo.formattedValue || word.value }} - - - - -
{{ ::value }} -
- -
- -
- {{ step.attachment.title }} -
-
- - - - - {{ scenarioCase.caseNr }} - - - - - - - - - - - ({{ ::nanosToReadableUnit(step.durationInNanos) }}) +