Re: [Cucumber] [JVM] skip @Before when dry run

37 views
Skip to first unread message

Aslak Hellesøy

unread,
Nov 14, 2012, 3:24:13 AM11/14/12
to cu...@googlegroups.com

On Wednesday, 14 November 2012 at 07:34, Alexandre Gattiker wrote:

Hi,


How can I avoid running the initialization code below when doing a dry run?


Sounds lilke a bug. Please send a fix/pull request or create a ticket and wait. 

@Before

public void before(ScenarioResult result) {

    clearDatabase();

}


Thanks in advance,

Alexandre

--
-- Rules --
 
1) Please prefix the subject with [Ruby], [JVM] or [JS].
2) Please use interleaved answers http://en.wikipedia.org/wiki/Posting_style#Interleaved_style
3) If you have a question, don't reply to an existing message. Start a new topic instead.
 
You received this message because you are subscribed to the Google Groups Cukes group. To post to this group, send email to cu...@googlegroups.com. To unsubscribe from this group, send email to cukes+un...@googlegroups.com. For more options, visit this group at https://groups.google.com/d/forum/cukes?hl=en
 
 

Robert

unread,
Nov 14, 2012, 12:03:55 PM11/14/12
to cu...@googlegroups.com


On Tuesday, November 13, 2012 11:34:00 PM UTC-8, Alexandre Gattiker wrote:

Hi,


How can I avoid running the initialization code below when doing a dry run?


@Before

public void before(ScenarioResult result) {

    clearDatabase();

}


Thanks in advance,

Alexandre


I'm having similar issues with dry run executing the @Before code 

aslak hellesoy

unread,
Nov 14, 2012, 12:07:32 PM11/14/12
to Cucumber Users
Create a Github issue please

Robert

unread,
Nov 14, 2012, 12:32:21 PM11/14/12
to cu...@googlegroups.com


On Wednesday, November 14, 2012 9:07:56 AM UTC-8, Aslak Hellesøy wrote:



On Wed, Nov 14, 2012 at 5:03 PM, Robert <rest...@gmail.com> wrote:


On Tuesday, November 13, 2012 11:34:00 PM UTC-8, Alexandre Gattiker wrote:

Hi,


How can I avoid running the initialization code below when doing a dry run?


@Before

public void before(ScenarioResult result) {

    clearDatabase();

}


Thanks in advance,

Alexandre


I'm having similar issues with dry run executing the @Before code 

Create a Github issue please


Reply all
Reply to author
Forward
0 new messages