Custom StepMonitor doesn't work in version 4.x

Description

I created a custom StepMonitor:

private StepMonitor stp = new NullStepMonitor(){
public void performing(String step, boolean dryRun){
System.err.println("DEBUG - Monitor. Step = " + step);
}
};

and I use it in my configuration:

return new MostUsefulConfiguration()
................
.useStepMonitor(stp);

On version 3,9,5 it works as expected, the result is:

Scenario: A scenario with some pending steps
DEBUG - Monitor. Step = Given I am a pending step
Given I am a pending step
DEBUG - Monitor. Step = And I am still pending step
And I am still pending step
DEBUG - Monitor. Step = When a good soul will implement me
When a good soul will implement me
DEBUG - Monitor. Step = Then I shall be happy
Then I shall be happy

But on version 4.0.4 it doesn't work, I have got:

Scenario: A scenario with some pending steps
Given I am a pending step
And I am still pending step
When a good soul will implement me
Then I shall be happy

Here is simple example on GitHub: https://github.com/kordirko/jbehave_stepmonitor.git
Master branch is for version 4.0.4, and branch "Jbehave_3_9_5" is for version 3.9.5

Activity

Show:

Mauro Talevi October 9, 2015 at 4:26 PM

Pulled with thanks.

Irko Krokodilko October 8, 2015 at 10:26 PM

I have created a pull request to this issue:
https://github.com/jbehave/jbehave-core/pull/100

Fixed

Details

Assignee

Reporter

Fix versions

Priority

Created October 4, 2015 at 9:02 PM
Updated October 9, 2015 at 4:26 PM
Resolved October 9, 2015 at 4:26 PM