Skip to content

Commit eee70eb

Browse files
committed
Merge pull request #1 from dirkrombauts/dirkrombauts-fixdocsspecrun
Update IntegratingTestResultsFromSpecRun.md
2 parents e3ee00a + c465869 commit eee70eb

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

docs/IntegratingTestResultsFromSpecRun.md

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,15 +7,16 @@ It is now possible to integrate test results from [SpecRun](http://www.specrun.c
77
* Include ReportTemplate.cshtml in your Visual Studio Project and set its "Copy to Output Directory" to "Copy if newer".
88
* Adapt your .srprofile file by adding the reportTemplate attribute to the Settings element:
99

10-
10+
````xml
1111
<?xml version="1.0" encoding="utf-16"?>
1212
<TestProfile xmlns="http://www.specrun.com/schemas/2011/09/TestProfile">
1313
<Settings reportTemplate="ReportTemplate.cshtml" />
1414
</TestProfile>
15+
````
1516

1617
* Open ReportTemplate.cshtml and add this helper before the html element:
1718

18-
19+
````javascript
1920
@helper GetResultForPickles(TestNode testNode)
2021
{
2122
var summary = GetSummary(testNode);
@@ -30,11 +31,11 @@ It is now possible to integrate test results from [SpecRun](http://www.specrun.c
3031
else
3132
{<text>Inconclusive</text>}
3233
}
33-
34+
````
3435

3536
* Still in ReportTemplate.cshtml, add this fragment before the closing /body element:
3637

37-
38+
````javascript
3839
<!-- Pickles Begin
3940
&lt;features&gt;
4041
@foreach (var fixtureNode in GetTextFixtures())
@@ -54,5 +55,6 @@ It is now possible to integrate test results from [SpecRun](http://www.specrun.c
5455
}
5556
&lt;/features&gt;
5657
Pickles End -->
58+
````
5759

58-
Congratulations! You have now modified the default SpecRun report template so that it includes additional information that will tell Pickles the results of the scenarios.
60+
Congratulations! You have now modified the default SpecRun report template so that it includes additional information that will tell Pickles the results of the scenarios.

0 commit comments

Comments
 (0)