@@ -37,12 +37,13 @@ public IEnumerable<Step> Scan(ITestContext testContext, MethodInfo candidateMeth
37
37
stepTitle = new StepTitle ( Configurator . Scanners . Humanize ( candidateMethod . Name ) ) ;
38
38
39
39
var stepAsserts = IsAssertingByAttribute ( candidateMethod ) ;
40
+ var shouldReport = executableAttribute . ShouldReport ;
40
41
41
42
var runStepWithArgsAttributes = ( RunStepWithArgsAttribute [ ] ) candidateMethod . GetCustomAttributes ( typeof ( RunStepWithArgsAttribute ) , true ) ;
42
43
if ( runStepWithArgsAttributes . Length == 0 )
43
44
{
44
45
var stepAction = StepActionFactory . GetStepAction ( candidateMethod , new object [ 0 ] ) ;
45
- yield return new Step ( stepAction , stepTitle , stepAsserts , executableAttribute . ExecutionOrder , true , new List < StepArgument > ( ) )
46
+ yield return new Step ( stepAction , stepTitle , stepAsserts , executableAttribute . ExecutionOrder , shouldReport , new List < StepArgument > ( ) )
46
47
{
47
48
ExecutionSubOrder = executableAttribute . Order
48
49
} ;
@@ -62,7 +63,7 @@ public IEnumerable<Step> Scan(ITestContext testContext, MethodInfo candidateMeth
62
63
63
64
var stepAction = StepActionFactory . GetStepAction ( candidateMethod , inputArguments ) ;
64
65
yield return new Step ( stepAction , new StepTitle ( methodName ) , stepAsserts ,
65
- executableAttribute . ExecutionOrder , true , new List < StepArgument > ( ) )
66
+ executableAttribute . ExecutionOrder , shouldReport , new List < StepArgument > ( ) )
66
67
{
67
68
ExecutionSubOrder = executableAttribute . Order
68
69
} ;
@@ -80,6 +81,7 @@ public IEnumerable<Step> Scan(ITestContext testContext, MethodInfo method, Examp
80
81
stepTitle = Configurator . Scanners . Humanize ( method . Name ) ;
81
82
82
83
var stepAsserts = IsAssertingByAttribute ( method ) ;
84
+ var shouldReport = executableAttribute . ShouldReport ;
83
85
var methodParameters = method . GetParameters ( ) ;
84
86
85
87
var inputs = new List < object > ( ) ;
@@ -100,7 +102,7 @@ public IEnumerable<Step> Scan(ITestContext testContext, MethodInfo method, Examp
100
102
}
101
103
102
104
var stepAction = StepActionFactory . GetStepAction ( method , inputs . ToArray ( ) ) ;
103
- yield return new Step ( stepAction , new StepTitle ( stepTitle ) , stepAsserts , executableAttribute . ExecutionOrder , true , new List < StepArgument > ( ) ) ;
105
+ yield return new Step ( stepAction , new StepTitle ( stepTitle ) , stepAsserts , executableAttribute . ExecutionOrder , shouldReport , new List < StepArgument > ( ) ) ;
104
106
}
105
107
106
108
0 commit comments