[ 
https://jira.codehaus.org/browse/JBEHAVE-573?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=274854#comment-274854
 ] 

David Batchelor commented on JBEHAVE-573:
-----------------------------------------

We've learned that "matching" Groovy methods only match because Java bytecode 
is generated for Groovy source (and JBehave picks up on them.

Thus the following works:

{noformat} 
   @When("I never get to this line")
    void neverBlahBlah()  {
      // etc
    }
{noformat} 

But this Groovy case fails because bytecode is not generated for it:

{noformat} 
   @When("I never get to this line")
    void neverBlahBlah(String foo = "bar")  {
      // etc
    }
{noformat} 

This is because Groovy generates meta-methods for more sophisticated method 
signatures like that.  Can JBehave peer into Groovy's meta-model more ?  This 
is going to be a pitfall for others...

> Step Marked as PENDING without preceding FAILED step - silent failure???
> ------------------------------------------------------------------------
>
>                 Key: JBEHAVE-573
>                 URL: https://jira.codehaus.org/browse/JBEHAVE-573
>             Project: JBehave
>          Issue Type: Bug
>          Components: Core
>            Reporter: David Batchelor
>
> In a pull of master today, but using that JBehave-Core with client code, we 
> have a case where the scenario output looks like :-
> Given foo
> When bar
> And I never get to this line (PENDING)
> Then it does not matter about this line (NOT PERFORMED)
> We can 100% assert that "I never get to this line" matches a single well 
> defined step, with no sound-alikes.
> We can't see a FAILED line, which is our usual experience with JBehave
> We can see a Selenium screenshot, but we don't know what that pertains to, 
> and it does not show anything that looks like an error. We're not sure why it 
> was produced.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email


Reply via email to