From abe20a8c357121c2a3fd26574fc0f6b16a2c750a Mon Sep 17 00:00:00 2001 From: Cezary Piatek Date: Fri, 22 Dec 2023 09:10:16 +0100 Subject: [PATCH] Show exception details in report browser --- src/NScenario/report-browser-template.html | 4 ---- src/nscenario-report-browser/package.json | 2 +- src/nscenario-report-browser/src/App.tsx | 6 ++++++ 3 files changed, 7 insertions(+), 5 deletions(-) diff --git a/src/NScenario/report-browser-template.html b/src/NScenario/report-browser-template.html index e3939c3..e69de29 100644 --- a/src/NScenario/report-browser-template.html +++ b/src/NScenario/report-browser-template.html @@ -1,4 +0,0 @@ -NScenario - Test Scenarios
diff --git a/src/nscenario-report-browser/package.json b/src/nscenario-report-browser/package.json index 1dc53af..60c5efe 100644 --- a/src/nscenario-report-browser/package.json +++ b/src/nscenario-report-browser/package.json @@ -24,7 +24,7 @@ "build": "react-scripts build", "test": "react-scripts test", "eject": "react-scripts eject", - "inline": "inliner -nm --preserve-comments build/index.html > build/report-browser-template.html" + "inline": "inliner -nm --preserve-comments build/index.html > ../NScenario/report-browser-template.html" }, "eslintConfig": { "extends": [ diff --git a/src/nscenario-report-browser/src/App.tsx b/src/nscenario-report-browser/src/App.tsx index 951de33..6e9239f 100644 --- a/src/nscenario-report-browser/src/App.tsx +++ b/src/nscenario-report-browser/src/App.tsx @@ -152,6 +152,12 @@ export function StepCtr(props: {data:Step, prefix:string}) { return ( <> Step {props.prefix}: {`${props.data.Description}`} + {props.data.Exception != null && ( +

+              {props.data.Exception}
+          
+ )} + {props.data.SubSteps && ({