Skip to content

Commit 3c6be20

Browse files
author
Gurpreet Singh
committed
change a file to trigger and test samples project change detection variable
1 parent ed94955 commit 3c6be20

File tree

1 file changed

+25
-5
lines changed

1 file changed

+25
-5
lines changed

src/Samples/TestStack.BDDfy.Samples/AssemblySetupFixture.cs

Lines changed: 25 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,8 @@ protected override ITestFrameworkExecutor CreateExecutor(AssemblyName assemblyNa
4545
}
4646

4747
public class XunitTestFrameworkExecutorWithAssemblyFixture(AssemblyName assemblyName,
48-
ISourceInformationProvider sourceInformationProvider, IMessageSink diagnosticMessageSink): XunitTestFrameworkExecutor(assemblyName, sourceInformationProvider, diagnosticMessageSink)
48+
ISourceInformationProvider sourceInformationProvider, IMessageSink diagnosticMessageSink):
49+
XunitTestFrameworkExecutor(assemblyName, sourceInformationProvider, diagnosticMessageSink)
4950
{
5051
protected override async void RunTestCases(IEnumerable<IXunitTestCase> testCases,
5152
IMessageSink executionMessageSink, ITestFrameworkExecutionOptions executionOptions)
@@ -60,7 +61,8 @@ public class XunitTestAssemblyRunnerWithAssemblyFixture(ITestAssembly testAssemb
6061
IEnumerable<IXunitTestCase> testCases,
6162
IMessageSink diagnosticMessageSink,
6263
IMessageSink executionMessageSink,
63-
ITestFrameworkExecutionOptions executionOptions): XunitTestAssemblyRunner(testAssembly, testCases, diagnosticMessageSink, executionMessageSink, executionOptions)
64+
ITestFrameworkExecutionOptions executionOptions):
65+
XunitTestAssemblyRunner(testAssembly, testCases, diagnosticMessageSink, executionMessageSink, executionOptions)
6466
{
6567
readonly Dictionary<Type, object> assemblyFixtureMappings = new();
6668

@@ -96,7 +98,15 @@ protected override Task<RunSummary> RunTestCollectionAsync(IMessageBus messageBu
9698
ITestCollection testCollection,
9799
IEnumerable<IXunitTestCase> testCases,
98100
CancellationTokenSource cancellationTokenSource)
99-
=> new XunitTestCollectionRunnerWithAssemblyFixture(assemblyFixtureMappings, testCollection, testCases, DiagnosticMessageSink, messageBus, TestCaseOrderer, new ExceptionAggregator(Aggregator), cancellationTokenSource).RunAsync();
101+
=> new XunitTestCollectionRunnerWithAssemblyFixture(
102+
assemblyFixtureMappings,
103+
testCollection,
104+
testCases,
105+
DiagnosticMessageSink,
106+
messageBus,
107+
TestCaseOrderer,
108+
new ExceptionAggregator(Aggregator),
109+
cancellationTokenSource).RunAsync();
100110
}
101111

102112
public class XunitTestCollectionRunnerWithAssemblyFixture(Dictionary<Type, object> assemblyFixtureMappings,
@@ -106,7 +116,8 @@ public class XunitTestCollectionRunnerWithAssemblyFixture(Dictionary<Type, objec
106116
IMessageBus messageBus,
107117
ITestCaseOrderer testCaseOrderer,
108118
ExceptionAggregator aggregator,
109-
CancellationTokenSource cancellationTokenSource): XunitTestCollectionRunner(testCollection, testCases, diagnosticMessageSink, messageBus, testCaseOrderer, aggregator, cancellationTokenSource)
119+
CancellationTokenSource cancellationTokenSource):
120+
XunitTestCollectionRunner(testCollection, testCases, diagnosticMessageSink, messageBus, testCaseOrderer, aggregator, cancellationTokenSource)
110121
{
111122
readonly Dictionary<Type, object> assemblyFixtureMappings = assemblyFixtureMappings;
112123
readonly IMessageSink diagnosticMessageSink = diagnosticMessageSink;
@@ -120,7 +131,16 @@ protected override Task<RunSummary> RunTestClassAsync(ITestClass testClass, IRef
120131
combinedFixtures[kvp.Key] = kvp.Value;
121132

122133
// We've done everything we need, so let the built-in types do the rest of the heavy lifting
123-
return new XunitTestClassRunner(testClass, @class, testCases, diagnosticMessageSink, MessageBus, TestCaseOrderer, new ExceptionAggregator(Aggregator), CancellationTokenSource, combinedFixtures).RunAsync();
134+
return new XunitTestClassRunner(
135+
testClass,
136+
@class,
137+
testCases,
138+
diagnosticMessageSink,
139+
MessageBus,
140+
TestCaseOrderer,
141+
new ExceptionAggregator(Aggregator),
142+
CancellationTokenSource,
143+
combinedFixtures).RunAsync();
124144
}
125145
}
126146

0 commit comments

Comments
 (0)