Skip to content

Commit 22dbf40

Browse files
committed
Added root object to json report so as to produce expected result in VS2012 paste json as class feature.
1 parent ba9cc53 commit 22dbf40

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

TestStack.BDDfy/Processors/Reports/Diagnostics/DiagnosticsReportBuilder.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,8 @@ public DiagnosticsReportBuilder(ISerializer serializer)
1919
public string CreateReport(FileReportModel model)
2020
{
2121
var graph = GetDiagnosticData(model);
22-
return _serializer.Serialize(graph);
22+
var rootObject = new { Stories = graph };
23+
return _serializer.Serialize(rootObject);
2324
}
2425

2526
public IList<StoryDiagnostic> GetDiagnosticData(FileReportModel viewModel)

0 commit comments

Comments
 (0)