From 0df846309b7b6b071f5b2764f9ec8e05c9446876 Mon Sep 17 00:00:00 2001 From: "mark.harrison" Date: Fri, 9 Sep 2016 13:54:40 +0100 Subject: [PATCH 1/3] Add HtmlTransform-v3.xslt and update HtmlSummary-v3.xslt to make the 2 consistent html, plus more maintainable Completes #5 --- src/Transforms/HtmlSummary-v3.xslt | 220 +++++++++++------------- src/Transforms/HtmlTransform-v3.xslt | 244 +++++++++++++++++++++++++++ src/nunit-summary.exe.csproj | 3 + 3 files changed, 345 insertions(+), 122 deletions(-) create mode 100644 src/Transforms/HtmlTransform-v3.xslt diff --git a/src/Transforms/HtmlSummary-v3.xslt b/src/Transforms/HtmlSummary-v3.xslt index 4971b71..61ffbf8 100644 --- a/src/Transforms/HtmlSummary-v3.xslt +++ b/src/Transforms/HtmlSummary-v3.xslt @@ -1,109 +1,98 @@ - + - - - - - - -
- Runtime Environment + .smllabel { + width:110px; + font-weight: bold; + } -
- - OS Version: + td.left { + text-align: left; + } - - - -
- - CLR Version: + td.right { + text-align: right; + } - - - -
-
+ li { + font-family: monospace + } + .collapsed + { + border:0; + border-collapse: collapse; + } - - - NUnit Version: - + + - - - -
-
-
+
- -
- Test Run Summary -
- - Overall result: - - - -
- + - Test Count: - - , - - Passed: - - , - - Failed: - - , - - Inconclusive: - - , - - Skipped: - - - -
+ +

Runtime Environment

+ + + + + + + + + + + + + + + + + +
OS Version: + +
CLR Version: + +
+ +
NUnit Version: + +
+ +

Test Run Summary

+ + + + + + + + + - - - Failed Tests - Failures: - - , - - Errors: - - , - - Invalid: - - - -
+
+ + + @@ -111,48 +100,35 @@ - - - Skipped Tests - Ignored: - - , - - Explicit: - - , - - Other: - - - - -
+
+ + + - - Start time: - - - -
- - End time: - - - -
- - Duration: - - seconds - -
- + + + + + + + + + + + + + - -
-
diff --git a/src/Transforms/HtmlTransform-v3.xslt b/src/Transforms/HtmlTransform-v3.xslt new file mode 100644 index 0000000..49a8774 --- /dev/null +++ b/src/Transforms/HtmlTransform-v3.xslt @@ -0,0 +1,244 @@ + + + + + + + + + + + + +

Runtime Environment

+ + + + + + + + + + + + + + + + + +
OS Version: + +
CLR Version: + +
+ +
NUnit Version: + +
+ + +
+

Test Files

+ +
    + +
  1. + +
  2. +
    +
+
+
+ + + +

Tests Not Run

+
    + +
+
+ + + +

Errors and Failures

+
    + +
+
+ + + + +

Run Settings

+
    +
  • + DefaultTimeout: +
  • +
  • + WorkDirectory: +
  • +
  • + ImageRuntimeVersion: +
  • +
  • + ImageTargetFrameworkName: +
  • +
  • + ImageRequiresX86: +
  • +
  • + ImageRequiresDefaultAppDomainAssemblyResolver: +
  • +
  • + NumberOfTestWorkers: +
  • +
+ +

Test Run Summary

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
  • +
    +        
    +        
    + + + + +
    +
    + +
    +
    +
    + + + + + +
    +
  • +
    + +
    diff --git a/src/nunit-summary.exe.csproj b/src/nunit-summary.exe.csproj index d0f5dc5..fca353b 100644 --- a/src/nunit-summary.exe.csproj +++ b/src/nunit-summary.exe.csproj @@ -85,6 +85,9 @@ + + + + + diff --git a/src/Transforms/HtmlTransform-v3.xslt b/src/Transforms/HtmlTransform-v3.xslt index 49a8774..f14c15d 100644 --- a/src/Transforms/HtmlTransform-v3.xslt +++ b/src/Transforms/HtmlTransform-v3.xslt @@ -37,6 +37,12 @@ + +

    Command Line

    +
    +      
    +    
    +

    Runtime Environment