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 like this:
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


-- 
You received this message because you are subscribed to the Google Groups 
"JBehave User" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send an email to [email protected].
To view this discussion on the web, visit 
https://groups.google.com/d/msgid/jbehave-user/edcb29c4-1be3-450e-bcb3-0d004d528304%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to