Skip to content

Commit d2971ff

Browse files
committed
Reorganised report processor files and fixed one failing test.
1 parent 22dbf40 commit d2971ff

39 files changed

+122
-100
lines changed

TestStack.BDDfy.Samples/Atm/HtmlReportConfig.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
using TestStack.BDDfy.Processors.HtmlReporter;
1+
using TestStack.BDDfy.Processors.Reporters.Html;
22

33
namespace TestStack.BDDfy.Samples.Atm
44
{

TestStack.BDDfy.Samples/BDDfyConfiguration.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
using NUnit.Framework;
22
using TestStack.BDDfy.Configuration;
3-
using TestStack.BDDfy.Processors.HtmlReporter;
3+
using TestStack.BDDfy.Processors.Reporters.Html;
44
using TestStack.BDDfy.Samples.Atm;
55
using TestStack.BDDfy.Samples.TicTacToe;
66

TestStack.BDDfy.Tests/Configuration/BatchProcessorsTests.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@
22
using System.Linq;
33
using TestStack.BDDfy.Configuration;
44
using TestStack.BDDfy.Processors;
5-
using TestStack.BDDfy.Processors.HtmlReporter;
5+
using TestStack.BDDfy.Processors.Reporters.Html;
6+
using TestStack.BDDfy.Processors.Reporters.MarkDown;
67

78
namespace TestStack.BDDfy.Tests.Configuration
89
{

TestStack.BDDfy.Tests/Configuration/ProcessorPipelineTests.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
using NUnit.Framework;
33
using TestStack.BDDfy.Configuration;
44
using TestStack.BDDfy.Processors;
5+
using TestStack.BDDfy.Processors.Reporters;
56

67
namespace TestStack.BDDfy.Tests.Configuration
78
{
Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
1-
using System.Collections.Generic;
2-
using NSubstitute;
1+
using NSubstitute;
32
using NUnit.Framework;
4-
using TestStack.BDDfy.Processors;
5-
using TestStack.BDDfy.Processors.Reports.Diagnostics;
6-
using TestStack.BDDfy.Processors.Reports.Serializers;
3+
using TestStack.BDDfy.Processors.Reporters;
4+
using TestStack.BDDfy.Processors.Reporters.Diagnostics;
5+
using TestStack.BDDfy.Processors.Reporters.Serializers;
76
using TestStack.BDDfy.Tests.Processors.Reports;
87

98
namespace TestStack.BDDfy.Tests.Processors.Diagnostics
@@ -15,14 +14,13 @@ public class DiagnosticsReportBuilderSpecs
1514
public void ShouldSerializeDiagnosticDataToSpecifiedFormat()
1615
{
1716
var serializer = Substitute.For<ISerializer>();
18-
var model = new FileReportModel(
19-
new ReportTestData().CreateTwoStoriesEachWithTwoScenariosWithThreeStepsOfFiveMilliseconds());
17+
var testData = new ReportTestData().CreateTwoStoriesEachWithTwoScenariosWithThreeStepsOfFiveMilliseconds();
18+
var model = new FileReportModel(testData);
2019
var sut = new DiagnosticsReportBuilder(serializer);
2120

2221
sut.CreateReport(model);
2322

24-
serializer.Received().Serialize(Arg.Any<IList<StoryDiagnostic>>());
23+
serializer.Received().Serialize(Arg.Any<object>());
2524
}
26-
2725
}
2826
}

TestStack.BDDfy.Tests/Processors/Diagnostics/DiagnosticsReporterSpecs.cs

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,9 @@
33
using NSubstitute;
44
using NUnit.Framework;
55
using TestStack.BDDfy.Processors;
6-
using TestStack.BDDfy.Processors.Reports;
7-
using TestStack.BDDfy.Processors.Reports.Diagnostics;
8-
using TestStack.BDDfy.Processors.Reports.Serializers;
9-
using TestStack.BDDfy.Processors.Reports.Writers;
6+
using TestStack.BDDfy.Processors.Reporters;
7+
using TestStack.BDDfy.Processors.Reporters.Diagnostics;
8+
using TestStack.BDDfy.Processors.Reporters.Writers;
109

1110
namespace TestStack.BDDfy.Tests.Processors.Diagnostics
1211
{

TestStack.BDDfy.Tests/Processors/Diagnostics/WhenBuildingReportDiagnostics.cs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
11
using System.Collections.Generic;
22
using System.Linq;
33
using NUnit.Framework;
4-
using TestStack.BDDfy.Processors;
5-
using TestStack.BDDfy.Processors.Reports.Diagnostics;
6-
using TestStack.BDDfy.Processors.Reports.MarkDown;
4+
using TestStack.BDDfy.Processors.Reporters;
5+
using TestStack.BDDfy.Processors.Reporters.Diagnostics;
76
using TestStack.BDDfy.Tests.Processors.Reports;
87

98
namespace TestStack.BDDfy.Tests.Processors.Diagnostics

TestStack.BDDfy.Tests/Processors/Reports/MarkDown/MarkDownReportBuilderSpecs.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@
22
using System.Text.RegularExpressions;
33
using NUnit.Framework;
44
using TestStack.BDDfy.Processors;
5-
using TestStack.BDDfy.Processors.Reports.MarkDown;
5+
using TestStack.BDDfy.Processors.Reporters;
6+
using TestStack.BDDfy.Processors.Reporters.MarkDown;
67
using TestStack.BDDfy.Scanners.StepScanners.ExecutableAttribute.GwtAttributes;
78

89
namespace TestStack.BDDfy.Tests.Processors.Reports.MarkDown

TestStack.BDDfy.Tests/Processors/Reports/MarkDown/MarkDownReporterSpecs.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@
33
using NSubstitute;
44
using NUnit.Framework;
55
using TestStack.BDDfy.Processors;
6-
using TestStack.BDDfy.Processors.Reports;
7-
using TestStack.BDDfy.Processors.Reports.Diagnostics;
8-
using TestStack.BDDfy.Processors.Reports.Writers;
6+
using TestStack.BDDfy.Processors.Reporters;
7+
using TestStack.BDDfy.Processors.Reporters.MarkDown;
8+
using TestStack.BDDfy.Processors.Reporters.Writers;
99

1010
namespace TestStack.BDDfy.Tests.Processors.Reports.MarkDown
1111
{

TestStack.BDDfy/Configuration/BatchProcessors.cs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,9 @@
22
using System.Linq;
33
using TestStack.BDDfy.Core;
44
using TestStack.BDDfy.Processors;
5-
using TestStack.BDDfy.Processors.HtmlReporter;
6-
using TestStack.BDDfy.Processors.Reports.Diagnostics;
5+
using TestStack.BDDfy.Processors.Reporters.Diagnostics;
6+
using TestStack.BDDfy.Processors.Reporters.Html;
7+
using TestStack.BDDfy.Processors.Reporters.MarkDown;
78

89
namespace TestStack.BDDfy.Configuration
910
{

0 commit comments

Comments
 (0)